-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
53 lines (46 loc) · 1.44 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
45
46
47
48
49
50
51
52
53
language: cpp
sudo: false
dist: bionic
os:
- linux
# - osx
addons:
apt:
packages:
- g++
- gfortran
- libblas-dev
- python-virtualenv
install:
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
- mkdir -p ${DEPS_DIR} && cd ${DEPS_DIR}
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
cd ${TRAVIS_BUILD_DIR}
virtualenv venv
source venv/bin/activate
curl https://cmake.org/files/v3.12/cmake-3.12.1-Linux-x86_64.tar.gz | tar xz
export PATH=$PWD/cmake-3.12.1-Linux-x86_64/bin:$PATH
elif [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
brew install gcc
fi
before_script:
- cd ${TRAVIS_BUILD_DIR}
- pip install -r requirements.txt
- export PATH=$HOME/.local/bin:/usr/local/bin:/usr/bin:$PATH
script:
- git submodule update --init --recursive
- if test ${TRAVIS_OS_NAME} = linux; then ./setup --cxx=g++ --fc=gfortran --coverage --type=debug;
else ./setup --cxx=g++ --fc=gfortran --type=debug; fi
- cd build
- make
- make test
- cd ..
- pycodestyle --ignore=E501 test/test.py
# deactivated until xcint is refactored
# then there will be no need for BLAS which currently does not link
# - PYTHONPATH="build:build/numgrid/src/numgrid-build" pytest -vv test/test.py
after_success:
- if test ${TRAVIS_OS_NAME} = linux; then coveralls -E ".*external.*" -E ".*CMakeFiles.*" -E ".*generated.*" -E ".*test_.*"; fi
notifications:
email: false