autocmake/.travis.yml
2016-05-20 21:44:45 +02:00

84 lines
1.8 KiB
YAML

language: cpp
sudo: false
matrix:
include:
- os: linux
python: 2.7
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: linux
python: 3.5
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 open-mpi
pip install virtualenv
elif [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
pip install --user virtualenv
fi
- virtualenv venv
- source venv/bin/activate
- pip install pep8 pytest pyaml
script:
# pep8 tests
- pep8 --ignore E501 update.py
- pep8 --ignore E501,E265 autocmake
# unit tests
- py.test -vv autocmake/*
- py.test -vv test/test.py
notifications:
email: false