Skip to content
Snippets Groups Projects
Unverified Commit 5aa05b8e authored by Todd Gamblin's avatar Todd Gamblin Committed by GitHub
Browse files

travis: require sudo in an attempt to avoid build timeouts (#9327)


- Many container builds are timing out frequently during Spack tests in
  Travis CI.

- Travis recommends to try `sudo: required` to see whether this is an
  infrastructure issue or something else.

- added `sudo: required` to all Linux builds.

- added --verbose to `spack test` invocation so that we can see more
  easily what tests it's timing out on.

Signed-off-by: default avatarTodd Gamblin <tgamblin@llnl.gov>
parent d2bd5177
No related branches found
No related tags found
No related merge requests found
...@@ -23,37 +23,44 @@ jobs: ...@@ -23,37 +23,44 @@ jobs:
include: include:
- stage: 'style checks' - stage: 'style checks'
python: '2.7' python: '2.7'
sudo: required
os: linux os: linux
language: python language: python
env: TEST_SUITE=flake8 env: TEST_SUITE=flake8
- stage: 'unit tests + documentation' - stage: 'unit tests + documentation'
python: '2.6' python: '2.6'
sudo: required
os: linux os: linux
language: python language: python
env: TEST_SUITE=unit env: TEST_SUITE=unit
- python: '2.7' - python: '2.7'
sudo: required
os: linux os: linux
language: python language: python
env: TEST_SUITE=unit env: TEST_SUITE=unit
- python: '3.4' - python: '3.4'
sudo: required
os: linux os: linux
language: python language: python
env: TEST_SUITE=unit env: TEST_SUITE=unit
- python: '3.5' - python: '3.5'
sudo: required
os: linux os: linux
language: python language: python
env: TEST_SUITE=unit env: TEST_SUITE=unit
- python: '3.6' - python: '3.6'
sudo: required
os: linux os: linux
language: python language: python
env: TEST_SUITE=unit env: TEST_SUITE=unit
- python: '3.7' - python: '3.7'
sudo: required
os: linux os: linux
dist: xenial dist: xenial
sudo: true
language: python language: python
env: TEST_SUITE=unit env: TEST_SUITE=unit
- python: '3.6' - python: '3.6'
sudo: required
os: linux os: linux
language: python language: python
env: TEST_SUITE=doc env: TEST_SUITE=doc
......
...@@ -28,4 +28,8 @@ ${coverage_run} bin/spack help -a ...@@ -28,4 +28,8 @@ ${coverage_run} bin/spack help -a
${coverage_run} bin/spack -p --lines 20 spec mpileaks%gcc ^elfutils@0.170 ${coverage_run} bin/spack -p --lines 20 spec mpileaks%gcc ^elfutils@0.170
# Run unit tests with code coverage # Run unit tests with code coverage
${coverage_run} bin/spack test "$@" extra_args=""
if [[ -n "$@" ]]; then
extra_args="-k $@"
fi
${coverage_run} bin/spack test --verbose "$extra_args"
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