summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2018-09-02 21:22:06 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2018-09-03 07:27:21 -0700
commit03542f2a070920b9dcf74acc8891306d25fb61d6 (patch)
treec1f490b6b414b52781c99096f1c19cc09a58af22 /.travis.yml
parente58c6e1b738bd65f8cab1c1903772a35ceddddb0 (diff)
downloadspack-03542f2a070920b9dcf74acc8891306d25fb61d6.tar.gz
spack-03542f2a070920b9dcf74acc8891306d25fb61d6.tar.bz2
spack-03542f2a070920b9dcf74acc8891306d25fb61d6.tar.xz
spack-03542f2a070920b9dcf74acc8891306d25fb61d6.zip
travis: clean up .travis-ci.yml wrapping and indentation
- fix line wrapping in travis.yml to make parts more legible - Travis can handle multi-line if statements if you use semicolos.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml21
1 files changed, 14 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml
index d5242f5ca9..b7f88abe22 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -146,9 +146,9 @@ before_install:
brew update;
export HOMEBREW_NO_AUTO_UPDATE=1;
rm /usr/local/include/c++ ;
- brew ls --versions gcc > /dev/null || brew install gcc;
- brew ls --versions gnupg2 > /dev/null || brew install gnupg2;
- brew install python@2;
+ brew ls --versions python@2 > /dev/null || brew install python@2;
+ brew ls --versions gcc > /dev/null || brew install gcc;
+ brew ls --versions gnupg2 > /dev/null || brew install gnupg2;
pip2 install --upgrade pip;
pip2 install virtualenv;
virtualenv venv;
@@ -163,7 +163,9 @@ install:
- pip install --upgrade codecov
- pip install --upgrade flake8
- pip install --upgrade pep8-naming
- - if [[ "$TEST_SUITE" == "doc" ]]; then pip install --upgrade -r lib/spack/docs/requirements.txt; fi
+ - if [[ "$TEST_SUITE" == "doc" ]]; then
+ pip install --upgrade -r lib/spack/docs/requirements.txt;
+ fi
before_script:
# Need this for the git tests to succeed.
@@ -173,15 +175,20 @@ before_script:
# Need this to be able to compute the list of changed files
- git fetch origin develop:develop
- # Set up external dependencies for build tests, because the take too long to compile
- - if [[ "$TEST_SUITE" == "build" ]]; then cp share/spack/qa/configuration/packages.yaml etc/spack/packages.yaml; fi
+ # Set up external deps for build tests, b/c they take too long to compile
+ - if [[ "$TEST_SUITE" == "build" ]]; then cp
+ share/spack/qa/configuration/packages.yaml etc/spack/packages.yaml;
+ fi
#=============================================================================
# Building
#=============================================================================
script:
- share/spack/qa/run-$TEST_SUITE-tests
- - if [[ "$TEST_SUITE" == "unit" || "$TEST_SUITE" == "build" ]]; then codecov --env PYTHON_VERSION --required --flags "${TEST_SUITE}${TRAVIS_OS_NAME}"; fi
+ - if [[ "$TEST_SUITE" == "unit" || "$TEST_SUITE" == "build" ]]; then
+ codecov --env PYTHON_VERSION
+ --required --flags "${TEST_SUITE}${TRAVIS_OS_NAME}";
+ fi
#=============================================================================
# Notifications