Skip to content

Commit f51e992

Browse files
author
guywithnose
committed
Merge pull request #7 from nubs/master
Add a docker/fig based build.
2 parents d955c65 + e6479f4 commit f51e992

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

CONTRIBUTING.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,11 @@ and we can get things merged in quicker when we understand its expected usage.
1111
Our [build](build.php) runs the code through the [PSR-1](http://www.php-fig.org/psr/psr-1/) coding standard and through our test suite.
1212
Failures in either will keep us from merging the pull request. The test suite MUST have 100% code coverage in the report.
1313

14+
There is also a [docker](http://www.docker.com/)-based [fig](http://www.fig.sh/) configuration that will execute the build inside a docker
15+
container. This is an easy way to build the application:
16+
```sh
17+
fig run build
18+
```
19+
1420
## Travis CI
1521
Our [Travis build](https://travis-ci.org/dominionenterprises/memoize-php) executes the build above against pull requests.

fig.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
build:
2+
build: tests
3+
volumes:
4+
- .:/code

tests/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM nubs/phpunit
2+
3+
CMD ["./build.php"]

0 commit comments

Comments
 (0)