diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2018-01-18 20:06:26 +0100 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2018-01-19 11:59:43 -0800 |
commit | 1cc92410309b215d6d0ec8a5580efe8f80a59cbc (patch) | |
tree | 24ccf4025327814c9e8b079f778966d21d74111c | |
parent | 9835f5077bf2bd416b63b11bca36145896ce0aa9 (diff) | |
download | spack-1cc92410309b215d6d0ec8a5580efe8f80a59cbc.tar.gz spack-1cc92410309b215d6d0ec8a5580efe8f80a59cbc.tar.bz2 spack-1cc92410309b215d6d0ec8a5580efe8f80a59cbc.tar.xz spack-1cc92410309b215d6d0ec8a5580efe8f80a59cbc.zip |
Added flags to unit tests + OSX build done once per day (#6988)
* Adding flags to codecov reports
* OSX builds are triggered once a day
-rw-r--r-- | .travis.yml | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/.travis.yml b/.travis.yml index ec88f02e39..0c188d6001 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,12 +14,17 @@ branches: jobs: fast_finish: true include: - - stage: 'flake8' + - stage: 'flake8 + documentation' python: '2.7' os: linux language: python env: TEST_SUITE=flake8 - - stage: 'unit tests + documentation' + - stage: 'flake8 + documentation' + python: '2.7' + os: linux + language: python + env: TEST_SUITE=doc + - stage: 'unit tests' python: '2.6' os: linux language: python @@ -44,13 +49,10 @@ jobs: os: linux language: python env: [ TEST_SUITE=unit, COVERAGE=true ] - - os: osx + - stage: 'unit tests - osx' + os: osx language: generic env: [ TEST_SUITE=unit, PYTHON_VERSION=2.7, COVERAGE=true ] - - python: '2.7' - os: linux - language: python - env: TEST_SUITE=doc # mpich (AutotoolsPackage) - stage: 'build tests' python: '2.7' @@ -93,6 +95,14 @@ jobs: language: python env: [ TEST_SUITE=build, COVERAGE=true, 'SPEC=mpich' ] +stages: + - 'flake8 + documentation' + - 'unit tests' + - 'build tests' + - name: 'unit tests - osx' + if: type IN (cron) + + #============================================================================= # Environment #============================================================================= @@ -148,10 +158,9 @@ before_script: #============================================================================= # Building #============================================================================= -script: share/spack/qa/run-$TEST_SUITE-tests - -after_success: - - codecov --env PY_VERSION +script: + - share/spack/qa/run-$TEST_SUITE-tests + - if [[ "$COVERAGE" == "true" ]]; then codecov --env PYTHON_VERSION --required --flags "${TEST_SUITE}${TRAVIS_OS_NAME}"; fi #============================================================================= # Notifications |