Skip to content

Commit

Permalink
[CI] Use system Python 3 on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Aug 1, 2017
1 parent 9e5da87 commit 45891a2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ addons:
- libblas-dev
- libboost-dev
before_script: |
echo TRAVIS_OS_NAME: $TRAVIS_OS_NAME
pip install --user --install-option="--no-cython-compile" cython
pip install --user 3to2
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
Expand All @@ -29,9 +30,13 @@ before_script: |
pip3 install numpy
fi
rm -f cantera.conf
script:
- scons build -j2 VERBOSE=y python_package=full python3_package=y blas_lapack_libs=lapack,blas optimize=n coverage=y
- scons test
script: |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
scons build -j2 VERBOSE=y python_package=full python3_package=y python3_cmd=/usr/bin/python3 blas_lapack_libs=lapack,blas optimize=n coverage=y
else
scons build -j2 VERBOSE=y python_package=full python3_package=y blas_lapack_libs=lapack,blas optimize=n coverage=y
fi
scons test
after_success: |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
bash <(curl -s https://codecov.io/bash)
Expand Down

0 comments on commit 45891a2

Please sign in to comment.