forked from prijindal/kuzzle_dart
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.old.yml
152 lines (134 loc) · 5.25 KB
/
.travis.old.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
---
env:
global:
- AWS_ACCESS_KEY_ID=AKIAIYAXFUAHXOWP2MJA
# AWS_SECRET_ACCESS_KEY
- secure: "AD6LYeqGcWox9XquexlvLTZyEukB2pK9WXtM1v5S2epzddizUc8MNFZjsuUTZnNZIHj6lVr9oxNyGgrzdy3AyjcVi/N57PQD9DTWzkR7vdEd/W9Oh2JnQYKzp4dCrhsPtBGkcbGK3FQPxV7iWd/Ac4CPowx3cdCspfg00goipv2VOZvm06TEzwPkJ1uUoibGCNRmc1tvmg+1D4S5C4TGV5Iyglape4/WzHXrG3Pd8xAyAqwV/ANsw5qfeRH41Ll/rMaDrGIsS7gBxgqD9C2GvkYL4Y8t2ssGrz+7dc5jkRwdKzS4Ho9fN9TIDv7bBQOa1QwM4TJHcjm3TH0uEJENeeyqTbLKBjVSBGA1VY9aoYl5am40Oswg5YbWi5B1zXqHoT8XzrskHPAmVC2mJt3SSnqJG/RJE2jhZ4V1Sx47crF3kGGCLYLr6v4gxtWkxe2yFrT9BmnHV6MsGqySK4apYBQsgQIFXhVmcUTmTqjPKdYoUN9bOfeBitD+6LwNb08+NI/tIE3QEhGWlbCywH1gGwMAdseI0C1nG6tbeU0kafAkDRqrhvBg+peFD2UgI9efxOm/NkuJ4oRq03oHiBdyq+lXs/CTEGfWU6pIwOStrIF4qS12S2wcjCDcUGzofZuG+d4UOUapK/k959lFY9yZhBWfdpChfCJYVNogKLhNtE8="
# ------------------------
# 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/dart/2/ -v 2
script:
- gem install typhoeus
- cd doc/framework/ && HYDRA_MAX_CONCURRENCY=20 ruby .ci/dead-links.rb -p src/sdk/dart/2/
- 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 Dart SDK
language: dart
sudo: false
dart:
- stable
dart_task:
- test: --platform vm
- dartanalyzer: --fatal-warnings lib
services:
- docker
before_script:
- if [ $TRAVIS_DART_TEST == true ]; then ./docker_launch.sh; fi
cache:
directories:
- $HOME/.pub-cache
after_success:
# - if [ "$TRAVIS_DART_VERSION" == "stable" ] && [ $TRAVIS_DART_TEST == true ]; then ./coverage.sh; fi
- if [ "$TRAVIS_DART_VERSION" == "stable" ] && [ $TRAVIS_DART_TEST == true ] && [ $TRAVIS_BRANCH == 'master' ]; then dartdoc; fi
- 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
- FRAMEWORK_BRANCH=master
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 on pub.dev
if: type = push AND branch =~ /^master|[0-9]+-stable$/
language: dart
dart: stable
script:
- pub publish --force
stages:
- name: Tests
if: (type = push AND branch =~ /^master|[0-9]+-(dev|stable)$/) OR type = pull_request
- name: Builds
if: (type = push AND branch =~ /^master|[0-9]+-(dev|stable)$/) OR type = pull_request
- name: Deployments
if: type = push AND branch =~ /^master|[0-9]+-(dev|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