summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2019-07-03 01:56:13 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2019-07-05 12:54:17 -0700
commit47e9f7aac9c0418fd1e31e88bd49017c429565db (patch)
tree10ef4418a34afae22fb2096b54dc749945ef3990 /.travis.yml
parente625ee3ffda7505c300614aca2b3947095ab9d8e (diff)
downloadspack-47e9f7aac9c0418fd1e31e88bd49017c429565db.tar.gz
spack-47e9f7aac9c0418fd1e31e88bd49017c429565db.tar.bz2
spack-47e9f7aac9c0418fd1e31e88bd49017c429565db.tar.xz
spack-47e9f7aac9c0418fd1e31e88bd49017c429565db.zip
tests: add tests for setup-env.sh
- tests use a shell-script harness and test all Spack commands that require special shell support. - tests work in bash, zsh, and dash - run setup-env.sh tests on macos and linux builds. - we run them on macos and linux
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml33
1 files changed, 10 insertions, 23 deletions
diff --git a/.travis.yml b/.travis.yml
index 91a95486e9..465232093a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -50,24 +50,6 @@ jobs:
os: linux
language: python
env: [ TEST_SUITE=unit, COVERAGE=true ]
- addons:
- apt:
- packages:
- - cmake
- - gfortran
- - graphviz
- - gnupg2
- - kcov
- - mercurial
- - ninja-build
- - perl
- - perl-base
- - realpath
- - patchelf
- - r-base
- - r-base-core
- - r-base-dev
-
- python: '3.7'
sudo: required
os: linux
@@ -159,6 +141,7 @@ addons:
- r-base
- r-base-core
- r-base-dev
+ - zsh
# for Mac builds, we use Homebrew
homebrew:
packages:
@@ -166,6 +149,8 @@ addons:
- gcc
- gnupg2
- ccache
+ - dash
+ - kcov
update: true
# ~/.ccache needs to be cached directly as Travis is not taking care of it
@@ -223,11 +208,13 @@ script:
after_success:
- ccache -s
- - if [[ "$TEST_SUITE" == "unit" || "$TEST_SUITE" == "build" ]]; then
- codecov --env PYTHON_VERSION
- --required
- --flags "${TEST_SUITE}${TRAVIS_OS_NAME}";
- fi
+ - case "$TEST_SUITE" in
+ unit)
+ codecov --env PYTHON_VERSION
+ --required
+ --flags "${TEST_SUITE}${TRAVIS_OS_NAME}";
+ ;;
+ esac
#=============================================================================
# Notifications