autocmake/.travis.yml
2015-11-04 19:38:10 +01:00

60 lines
1.3 KiB
YAML

language: cpp
sudo: false
matrix:
include:
- os: linux
compiler: gcc
env: SOURCES=ubuntu-toolchain-r-test
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
# compilers
- g++
- gfortran
- cmake
# math libraries
- libblas-dev
- liblapack-dev
- libatlas-base-dev
# mpi
- openmpi-bin
- libopenmpi-dev
# python library, development version
- libpython2.7
# boost
- libboost-all-dev
- os: osx
osx_image: xcode6.4
compiler: gcc
env: SOURCES=homebrew
install:
- |
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
brew install cmake boost python gcc
pip install virtualenv
elif [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
pip install --user virtualenv
fi
- virtualenv venv
- source venv/bin/activate
- pip install pep8 pytest
script:
# pep8 tests
- pep8 --ignore=E501 update.py
- pep8 --ignore=E501 test/test.py
- pep8 --ignore=E501 lib/config.py
# unit tests
- py.test -vv update.py
- py.test -vv test/test.py
- py.test -vv lib/config.py
notifications:
email: false