summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authoralalazo <massimiliano.culpo@googlemail.com>2016-07-30 18:10:33 +0200
committeralalazo <massimiliano.culpo@googlemail.com>2016-07-30 18:49:23 +0200
commitf4422dc165b37b8dbad0af31dd0a3d24671a1e49 (patch)
treeffe4a1445bdda8be02a8cbd2250dc2842955c344 /.travis.yml
parente04662f84ff9fdf30221f0a50d566eb5ded0f20c (diff)
downloadspack-f4422dc165b37b8dbad0af31dd0a3d24671a1e49.tar.gz
spack-f4422dc165b37b8dbad0af31dd0a3d24671a1e49.tar.bz2
spack-f4422dc165b37b8dbad0af31dd0a3d24671a1e49.tar.xz
spack-f4422dc165b37b8dbad0af31dd0a3d24671a1e49.zip
qa : fixes #1370 (no flake8 on python 2.6, coveralls only python 2.7)
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml25
1 files changed, 14 insertions, 11 deletions
diff --git a/.travis.yml b/.travis.yml
index 904143a00f..b376a33490 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,7 +1,17 @@
language: python
+
python:
- "2.6"
- "2.7"
+env:
+ - TEST_TYPE=unit
+ - TEST_TYPE=flake8
+
+# Exclude flake8 from python 2.6
+matrix:
+ exclude:
+ - python: "2.6"
+ env: TEST_TYPE=flake8
# Use new Travis infrastructure (Docker can't sudo yet)
sudo: false
@@ -20,20 +30,13 @@ before_install:
- git fetch origin develop:develop
script:
- # Regular spack setup and tests
- - . share/spack/setup-env.sh
- - spack compilers
- - spack config get compilers
- - spack install -v libdwarf
-
- # Run unit tests with code coverage
- - coverage run bin/spack test
-
+ # Run unit tests with code coverage plus install libdwarf
+ - 'if [ "$TEST_TYPE" = "unit" ]; then share/spack/qa/run-unit-tests; fi'
# Run flake8 code style checks.
- - share/spack/qa/run-flake8
+ - 'if [ "$TEST_TYPE" = "flake8" ]; then share/spack/qa/run-flake8; fi'
after_success:
- - coveralls
+ - 'if [ "$TEST_TYPE" = "unit" ] && [ "$TRAVIS_PYTHON_VERSION" = "2.7" ]; then coveralls; fi'
notifications:
email: