forked from elastic/apm-agent-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
96 lines (83 loc) · 2.08 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
# 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
dist: trusty
language: node_js
services:
- mysql
- mongodb
- redis-server
- postgresql
- cassandra
- memcached
cache:
npm: false
directories:
- deb-cache
env:
global:
- ELASTICSEARCH_DEB_VERSION=6.6.0
- ELASTICSEARCH_DEB_PACKAGE=elasticsearch-${ELASTICSEARCH_DEB_VERSION}.deb
before_install:
- |
if [ ! -f ./deb-cache/$ELASTICSEARCH_DEB_PACKAGE ]
then
curl -o ./deb-cache/$ELASTICSEARCH_DEB_PACKAGE https://artifacts.elastic.co/downloads/elasticsearch/$ELASTICSEARCH_DEB_PACKAGE
fi
- sudo dpkg -i --force-confnew ./deb-cache/$ELASTICSEARCH_DEB_PACKAGE && sudo service elasticsearch restart
install:
- for i in {1..3}; do travis_wait 5 npm install && break; rm -rf node_modules; done
before_script:
- wait-on tcp:9200
node_js:
- '14'
- '14.0'
- '13'
- '12'
- '12.0'
- '10'
- '10.0'
- '8'
- '8.6'
jobs:
fast_finish: true
include:
# Disable Async Hooks
-
node_js: '14'
env: ELASTIC_APM_ASYNC_HOOKS=false
-
node_js: '13'
env: ELASTIC_APM_ASYNC_HOOKS=false
-
node_js: '12'
env: ELASTIC_APM_ASYNC_HOOKS=false
-
node_js: '10'
env: ELASTIC_APM_ASYNC_HOOKS=false
-
node_js: '8'
env: ELASTIC_APM_ASYNC_HOOKS=false
# Commit Messages
-
node_js: 'lts/*'
name: "Lint Commit Messages"
script: commitlint-travis
# Coverage
-
node_js: 'lts/*'
name: "Code Coverage"
script:
- npm run coverage
- ./node_modules/.bin/nyc report --reporter=lcov > coverage.lcov
- npm install -g codecov
- codecov
addons:
apt:
packages:
- xsltproc
- libxml2-utils