forked from NOAA-PSL/stochastic_physics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (50 loc) · 1.25 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
# This will run on Travis' 'new' container-based infrastructure
sudo: false
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- "./miniconda.sh -b"
- export PATH=/home/travis/miniconda2/bin:$PATH
- conda update --yes conda
install:
- conda install --yes sphinx
- pip install sphinx_rtd_theme
# Blacklist
branches:
only:
- ufs_public_release
- release/public-v1
- release/ufs-v1.1.0
# Environment variables
env:
global:
- GH_REPO_NAME: stochastic_physics
- DOXYFILE: $TRAVIS_BUILD_DIR/
- GH_REPO_REF: github.com/noaa-psd/stochastic_physics.git
# Install dependencies
addons:
apt:
packages:
- doxygen
- graphviz
# Build your code e.g. by calling make
script:
- doxygen
- pushd docs
# Use Sphinx to make the html docs
- make html
# Tell GitHub not to use jekyll to compile the docs
- touch build/html/.nojekyll
- popd
# Generate and deploy documentation
before_deploy:
- cp -r html docs/build/html/doxygen
deploy:
provider: pages
skip_cleanup: true
local_dir: docs/build/html
github_token: $GH_REPO_TOKEN
on:
branch:
- ufs_public_release
- release/public-v1