forked from DIAGNijmegen/website-content
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
144 lines (141 loc) · 3.74 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# Default settings for all Pelican builds
build_defaults: &build_defaults
stage: build and deploy
language: python
python: 3.6
before_install:
- export TZ=Europe/Amsterdam
script:
- bash parse_publications.sh
- bash copy_content.sh
- bash deploy.sh
cache:
- pip
# Default configuration for the deploy to Github Pages
deploy_defaults: &deploy_defaults
provider: pages
repo: diagnijmegen/$WEBSITE
skip-cleanup: true
keep_history: true
local_dir: $WEBSITE/output
target_branch: master
email: $WEBTEAM_EMAIL
name: "Webteam DIAG Deploy Bot"
token: $GH_PAGES
"on":
branch: master
notifications:
email:
recipients:
- $WEBTEAM_EMAIL
on_success: change # default: change
on_failure: always # default: always
jobs:
include:
# Build and deploy steps for Pathology website
- <<: *build_defaults
name: Build Computational Pathology website
env:
- WEBSITE=website-pathology
- GENERATE_PUB=1
deploy:
<<: *deploy_defaults
fqdn: www.computationalpathologygroup.eu
# Build and deploy steps for Retina website
- <<: *build_defaults
name: Build Retina website
env:
- WEBSITE=website-retina
- GENERATE_PUB=1
deploy:
<<: *deploy_defaults
fqdn: www.a-eyeresearch.nl
# Build and deploy steps for RSE website
- <<: *build_defaults
name: Build RSE website
env:
- WEBSITE=website-rse
- GENERATE_PUB=1
deploy:
<<: *deploy_defaults
fqdn: rse.diagnijmegen.nl
# Build and deploy steps for AIIM website
- <<: *build_defaults
name: Build AIIM website
env:
- WEBSITE=website-aiimnijmegen
- GENERATE_PUB=1
deploy:
<<: *deploy_defaults
fqdn: www.aiimnijmegen.nl
# Build and deploy steps for Bodyct website
# - <<: *build_defaults
# name: Build BodyCT website
# env:
# - WEBSITE=website-bodyct
# - GENERATE_PUB=1
# deploy:
# <<: *deploy_defaults
# fqdn: bodyct.diagnijmegen.nl
# Build and deploy steps for Neuro website
- <<: *build_defaults
name: Build Neuro website
env:
- WEBSITE=website-neuro
- GENERATE_PUB=1
deploy:
<<: *deploy_defaults
# Beta deploy job for deploying to Netlify
- <<: *build_defaults
name: Build DIAG websites (Netlify beta)
env:
- WEBSITE=website-diag
- GENERATE_PUB=1
- SKIP_IMG_COPY=1
deploy:
provider: netlify
site: $NETLIFY_SITEID_DIAG
auth: $NETLIFY_AUTH
edge: true # opt in to dpl v2
dir: $WEBSITE/output
prod: true
on:
branch: master
# Build and deploy steps for RTC website
- <<: *build_defaults
name: Build RTC website
env:
- WEBSITE=website-rtc
- GENERATE_PUB=1
deploy:
<<: *deploy_defaults
fqdn: rtc.diagnijmegen.nl
# Build and deploy steps for AI-for-Health website
- <<: *build_defaults
name: Build AI-for-Health website
env:
- WEBSITE=website-ai-for-health
- GENERATE_PUB=0
deploy:
<<: *deploy_defaults
fqdn: www.ai-for-health.nl
# Run image optimization script
- stage: images
if: branch = master
script: bash ./optimize_images.sh
language: node_js
node_js: 10.15
install:
- npm install --prefix imgoptim --no-save
cache:
- npm
# Beta deploy media to Netlify
deploy:
provider: netlify
site: $NETLIFY_SITEID_MEDIA
auth: $NETLIFY_AUTH
edge: true # opt in to dpl v2
dir: assets_deploy
prod: true
on:
branch: master