-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
117 lines (101 loc) · 3.3 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
env:
global:
- AWS_ACCESS_KEY_ID=AKIAIYAXFUAHXOWP2MJA
# AWS_SECRET_ACCESS_KEY
- secure: "OQFVDr7a9KsvmBgRe5t/nx3cVQ76k5cHBPBtX130XkxqhNO3k41QUtits/LqrIDZPgx5hQGwtjrQmGmz9YD50cKvY623ZNwsdm79wPxMaK2ZXDWzW3OYd4SICH1FVzMYsAmVUpKqunAZ9RwiKK9jY0Wn36bdXmIggy6qVAHcz7T1Bu2K3v+S4hiymF6osTXZtqFUSOt0Qsl+iFsFO97bq/KZAmREImdaV3hX+z/ZPJTGck0Om8vtyI2mjjy1XCtJBgm/4/+xciDAgu/c7HdvBKkh5HmJ3kBYForL37inhQgH/rbbFzo1OtKtF76DNpJ83aB07GOB3hTVsZiEo4arRTwntO1zjkhZqTIgf/Q0oeb1s0iWs/vK30FMpoH7TMGEeE1d70NfUe9W2iaF2f1n4FoGI7S8jRq+UfX6o72fFbOepETY7f6fHHDSL6iS5pzakPWfn/3QanYT2Q7RxTvRTHTesEcC4d9ED1iFYLvFXLXGeVpC989YobxMfDtnXbV3RJeKB2MZFwlImqViyITTLAlZCOvuKXGhrjF1FXbnBcuUY+w+udyCJk0RW+/Guha3f30bBJ9yFg1hsRe/q9qOtamV6RK3MPkZWmhep5UQlQPVPeipFHHwpTDYtKeQDUI089FLmD+XaW6UwkLdzWRhL8COOFVrKrJlGwSPnWpqw1Q="
jobs:
include:
- stage: Tests
name: Linting
os: linux
sudo: required
language: node_js
node_js: 10
cache: npm
install:
- npm install --silent
script:
- npm run lint
- stage: Tests
name: Unit tests - Node.js 10
os: linux
sudo: required
language: node_js
node_js: 10
cache: npm
install:
- npm install --silent
script:
- npm run unit-testing
after_script:
- npm run codecov
- stage: Tests
name: Dead link check
if: type = pull_request OR type = push AND branch =~ /^master|[0-9]+-(dev|stable)$/ OR type = cron
install:
- npm ci --production=false
- npm i --save-dev kuzdoc
before_script:
- npm run doc-prepare
- npm run --prefix doc/framework clone-repos
script:
- gem install typhoeus
- HYDRA_MAX_CONCURRENCY=20 npm run --prefix doc/framework dead-links
- stage: Deployment Doc Dev
name: Deploy next-docs.kuzzle.io
if: type = push AND branch =~ .*-dev
language: node_js
node_js: 10
env:
- NODE_ENV=production
- 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:
- 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 --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