-
Notifications
You must be signed in to change notification settings - Fork 21
/
.travis.yml
66 lines (54 loc) · 1.17 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
60
61
62
63
dist:
- xenial
- bionic
language: python
python:
- "3.6"
- "3.7"
- "3.8"
services:
- xvfb
before_install:
- "export DISPLAY=:99.0"
- sudo apt-get install gfortran libblas-dev liblapack-dev mpich libmpich-dev
install:
- pip install .
- pip install codecov pytest-cov Sphinx sphinx_rtd_theme
- pip install git+https://github.com/CU-Denver-UQ/LUQ
- pip install mpi4py
script:
- pytest --cov=./bet/ ./test/
- mpirun -n 2 pytest ./test/
- pip uninstall -y mpi4py
- pytest ./test/
- sphinx-apidoc -f -o doc bet
- cd doc/
- make html
- make html
- cd ..
# notification settings
notifications:
email:
recipients:
on_success: change
on_failure: always
# whitelist
branches:
only:
- master
- v3-dev
# Push the results back to codecov
after_success:
- codecov
# Deploy docs
deploy:
provider: pages
skip_cleanup: true
skip_existing: true
github_token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep_history: false
local_dir: gh-pages/html
on:
branch: master