Browse Source

Introduce skip flag to avoid rerunning successful builds in later stages

tempestpy_adaptions
Matthias Volk 8 years ago
parent
commit
5982cf886d
  1. 2
      travis/build-helper.sh
  2. 11
      travis/build.sh
  3. 6
      travis/install_linux.sh
  4. 6
      travis/install_osx.sh

2
travis/build-helper.sh

@ -33,6 +33,7 @@ run() {
travis_fold start make
make -j$N_JOBS
travis_fold end make
touch skip.txt
;;
Build2 | Build3 | Build4)
@ -41,6 +42,7 @@ run() {
cd build
make -j$N_JOBS
travis_fold end make
touch skip.txt
;;
TestAll)

11
travis/build.sh

@ -12,6 +12,17 @@ fi
EXITCODE=42
# Skip this run?
if [ -f build/skip.txt ]
then
# Remove flag s.t. tests will be executed
if [[ "$2" == "Build4" ]]
then
rm build/skip.txt
fi
exit 0
fi
case $OS in
linux)
# Execute docker image on Linux

6
travis/install_linux.sh

@ -2,4 +2,10 @@
set -e
# Skip this run?
if [ -f build/skip.txt ]
then
exit 0
fi
sudo apt-get install -qq -y docker

6
travis/install_osx.sh

@ -23,6 +23,12 @@ install_brew_package() {
fi
}
# Skip this run?
if [ -f build/skip.txt ]
then
exit 0
fi
# Update packages
travis_fold start brew_update
brew update
Loading…
Cancel
Save