Skip to content

Commit

Permalink
Update Travis CI config to also build on OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Aug 3, 2016
1 parent ee7c4ed commit 13c8ba6
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
language: cpp
before_script:
- sudo apt-get update -qq
- sudo apt-get install -y python-dev python-numpy-dev gfortran libsundials-serial-dev liblapack-dev libblas-dev
- wget https://github.com/msabramo/cython/releases/download/0.19.1/Cython-0.19.1-cp27-none-linux_x86_64.whl
- sudo pip install Cython-0.19.1-cp27-none-linux_x86_64.whl
- rm -f cantera.conf
os:
- linux
- osx
before_script: |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo apt-get update -qq
sudo apt-get install -y python-dev python-numpy-dev gfortran libsundials-serial-dev liblapack-dev libblas-dev
wget https://github.com/msabramo/cython/releases/download/0.19.1/Cython-0.19.1-cp27-none-linux_x86_64.whl
sudo pip install Cython-0.19.1-cp27-none-linux_x86_64.whl
else
pip install --user --egg scons
pip install --user --install-option="--no-cython-compile" cython
export PATH=/Users/travis/Library/Python/2.7/bin:$PATH
fi
rm -f cantera.conf
script:
- scons build VERBOSE=y python_package=full python3_package=n blas_lapack_libs=lapack,blas optimize=n
- scons test

0 comments on commit 13c8ba6

Please sign in to comment.