Travis: fix in test of whether the docker configuration has changed

This commit is contained in:
Simon Duquennoy 2018-06-04 23:08:22 +02:00
parent b05b96938e
commit 7b38f46aba
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ notifications:
# Environment setup before test script. Runs for each build
before_install:
# Check if anything has changed within the docker directory
- DOCKER_CHANGED=`git diff --name-only $TRAVIS_BRANCH...HEAD -- tools/docker | wc -l`
- DOCKER_CHANGED=`git diff --name-only $TRAVIS_COMMIT_RANGE -- tools/docker | wc -l`
# If Docker directory has not changed, pull image from Dockerhub. Else, build
# image from Dockerifle. This needs to be done for each job. Any build error
# will count as Travis test failure. In case this updates develop, push new