-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (37 loc) · 1.44 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
# Loosely based on https://github.com/manubot/rootstock/blob/1780fac0ac6bba1260a9da3886061730fa5d2765/ci/install.sh
language: minimal
notifications:
email: false
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda3-py37_4.8.2-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- rm miniconda.sh
- source $HOME/miniconda/etc/profile.d/conda.sh
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda env create --quiet --file env/minimal-environment.yml
- conda list --name prmf
- conda activate prmf
install:
- pip install ghp-import==0.5.5 portray==1.3.1
- pip install .
# Use Manubot portray docs deploy script
# Include this in repository with attribution if it works well
- wget https://raw.githubusercontent.com/manubot/manubot/a4c826ceb954635810ba204a2393dce6fa7a5d5a/ci/deploy-docs.sh
- mkdir -p ci
- mv deploy-docs.sh ci/deploy-docs.sh
script:
- python -c "import prmf"
# See https://github.com/manubot/manubot/blob/a4c826ceb954635810ba204a2393dce6fa7a5d5a/.travis.yml#L23
- export PYTHONPATH=.
- portray as_html --overwrite --output_dir=docs
# Deploy procedure from Manubot
# https://github.com/manubot/manubot/blob/a4c826ceb954635810ba204a2393dce6fa7a5d5a/.travis.yml
deploy:
- provider: script
script: bash ci/deploy-docs.sh
skip_cleanup: true
on:
repo: gitter-lab/prmf
branch: master
condition: $TRAVIS_EVENT_TYPE = "push"