travis: Switch on pulling from docker hub with fallback that builds image

This commit is contained in:
Damien Zammit 2018-06-24 01:56:56 +10:00 committed by radare
parent 6400570fe2
commit 4897b9d089

View File

@ -21,7 +21,7 @@ cache:
- ccache
before_install:
- if [ "$TRAVIS_OS_NAME" != "osx" ]; then docker build -t damo22/r2-travis:latest -f Dockerfile.travis . ; else rm -rf .nvm && git clone https://github.com/creationix/nvm.git .nvm && (cd .nvm && git checkout `git describe --abbrev=0 --tags`) && . .nvm/nvm.sh && nvm install 8.11.3; fi
- if [ "$TRAVIS_OS_NAME" != "osx" ]; then docker pull damo22/r2-travis || docker build -t damo22/r2-travis:latest -f Dockerfile.travis . ; else rm -rf .nvm && git clone https://github.com/creationix/nvm.git .nvm && (cd .nvm && git checkout `git describe --abbrev=0 --tags`) && . .nvm/nvm.sh && nvm install 8.11.3; fi
script:
- export PR_NAME=$(echo $TRAVIS_PULL_REQUEST_SLUG | cut -d'/' -f1)