forked from nfsi-canada/OrientPy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (53 loc) · 1.36 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
language: c
os:
- linux
- osx
- windows
env:
- PYTHON_VERSION=3.6
- PYTHON_VERSION=3.7
- PYTHON_VERSION=3.8
jobs:
include:
- env: PYTHON_VERSION=3.7 DOCS=1
before_install:
- wget https://raw.githubusercontent.com/trichter/conda4travis/latest/conda4travis.sh -O conda4travis.sh
- source conda4travis.sh
- conda config --add channels conda-forge
- if [[ $DOCS == 1 ]]; then
DEP="sphinx sphinx_rtd_theme";
else
DEP="pytest-cov";
fi
- conda create -q -n testenv
python=$PYTHON_VERSION obspy $DEP
- conda activate testenv
- conda list
install:
- pip install stdb
- pip install geographiclib
- pip install -v --no-deps .
script:
- if [[ $DOCS == 1 ]]; then
cd docs; make html; touch _build/html/.nojekyll; cd ..;
else
mkdir empty; cd empty; pytest -v --cov=orientpy ../orientpy/tests/;
fi
after_success:
- if [[ $DOCS != 1 ]]; then
bash <(curl -s https://codecov.io/bash);
else
openssl aes-256-cbc -K $encrypted_8ebb1ef83f64_key -iv $encrypted_8ebb1ef83f64_iv -in ".travis/github_deploy_key.enc" -out ".travis/github_deploy_key" -d;
fi
notifications:
email: false
deploy:
provider: pages
# provider: pages:git
# edge:
# branch: octokit-latest
edge: true # opt in to dpl v2
deploy_key: .travis/github_deploy_key
local_dir: docs/_build/html
on:
condition: $DOCS = 1