forked from metno/gpu-ocean
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (33 loc) · 1004 Bytes
/
.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
sudo: required
dist: trusty
language: python
notifications:
email:
recipients:
# Change values when CI is working properly again!
on_success: never #change
on_failure: never #always
python:
- "3.5"
# CUDA will not run on Travis CI. Only "non-GPU" tests will run!
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq lcov curl
ocl-icd-libopencl1 opencl-headers libnetcdf-dev
libhwloc-dev libltdl-dev pkg-config libedit-dev
google-perftools
install:
- cd python
- pip install -r requirements.txt
- cd ..
script:
- export LD_PRELOAD="/usr/lib/libtcmalloc.so.4"
- export OCL_ICD_VENDORS=/usr/local/etc/OpenCL/vendors/pocl.icd
- export COVERALLS_SERVICE_NAME=travis-ci
- export COVERALLS_REPO_TOKEN=N5DQzXpRwmJg84M0xfeFlDV2D6Zz4yUVt
- cd python/tests
- python -m unittest discover . "*_test.py"
- python -m pytest -v --cov .. --cov-report term-missing
- coveralls