forked from luca-fiorito-11/sandy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (42 loc) · 1.09 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
language: python
dist: xenial
git:
depth: 3
addons:
apt:
packages:
- gfortran
- cmake
- git
env:
- NJOY=${TRAVIS_BUILD_DIR}/NJOY2016/build/njoy
python:
- "3.6"
branches:
except: gh-pages
before_install:
- git clone https://github.com/njoy/NJOY2016.git && (cd NJOY2016 && mkdir build && cd build && cmake -DPython3_EXECUTABLE=$(which python3) .. && make) # install NJOY
- rm -rf NJOY2016/tests
- pip install sphinx sphinx_rtd_theme codecov numpydoc coveralls pytest-cov nbval
- pip install -r requirements.txt
install:
- python setup.py install
script:
- pytest --cov=sandy sandy
# - git clone https://github.com/luca-fiorito-11/sandy_notebooks.git
# - pytest --cov-append --cov=sandy sandy_notebooks
after_success:
- coveralls
# Set up sphinx configuration file and produce SANDY documentation in html.
before_deploy:
- bash make_docs.sh html
# Deploy SANDY docs to gihub pages
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
local-dir: "api_docs/build/html"
keep-history: false
overwrite: true
on:
branch: develop