forked from firedrakeproject/firedrake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (59 loc) · 1.97 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
notifications:
irc:
channels: "chat.freenode.net#firedrake"
skip_join: true
on_success: change
on_failure: always
template: "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message} | %{build_url}"
language: python
# We're not Python 2.6 compatible at the moment
python: "2.7"
addons:
apt:
packages:
- build-essential
- python-dev
- git
- mercurial
- python-pip
- libopenmpi-dev
- openmpi-bin
- libblas-dev
- liblapack-dev
- gfortran
- libhdf5-mpi-dev
- swig
env:
global:
- C_INCLUDE_PATH=/usr/lib/openmpi/include
- PETSC_CONFIGURE_OPTIONS="--download-ctetgen --download-triangle --download-chaco"
matrix:
- PYOP2_BACKEND=sequential PYOP2_TESTS=regression
- OMP_NUM_THREADS=1 PYOP2_BACKEND=openmp PYOP2_TESTS=regression
- OMP_NUM_THREADS=2 PYOP2_BACKEND=openmp PYOP2_TESTS=regression
- PYOP2_BACKEND=sequential PYOP2_TESTS="multigrid benchmarks"
- OMP_NUM_THREADS=1 PYOP2_BACKEND=openmp PYOP2_TESTS="benchmarks multigrid"
- OMP_NUM_THREADS=2 PYOP2_BACKEND=openmp PYOP2_TESTS="benchmarks multigrid"
- PYOP2_BACKEND=sequential PYOP2_TESTS=extrusion
- OMP_NUM_THREADS=1 PYOP2_BACKEND=openmp PYOP2_TESTS=extrusion
- OMP_NUM_THREADS=2 PYOP2_BACKEND=openmp PYOP2_TESTS=extrusion
virtualenv:
system_site_packages: true
# command to install dependencies
before_install:
- pip install -U pip
- pip install -U pytest
- pip install -U Cython
- pip install pytest-benchmark
install:
- mkdir tmp
- cd tmp
- ../scripts/firedrake-install --disable_ssh --global --minimal_petsc
- cd firedrake/src/firedrake
- if git fetch origin pull/$TRAVIS_PULL_REQUEST/merge; then git checkout FETCH_HEAD; else git checkout $TRAVIS_COMMIT; fi
- python setup.py build_ext --inplace
# command to run tests
script:
- make lint
- (rc=0; for t in ${PYOP2_TESTS}; do py.test --short -v tests/${t} || rc=$?; done; exit $rc)