This repository has been archived by the owner on Sep 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
173 lines (150 loc) · 6.9 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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
---
env:
global:
# BINTRAY_USER
- secure: "LxONQZ8tHhxTqgu+kqx9fMCubCfTQHZsy/3ibE+l72xG8sOAYfj4hB5k1p4kklnv3skeFQEiL6B++B2qRITOEAPRdD8FExkc+UF/TM1rY5aUtjIjoA3uH4n9hYjHirTO5qNKf4KxDr1Zbcn4ISGebJ0EYwE0SG/ptrd06wPp1G8AHshc8XaZgen6gDaik66OWpQkOkmGsRz2EPmIBVgo7L2LGK21DSxE4/PTo+ou0WYCyxyyWSKLTLt1xZpt9LOtk7IckrHl+Nenl6IbV/CjHb3+5vwdifyFQd+K6AVe32iTIVjdxj7rDhEHYD0EqKb79ey+u8p9HquLnGH03gcVBeFQu/qhhQStsiwrD/S9c8jwBjWOOUnVI4bEbqjqxFaRlPfVnRaAjQZLRKHdqxyTJCdC2Ls79LmkqSCyTxM7WBwwgu4Slf6RJSbKJb5naHYlwDuKPbeyHLAYrxgjEHC28bxQiTr5wwBWxE9BLxUcnkFAXzsy3qE74FQOIjvQbtrruLIOGwRGRYtzyfygGA3MfTHug6JwZGngqFf3k+kbznE8fZe7zxMwT63P6/54rR5fU/plLoTNFqdQsZGA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jKa/NpdADoUv/WcoQAqjc8W3GhACRiNxRaGM58OF2WTojLM5fD3wwuicGkcsBkZkxho4cs0u36EEoxhZuy9U2/Emp7uhs9yCrhY0AwqYbSqvZ6jiwtJflvHHAsW2ZTgHWUekKippAyPIqF+QTeBvkg+q7tabOkfQLaZcREDzUBMI5AQiIW0Sv1fTPEs5jJv2+dE4bzi6BJmzFFGE0iHt4Nui7TLYMeAN17RYB5rJK50AGBA42Puzjr8CaV1FfnqLXOwiDXjGwvz7iHk4MMHFT/vvLcgDgHM16SM5QvhfbfX6Aj13VIG9lWUfKsalMSug8+zrXadtnZoz5XPskw1oA2iEUmgNzS33EVedgtxWDykadn3zhA+Ii+4C+Gge1dPG0sNXYiyI0/XKwlHBe6/Ar/DzKAf9Fo7/Z2haYGHC8XXmblagzVTxqX1FZVeiI3kyDBtduMSILU5ir5VA0dNtGdKVY=
# ------------------------
# Jobs configuration
# ------------------------
jobs:
include:
- 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
before_script:
- npm ci
- npm run doc-prepare
- $(npm bin)/kuzdoc iterate-repos:install --repos_path doc/framework/.repos/
- $(npm bin)/kuzdoc framework:link -d /sdk/java/3/ -v 3
script:
- gem install typhoeus
- cd doc/framework/ && HYDRA_MAX_CONCURRENCY=20 ruby .ci/dead-links.rb -p src/sdk/java/3/
- 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: 12
script: docker-compose -f .ci/doc/docker-compose.yml run doc-tests index
- stage: Tests
name: Unit tests SDK Java
language: java
jdk: openjdk8
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- "$HOME/.gradle/caches/"
- "$HOME/.gradle/wrapper/"
install: cd $TRAVIS_BUILD_DIR/
script: ./gradlew test
- stage: Builds
name: Build SDK Java
jdk: openjdk8
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- "$HOME/.gradle/caches/"
- "$HOME/.gradle/wrapper/"
install:
- cd $TRAVIS_BUILD_DIR/
- ./gradlew assemble
script: ./gradlew build
- stage: Deployments
name: Deploy documentation to next-docs.kuzzle.io
if: type = push AND branch =~ /^[0-9]+-dev$/
language: node_js
node_js: 12
env:
- BRANCH=dev
- NODE_ENV=production
- S3_BUCKET=docs-next.kuzzle.io
- CLOUDFRONT_DISTRIBUTION_ID=E2ZCCEK9GRB49U
- AWS_DEFAULT_REGION=us-west-2
addons:
apt:
update: true
packages:
- python
- python-pip
install:
- pip install awscli --upgrade --user
- npm ci
script:
- npm run doc-prepare
- npm run doc-build
deploy:
provider: script
script:
- npm run doc-upload
skip_cleanup: true
on:
all_branches: true
after_deploy:
- npm run doc-cloudfront
- stage: Deployments
name: Deploy documentation to docs.kuzzle.io
if: type = push AND branch =~ /^master|[0-9]+-stable$/
language: node_js
node_js: 12
env:
- NODE_ENV=production
- 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
script:
- npm run doc-prepare
- npm run doc-build
deploy:
provider: script
script:
- npm run doc-upload
skip_cleanup: true
on:
all_branches: true
after_deploy:
- npm run doc-cloudfront
- stage: Deployments
name: Deploy to Bintray
if: branch = master AND type = push
language: java
jdk:
- openjdk8
deploy:
provider: script
script: ./gradlew bintrayUpload
skip_cleanup: true
on:
condition: $TRAVIS_BRANCH = master
stages:
- name: Tests
if: type =~ /(cron|push|pull_request)/ AND branch =~ /^master|[0-9]+-(dev|stable)$/
- name: Builds
if: type =~ /(cron|push|pull_request)/ AND branch =~ /^master|[0-9]+-(dev|stable)$/
- name: Deployments
if: type =~ /(cron|push|pull_request)/ AND branch =~ /^master|[0-9]+-stable$/
notifications:
slack:
rooms:
- secure: ACjz4TJEYBEzmwVOYrCNnr4+jC0FaX+qh150QacYGIgaQYL+U3xLEQmWNlZ3oxaPPMDAk42m+diHolqNwh6qsOWaPSWRlGfLKhHLSzRI98bhF7HQ+3eLMYmx7y7SKwRzyRjus0jgxp0Kc2mq0nhKqv+7rarQtIgWlC1PLrzZ35CUbUlqYSoeYAlXoyDB1eZgYsvjt+eC5yCvGePsfKbupWC2/hIVl+qZ+9AhVmOfiMv7daFW29Vu300aoY+0IqwX7jHGcmHn/7QCRsx0IBy/SL24TzfSV9SUSnbjK4fTrcrhjYDEZdH1lpvDtvr50GgkrTjy1wPVz8XIyCZ7LZolylkx+nR1MWyvum20QRFub2Qhz/+rS+OFiQZ8H01BPuklLUTSQhBksfpGBck3d2yNLiTqGEVWYTnZ9mkCnMQ3BzJXEF04KLHG7wYn2rk6wjPghVmFQH5GMsxM5v33CFgcNzp6lRJOX9CmjZosck6o9SA0WlazHH/CLWWKk1wrQ1ygDayW5m+N/o58UIxgW2LIUlp4tV1z/bRtO2yTd020yWchlKPVmf1A5OMfigJNMRsQGNZNadS7qA2M394OJw3/Hg+0EVF8gai/V8FRijmkxmhYyCIYMcjaGwx8JxfoMrRKcM76haBAhg0JQxsSVKzyXfONGzd5DXjcxSGZ2wuEdu0=
on_success: never
on_failure: always