Skip to content

Commit

Permalink
simplify travis and makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
alcohol committed Oct 26, 2016
1 parent 3f750bc commit fb49df7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ sudo: required
services:
- docker

script:
- make
before_script:
- make build

notifications:
email: false
script:
- make test
10 changes: 2 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
.PHONY = all build test

all: build test

build: build/1.1.3 build/1.2.1 build/snapshot
test: test/1.1.3 test/1.2.1 test/snapshot
build: build/1.1 build/1.2
test: test/1.1 test/1.2

build/%:
docker build -t "composer:$*" "$*"

test/%:
docker run "composer:$*"

tpl/%:
mkdir "$*"
cp Dockerfile.template "$*/Dockerfile"
sed -ri 's/%%COMPOSER_VERSION%%/'"$*"'/' "$*/Dockerfile"

0 comments on commit fb49df7

Please sign in to comment.