forked from slaclab/surf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
62 lines (52 loc) · 1.48 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
58
59
60
61
# This will run on Travis' 'new' container-based infrastructure
sudo: true
# Setup for Ubuntu Xenial (Ubuntu 16.04)
dist: xenial
# Blacklist
branches:
except:
- gh-pages
language:
- python
python:
- 3.6
# Environment variables
env:
global:
- GH_REPO_NAME: surf
- DOXYFILE: $TRAVIS_BUILD_DIR/Doxyfile
- GH_REPO_REF: github.com/slaclab/surf.git
# Install dependencies
addons:
apt:
packages:
- doxygen
- doxygen-doc
- doxygen-latex
- doxygen-gui
- graphviz
stages:
# On master branch (but not on PRs to master) or in tagged releases
# generate and deploy the documentation
- name: generate_and_deploy
if: (branch = master AND NOT (type = pull_request)) OR tag IS present
# On all other branches or PRs, but not on tagged releases
# only try to generate the documentation
- name: generate
if: (branch != master OR (type == pull_request)) AND tag IS blank
# Generate and deploy documentation
jobs:
include:
# Stage to only generate the documentation
- &documentation_stage
stage: generate
name: "Generate Documentation"
before_script:
- cd $TRAVIS_BUILD_DIR
- chmod +x generateDocumentationAndDeploy.sh
script: ./generateDocumentationAndDeploy.sh 0
# Stage to generate and deploy the documentation
- <<: *documentation_stage
stage: generate_and_deploy
name: "Generate and Deploy Documentation"
script: ./generateDocumentationAndDeploy.sh 1