/
.travis.yml
59 lines (52 loc) · 1.72 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
54
55
56
57
58
59
sudo: false
language: python
# Environment variable for documentation deployment
# Change author email when website author changes
env:
global:
- ENCRYPTION_LABEL: "1909213e8aea"
- COMMIT_AUTHOR_EMAIL: "pandolfovince@gmail.com"
matrix:
include:
- os: linux
python: "2.7"
env: DEVITO_ARCH=gcc-4.9 DEVITO_OPENMP=0 DEVITO_LOGGING=DEBUG
- os: linux
python: "2.7"
env: DEVITO_ARCH=gcc-5 DEVITO_OPENMP=0 DEVITO_LOGGING=DEBUG
- os: linux
python: "3.5"
env: DEVITO_ARCH=gcc-4.9 DEVITO_OPENMP=0 DEVITO_LOGGING=DEBUG
- os: linux
python: "2.7"
env: DEVITO_ARCH=gcc-4.9 DEVITO_OPENMP=1 OMP_NUM_THREADS=2 DEVITO_LOGGING=DEBUG
allow_failures:
- os: osx
python: "2.7"
env: DEVITO_ARCH=clang DEVITO_OPENMP=0 DEVITO_LOGGING=DEBUG
addons:
apt:
sources:
- ubuntu-toolchain-r-test # For gcc 4.9 and 5
packages:
- gcc-4.9
- g++-4.9
- gcc-5
- g++-5
install:
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew update; brew install python; brew link --overwrite python ; fi
- pip install -U pip
- pip install -r requirements.txt
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then export PATH=$PATH:$HOME/Library/Python/2.7/bin; fi
before_script:
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
script:
- export PYTHONPATH=$PYTHONPATH:$PWD
- flake8 --builtins=ArgumentError .
- py.test -vs tests/
- python examples/benchmark.py test -P tti -so 4 -a -d 20 20 20 -n 5
- python examples/benchmark.py test -P acoustic -a
- python examples/seismic/acoustic/acoustic_example.py
- py.test -vs examples/seismic/tutorials
- py.test -vs examples/cfd
- if [[ $DEVITO_ARCH == 'gcc-5' ]]; then ./docs/deploy.sh; fi