-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
158 lines (136 loc) · 4.78 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
env:
global:
- AWS_ACCESS_KEY_ID=AKIAIYAXFUAHXOWP2MJA
# AWS_SECRET_ACCESS_KEY
- secure: "NwMEJIJ07T6XQ9AcvvzeYKZn9DDVCW4NZMv1lESOn3s1iFFhZ7iT2LsB+tHwjjjTf5L+DWclDhb0ec+5OU6ExgNuo18nh31bJjryEVX/GJ7ApEzuWAW/NgQ7Gq5wIQl2N2Lx2C3LeWyD35mCGz0wkjsFHgLh7SRBu/S7buMAL1N0KX6/xH1XwUgsNL7QcnckzovfBvW/ZkCOmQOQQuk+d4xUQUpgtd1Ey0U/KMC9Ot8dKHJkYaQlICK34zu9Ovx6rOBMwU5TWxgyrq8QYX3b170Kk7Yn/HvbUlgkQ7mPUlIh1uUgh4/Lwr3x3h03nVoyaPXWcP4PxlgDAjoshdJPOaoO8SV8JoBk6Wnkp4mHOwPReqtE33pCvjaYGM7Y6IGs0UQqZtR3CKHeKg8bPLQPnc/AA8SYz27H46DnRk1UG4vGj/5KuCnwC7MvYR2Ptx0GBCoseopTHot/gDjDKsQP4Q00sdTsTpwDL6e/MGuBup4l5u7QKwftwnACzsvl7m0B5oJOGOh3nXm22rZ9aJxi+oeKiiIxiEdfJKl/8cayYT6UCYpWUM8L+LuXeQljlezy038AMTHGPA/v+vH4nBIDt/ohCUkoonUQd21tCVbQ+RCzojg/GyuQ7nEKrCuVA4PLv9HoN2C5k9MUY0SvlrPz0t4wNkfInqDXOVyiudAh3xU="
jobs:
include:
- stage: Tests
name: Unit Tests
if: type = pull_request OR type = push AND branch =~ /^master|[0-9]+-dev$/ OR type = cron
language: csharp
solution: sdk-csharp.sln
sudo: required
dist: xenial
dotnet: 2.2
mono: latest
install:
- dotnet restore
script:
- dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput=$TRAVIS_BUILD_DIR/lcov.info
- curl -s https://codecov.io/bash > codecov && bash codecov
- stage: Tests
name: Documentation Snippets
if: type = pull_request OR type = push AND branch =~ /^master|[0-9]+-dev$/ OR type = cron
language: node_js
node_js: 10
script:
- docker-compose -f .ci/doc/docker-compose.yml run doc-tests node index
- stage: Tests
name: Dead link check
if: type = pull_request OR type = push AND branch =~ /^master|[0-9]+-(dev|stable)$/ OR type = cron
language: node_js
node_js: 12
cache:
directories:
- $HOME/.gem/specs
install:
- gem install typhoeus
- npm ci --production=false
- npm i --save-dev kuzdoc
before_script:
- npm run doc-prepare
- $(npm bin)/kuzdoc iterate-repos:install --repos_path doc/framework/.repos/
- $(npm bin)/kuzdoc framework:link -d /sdk/csharp/2/ -v 2
script:
- cd doc/framework/
- HYDRA_MAX_CONCURRENCY=20 ruby .ci/dead-links.rb -p src/sdk/csharp/2/
- stage: Tests
name: Build documentation
if: type = pull_request OR type = push AND branch =~ /^master|[0-9]+-(dev|stable)$/ OR type = cron
language: node_js
node_js: 10
install:
- npm ci --production=false
- npm i --save-dev kuzdoc
script:
- npm run doc-prepare
- npm run doc-build
- stage: Deployments
name: NuGet
if: type = push AND branch =~ /^(master|[0-9]+-stable)$/
language: csharp
solution: sdk-csharp.sln
sudo: required
dist: xenial
dotnet: 2.2
mono: latest
install:
- dotnet restore
script:
# incompatibilities with msbuild, so building with .net core instead
- dotnet build $TRAVIS_BUILD_DIR/Kuzzle/Kuzzle.csproj -c Release
- dotnet build $TRAVIS_BUILD_DIR/Kuzzle.Tests/Kuzzle.Tests.csproj
deploy:
skip_cleanup: true
email: [email protected]
provider: script
script: bash deploy.sh
on:
all_branches: true
- stage: Deployment Doc Dev
name: Deploy next-docs.kuzzle.io
if: type = push AND branch =~ .*-dev
language: node_js
node_js: 10
env:
- S3_BUCKET=docs-next.kuzzle.io
- CLOUDFRONT_DISTRIBUTION_ID=E2ZCCEK9GRB49U
- AWS_DEFAULT_REGION=us-west-2
addons:
apt:
packages:
- python
- python-pip
install:
- pip install awscli --upgrade --user
- npm ci --production=false
- npm i --save-dev kuzdoc
script:
- npm run doc-prepare
- npm run doc-build
deploy:
provider: script
script:
- npm run doc-upload
skip_cleanup: true
after_deploy:
- npm run doc-cloudfront
- stage: Deployment Doc Prod
name: Deploy docs.kuzzle.io
if: type = push AND branch =~ /^master|[0-9]+-stable$/
language: node_js
node_js: 10
env:
- S3_BUCKET=docs.kuzzle.io
- CLOUDFRONT_DISTRIBUTION_ID=E3D6RP0POLCJMM
- AWS_DEFAULT_REGION=us-west-2
addons:
apt:
packages:
- python
- python-pip
install:
- pip install awscli --upgrade --user
- npm ci --production=false
- npm i --save-dev kuzdoc
script:
- npm run doc-prepare
- npm run doc-build
deploy:
provider: script
script:
- npm run doc-upload
skip_cleanup: true
after_deploy:
- npm run doc-cloudfront