Skip to content

Commit

Permalink
Merge pull request #41 from avast/TestMultipleVersions
Browse files Browse the repository at this point in the history
Test in multiple Docker versions Fixes #32
  • Loading branch information
augi authored Sep 5, 2016
2 parents 75c3cbf + 3313461 commit 8016896
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
language: generic

sudo: required
env:
- DOCKER_VERSION=1.12.1
- DOCKER_VERSION=1.11.2
- DOCKER_VERSION=1.10.3

before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
Expand All @@ -11,14 +15,13 @@ cache:
- $HOME/.m2

before_install:
# ensure Docker 1.10.3
- curl -sSL https://get.docker.com/ | sh
- sudo apt-get -y --force-yes install docker-engine=1.10.3-0~precise
- sudo apt-get -y --force-yes install docker-engine=$DOCKER_VERSION-0~precise
# Build image with building environment
- sudo docker build --tag=build-image .

script:
- sudo docker run -v $(pwd):/build -v $HOME/.m2:/root/.m2 -v $HOME/.gradle:/root/.gradle -v /var/run/docker.sock:/var/run/docker.sock build-image test --info

after_success:
- test $TRAVIS_PULL_REQUEST == "false" && test "$TRAVIS_TAG" != "" && test $TRAVIS_REPO_SLUG == "avast/docker-compose-gradle-plugin" && sudo docker run -v $(pwd):/build -v $HOME/.m2:/root/.m2 -v $HOME/.gradle:/root/.gradle -v /var/run/docker.sock:/var/run/docker.sock -e "BINTRAY_USER=$BINTRAY_USER" -e "BINTRAY_KEY=$BINTRAY_KEY" build-image bintrayUpload -Pversion="$TRAVIS_TAG" --info
- test $TRAVIS_PULL_REQUEST == "false" && test "$TRAVIS_TAG" != "" && test $TRAVIS_REPO_SLUG == "avast/docker-compose-gradle-plugin" && test $DOCKER_VERSION == "1.12.1" && sudo docker run -v $(pwd):/build -v $HOME/.m2:/root/.m2 -v $HOME/.gradle:/root/.gradle -v /var/run/docker.sock:/var/run/docker.sock -e "BINTRAY_USER=$BINTRAY_USER" -e "BINTRAY_KEY=$BINTRAY_KEY" build-image bintrayUpload -Pversion="$TRAVIS_TAG" --info

0 comments on commit 8016896

Please sign in to comment.