-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (44 loc) · 1.85 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
os: linux
dist: xenial
language: python
python:
- "3.6"
sudo: false
env:
global:
- secure: "gD3kHMwwE5FF9dOw5jtPNjJY3ALyXFfBLk0dLdhORWy2PIQ+hXyitrEm85Z79/+qbu64eDoL52/ztBTAJ1cdjtMiuhY3PFP/eytXoX8cHHoxTN7BC8AJRWlUIpi3S/sB4LIyn3mRxEfcMeRbOnQM99l6syB+4PcDpuXU9azDLQC830jkpPwwgnaqo6ecbmVIAUOhlZVGaBjNbgMC1kcy7mDcJTqB8ZzzrJr4si7Mvgxijmn/g5sIVetaKRPDXE7GiH8I3hjdd/KfHKV1mmPDDPuOG427qe1SjAV6+QQqtcywda6hWxLFugWaqyIYv+X93jVk+FHsLOdxM8GJo20k8cBc1rklSfvq4mFaCBp2RQzWsxH4//Wk8p1z4Ah2vAjdjp0xsA3ZmPFEwbx/pNNs/HZdws/th+DMxXov6329Agagyzpj93gcCszoo5vvXoICOKvNbhiiCNRuD7qR5K0iXhu00P5XOrvYKDl/Ifn5+29uKu0KhbOyEQoytmMnT2FYCOkE7dGuHnfn400FlDvOMKVd9eblHLdhfVfYrHtBUXxL2Xr1pEXQFTNACnMEYetzEYfIbVpHiX2z5jlnAvBRpceouz71kqZZ3oX9UsmLHkzFsZK9p0e4VlacOuEeCMCm+7D5wbaXkyBgK1A2PXI9tU6fV4x9HCnh3O2/rdrFcHs="
before_install:
- MINICONDA_DIR=$HOME/miniconda3
- wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
- bash Miniconda3-latest-Linux-x86_64.sh -b -p $MINICONDA_DIR
- echo "source $MINICONDA_DIR/etc/profile.d/conda.sh" >> $HOME/.bashrc
- source $HOME/.bashrc
- conda activate
- conda config --set always_yes yes
- conda config --add channels conda-forge
install:
- conda env create --name=py36 --file=environment.yaml
- conda activate py36
- pip install coveralls pytest pytest-cov
- pip install doctr
- pip install mkdocs python-markdown-math
- pip install git+https://github.com/NiklasRosenstein/pydoc-markdown.git@develop
- python setup.py install
script:
- py.test --cov=petibmpy
- pydoc-markdown
- mkdocs build --clean --verbose
- if [[ "${TRAVIS_BRANCH}" == "master" ]]; then
doctr deploy --built-docs=_site .;
else
doctr deploy --no-require-master --built-docs=_site "docs-$TRAVIS_BRANCH";
fi
after_success:
- coveralls
notifications:
email: false
branches:
tags: true
only:
- master
- develop