forked from firedrakeproject/firedrake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (43 loc) · 1.73 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
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"
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=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:
- sudo add-apt-repository -y ppa:amcg/backports
- sudo add-apt-repository -y ppa:cython-dev/master-ppa
- sudo apt-get update
- "sudo apt-get install -qq build-essential python-dev git-core mercurial \
cmake cmake-curses-gui gmsh python-gmsh python-pip swig libhdf5-openmpi-dev \
libopenmpi-dev openmpi-bin libblas-dev liblapack-dev gfortran triangle-bin \
libvtk5-dev python-vtk libparmetis-dev python-vtk cython"
- wget https://raw.github.com/OP2/PyOP2/master/requirements-minimal.txt
- pip install psutil -r requirements-minimal.txt
- pip install -r requirements.txt
- if [[ $TRAVIS_PYTHON_VERSION == "2.6" ]]; then pip install argparse ordereddict; fi
install:
- make
# command to run tests
script:
- export PYTHONPATH=`pwd`:$PYTHONPATH
- flake8
- py.test --short -v tests/${PYOP2_TESTS}