Skip to content

Commit

Permalink
Force travis job to terminate if uberenv fails (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrush committed Mar 5, 2020
1 parent 96f8e53 commit df235cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ script:
- export FC=${COMPILER_FC}
- ${CC} --version
- cd $TRAVIS_BUILD_DIR
- echo $TRAVIS_BUILD_DIR
- echo $TRAVIS_BUILD_DIR
# setup spack spec based on our travis options
- export SPACK_SPEC="%gcc@4.8"
# variants
Expand All @@ -175,7 +175,7 @@ script:
# Output something every 10 minutes or Travis kills the job
- while sleep 540; do echo "=====[ $SECONDS seconds still running ]====="; done &
# build deps using uberenv
- python scripts/uberenv/uberenv.py --spec "${SPACK_SPEC}" --spack-config-dir=scripts/uberenv/spack_configs/travis/
- python scripts/uberenv/uberenv.py --spec "${SPACK_SPEC}" --spack-config-dir=scripts/uberenv/spack_configs/travis/ || travis_terminate 1;
# todo:
#- export SPACK_PYTHON_BIN_DIR=`ls -d ${TRAVIS_BUILD_DIR}/uberenv_libs/spack/opt/spack/*/*/python*/bin`
#- pip install cpp-coveralls
Expand Down Expand Up @@ -217,7 +217,7 @@ script:
# test our examples that demo using an installed conduit
- cd $TRAVIS_BUILD_DIR
- ./scripts/ci/travis-test-build-examples-vs-install.sh
- ./scripts/ci/travis-test-python-example-vs-install.sh
- ./scripts/ci/travis-test-python-example-vs-install.sh

after_success:
- test ${ENABLE_COVERAGE} = "ON" && coveralls --gcov /usr/bin/gcov-4.8 --include src/libs/conduit --include src/libs/blueprint --gcov-options '\-lp' --root $TRAVIS_BUILD_DIR --build-root $TRAVIS_BUILD_DIR/travis-debug-build;
Expand Down

0 comments on commit df235cd

Please sign in to comment.