Skip to content
Snippets Groups Projects
Commit 03542f2a authored by Todd Gamblin's avatar Todd Gamblin
Browse files

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.
parent e58c6e1b
No related branches found
No related tags found
No related merge requests found
...@@ -146,9 +146,9 @@ before_install: ...@@ -146,9 +146,9 @@ before_install:
brew update; brew update;
export HOMEBREW_NO_AUTO_UPDATE=1; export HOMEBREW_NO_AUTO_UPDATE=1;
rm /usr/local/include/c++ ; rm /usr/local/include/c++ ;
brew ls --versions gcc > /dev/null || brew install gcc; brew ls --versions python@2 > /dev/null || brew install python@2;
brew ls --versions gnupg2 > /dev/null || brew install gnupg2; brew ls --versions gcc > /dev/null || brew install gcc;
brew install python@2; brew ls --versions gnupg2 > /dev/null || brew install gnupg2;
pip2 install --upgrade pip; pip2 install --upgrade pip;
pip2 install virtualenv; pip2 install virtualenv;
virtualenv venv; virtualenv venv;
...@@ -163,7 +163,9 @@ install: ...@@ -163,7 +163,9 @@ install:
- pip install --upgrade codecov - pip install --upgrade codecov
- pip install --upgrade flake8 - pip install --upgrade flake8
- pip install --upgrade pep8-naming - 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: before_script:
# Need this for the git tests to succeed. # Need this for the git tests to succeed.
...@@ -173,15 +175,20 @@ before_script: ...@@ -173,15 +175,20 @@ before_script:
# Need this to be able to compute the list of changed files # Need this to be able to compute the list of changed files
- git fetch origin develop:develop - git fetch origin develop:develop
# Set up external dependencies for build tests, because the take too long to compile # 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 - if [[ "$TEST_SUITE" == "build" ]]; then cp
share/spack/qa/configuration/packages.yaml etc/spack/packages.yaml;
fi
#============================================================================= #=============================================================================
# Building # Building
#============================================================================= #=============================================================================
script: script:
- share/spack/qa/run-$TEST_SUITE-tests - 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 # Notifications
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment