Skip to content
Snippets Groups Projects
Commit 97265748 authored by Massimiliano Culpo's avatar Massimiliano Culpo Committed by Todd Gamblin
Browse files

travis : unit tests will run with and without libyaml (#2024)

* travis : unit tests will run with and without libyaml

* travis : fixed package that are installed
parent 3dbde097
Branches
Tags
No related merge requests found
...@@ -6,7 +6,8 @@ python: ...@@ -6,7 +6,8 @@ python:
- 2.7 - 2.7
env: env:
- TEST_SUITE=unit - TEST_SUITE=unit CYAML=true
- TEST_SUITE=unit CYAML=false
- TEST_SUITE=flake8 - TEST_SUITE=flake8
- TEST_SUITE=doc - TEST_SUITE=doc
...@@ -24,6 +25,7 @@ addons: ...@@ -24,6 +25,7 @@ addons:
apt: apt:
packages: packages:
- graphviz - graphviz
- libyaml-dev
# Install various dependencies # Install various dependencies
install: install:
...@@ -31,6 +33,7 @@ install: ...@@ -31,6 +33,7 @@ install:
- pip install flake8 - pip install flake8
- pip install sphinx - pip install sphinx
- pip install mercurial - pip install mercurial
- if [[ $CYAML == true ]]; then pip install --global-option "--with-libyaml" pyyaml; fi
before_script: before_script:
# Need this for the git tests to succeed. # Need this for the git tests to succeed.
...@@ -43,7 +46,7 @@ before_script: ...@@ -43,7 +46,7 @@ before_script:
script: share/spack/qa/run-$TEST_SUITE-tests script: share/spack/qa/run-$TEST_SUITE-tests
after_success: after_success:
- if [[ $TEST_SUITE == unit && $TRAVIS_PYTHON_VERSION == 2.7 ]]; then coveralls; fi - if [[ $TEST_SUITE == unit && $CYAML == false && $TRAVIS_PYTHON_VERSION == 2.7 ]]; then coveralls; fi
notifications: notifications:
email: email:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment