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 2
/
Copy path.travis.yml
116 lines (95 loc) · 3.25 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
sudo: true
env:
global:
- AWS_ACCESS_KEY_ID=AKIAIYAXFUAHXOWP2MJA
# AWS_SECRET_ACCESS_KEY
- secure: "l1zLXnO5mByXuddohFHEk+i9vTGs8C7V3MIexh2eN6eCZxxys9XlBRWVetgye3h2KPtWNSwPvjiv3UV/pqT1fIaukdnmcC/oOAzdrUUnAA3uN+JSM/hW1aQp/RFXi7QAjI1BU+h0FapRuofIVZRW+7tUKWs5yX+ba0dI70H2Qv+tAa+KNNdchoVoY0uaEZChTHD4huYcTiuzBd96Mr2R2uVQEAOIdzCg4hM1RtT7JwrKbjCQ96kUrJh2+jA9WjID00rYPOtod3bQC7QqrIQ4YVXxlpETQeZuYwoU7pU126BEW+zYxxWH0rZ0vozS1sE6NEAFt5E0wB/rqUZSdO+p7uHvuOc6rADAYmXnktlLue2F6fVhhu8S/uznFkL59eIZAP4YgVJnmDv44B38ouX4g/aTWvWrcI7bLZeFmOLjN+a53QGHnzHllQoWhYe6iffx90t+KLi6Wrno46I7KYG9qu0Prpowx4Hzc2zqPegA3B/I5MYHWtX9a4zjT4X9HcDstG9VeqLxbnHO4YvZsqcYfk/ecreufnjKqYx4P+9V6QG0M8VXPb5jB9qdh2MI/8n0iUBVpgrvEtaevmE6oA7FAJ026Jh6hSlVeAm1ehidoiWlmi2+vAa0NlibhYQU5GE6kDk1BatuhwODoegjC0hUucmJqdSweoaexK3SCjK64FY="
jobs:
include:
- stage: Tests
name: Unit Tests
if: type = pull_request OR type = push AND branch =~ /^master|[0-9]+-(dev|stable)$/ OR type = cron
language: android
jdk:
- oraclejdk8
android:
components:
- tools
- build-tools-27.0.3
- platform-tools
- android-23
- extra-android-support
before_install:
- export TERM=dumb
- pip install --user codecov
script:
bash gradlew test jacocoTestReport
notifications:
email: false
after_success:
- bash <(curl -s https://codecov.io/bash)
- 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: 10
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
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
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