-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
45 lines (39 loc) · 1.35 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
language: python
env:
global:
- PIP_TEST_REQS="coverage pytest pytest-cov coveralls"
- PYTEST_ARGS="--pyargs pguresvt"
before_install:
- if [${TRAVIS_OS_NAME} == "linux"]; then sudo apt-get update -qq; fi
- sh ./install-dependencies.sh # Required because libarmadillo-dev on Travis is out-of-date
- pip install --upgrade cython # Maybe not required if setup_requires in setup.py works?
matrix:
include:
- name: "Linux, 3.7, pip, gcc"
env: COMPILER_NAME=gcc CXX=g++-7 CC=gcc-7 PYTEST_ARGS="--pyargs pguresvt --cov=pguresvt"
python: 3.7
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-7', 'libblas-dev', 'liblapack-dev', 'libopenblas-dev', 'libtiff5-dev']
# - name: "Linux, 3.8, pip, gcc"
# env: COMPILER_NAME=gcc CXX=g++-7 CC=gcc-7
# python: 3.8
# addons:
# apt:
# sources: ['ubuntu-toolchain-r-test']
# packages: ['g++-7', 'libblas-dev', 'liblapack-dev', 'libopenblas-dev', 'libtiff5-dev']
script:
- mkdir build
- cd build
- cmake -DCMAKE_CXX_COMPILER=$CXXOMP -DCMAKE_C_COMPILER=$CCOMP -DBUILD_EXECUTABLE=ON ..
- make
- cd ../
- which python
- pip install --upgrade -e .
- pip install --upgrade $PIP_TEST_REQS
- pytest $PYTEST_ARGS
after_success:
- if [[ $PYTEST_ARGS == *"--cov=pguresvt"* ]]; then
coveralls;
fi