forked from elastic/apm-agent-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
182 lines (166 loc) · 4.02 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
174
175
176
177
178
179
180
181
182
# We don't need sudo as such, but setting sudo: required allows us to run on
# the faster machines which means that the builds complete much faster (in
# about half the time). For comparison, here are two builds on the two
# different machines:
# - With `sudo: false`: https://travis-ci.org/opbeat/opbeat-node/builds/252301998
# - With `sudo: required`: https://travis-ci.org/opbeat/opbeat-node/builds/252302576
sudo: required
language: node_js
services:
- mysql
- mongodb
- redis-server
- postgresql
# There's a bug npm@5 which ships with Node 8 that means we get a currupted
# install when using the test-all-versions command. For details see:
# https://github.com/npm/npm/issues/17061
# https://github.com/npm/npm/issues/17212
before_install:
- 'if [ "${TRAVIS_NODE_VERSION}" == "8" ]; then npm install -g npm@4; fi'
node_js:
- '8'
- '7.9.0' # currently 7.10.0 fails. For details see: https://github.com/nodejs/node/pull/12861
- '6'
- '5'
- '4'
- '0.12'
- '0.10'
jobs:
fast_finish: true
include:
# Docs
- stage: 'test'
script: npm run docs
perl: "5.26"
# Node.js 8
- stage: dependencies
node_js: '8'
env: TAV=generic-pool,mysql,redis,koa-router
script: tav --quiet
-
node_js: '8'
env: TAV=ioredis,pg
script: tav --quiet
-
node_js: '8'
env: TAV=bluebird
script: tav --quiet
-
node_js: '8'
env: TAV=knex,ws,graphql,express-graphql
script: tav --quiet
# Node.js 7
-
node_js: '7'
env: TAV=generic-pool,mysql,redis,koa-router
script: tav --quiet
-
node_js: '7'
env: TAV=ioredis,pg
script: tav --quiet
-
node_js: '7'
env: TAV=bluebird
script: tav --quiet
-
node_js: '7'
env: TAV=knex,ws,graphql,express-graphql
script: tav --quiet
# Node.js 6
-
node_js: '6'
env: TAV=generic-pool,mysql,redis,koa-router
script: tav --quiet
-
node_js: '6'
env: TAV=ioredis,pg
script: tav --quiet
-
node_js: '6'
env: TAV=bluebird
script: tav --quiet
-
node_js: '6'
env: TAV=knex,ws,graphql,express-graphql
script: tav --quiet
# Node.js 5
-
node_js: '5'
env: TAV=generic-pool,mysql,redis,koa-router
script: tav --quiet
-
node_js: '5'
env: TAV=ioredis,pg
script: tav --quiet
-
node_js: '5'
env: TAV=bluebird
script: tav --quiet
-
node_js: '5'
env: TAV=knex,ws,graphql,express-graphql
script: tav --quiet
# Node.js 4
-
node_js: '4'
env: TAV=generic-pool,mysql,redis,koa-router
script: tav --quiet
-
node_js: '4'
env: TAV=ioredis,pg
script: tav --quiet
-
node_js: '4'
env: TAV=bluebird
script: tav --quiet
-
node_js: '4'
env: TAV=knex,ws,graphql,express-graphql
script: tav --quiet
# Node.js 0.12
-
node_js: '0.12'
env: TAV=generic-pool,mysql,redis,koa-router
script: tav --quiet
-
node_js: '0.12'
env: TAV=ioredis,pg
script: tav --quiet
-
node_js: '0.12'
env: TAV=bluebird
script: tav --quiet
-
node_js: '0.12'
env: TAV=knex,ws,graphql,express-graphql
script: tav --quiet
# Node.js 0.10
-
node_js: '0.10'
env: TAV=generic-pool,mysql,redis,koa-router
script: tav --quiet
-
node_js: '0.10'
env: TAV=ioredis,pg
script: tav --quiet
-
node_js: '0.10'
env: TAV=bluebird
script: tav --quiet
-
node_js: '0.10'
env: TAV=knex,ws,graphql,express-graphql
script: tav --quiet
addons:
apt:
packages:
- xsltproc
- libxml2-utils
notifications:
email:
slack:
secure: Jq9ST6TYsZZtPgUdn60rZCfcclNF1cXaCqemt9ZKvqlDie9kbyJjU9t0K+EFdlQXgzM5sGAC+okRO9c29zMDuWvsuY6wb5K2p9j1cxfOn1FTc4xcxh/fKelu1Q7nGaMOIPvQuoI/TQBo4pwACyjli+ohz7DMVMRcans6GR+P0S8=
on_success: change
on_failure: change
on_pull_requests: false