-
Notifications
You must be signed in to change notification settings - Fork 70
/
.travis.yml
74 lines (64 loc) · 2.01 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
language: node_js
# build matrix
os:
- linux
- osx
node_js:
- 7
- 8
- 9
compiler:
- gcc
env:
global:
- CXX=g++-4.8
matrix:
- REQUIRED_TESTS=true
- OPTIONAL_TESTS=true
# allow the ecosystem tests to fail. these failures should be
# communicated to the maintainers of the failing modules
matrix:
allow_failures:
- env: OPTIONAL_TESTS=true
fast_finish: true
# gcc 4.8 is included on osx
# install gcc 4.8 on linux using apt
addons:
postgresql: "9.6"
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
before_script:
- npm link
script:
- npm test
# retry the ecosystem tests if required; occasionally a no-output-received timeout will occur
# see: https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received
- 'if [ ${REQUIRED_TESTS} = "true" ]; then
travis_retry npm run ci;
fi'
- 'if [ ${OPTIONAL_TESTS} = "true" ]; then
npm run ci;
fi'
after_script:
- npm install -g codeclimate-test-reporter
- codeclimate-test-reporter < coverage/lcov.info
notifications:
email: false
webhooks:
urls:
- https://webhooks.gitter.im/e/54f8a1e753f859f5ca1a
on_start: never
on_failure: change
deploy:
provider: npm
email: hello@trailsjs.io
api_key:
secure: d/VChdWWPr8Mi6UyRUjIhjEfXHoyTCJ0z/pyNzF3yd2vpvC07fK90ka0CPxHhKyPWj7h7+ZG0FO0U8wj4YAZ8QeKIuc5rZbe1wI5yISpbnVxDKk0tYqyDFCRbmXVu7RNeLbBPN6y3fbJYdCLM14ugTfaJaBdewVTeOFGFBA712vHwu8ptWW/zw72YbH9d6C+LnAyz17ZyeAG7BvABISKv+bzuYexFaw4gv/uGNp2o//zC4FlXNcVWR3hb/cS6SWWoiPdsOZvDJTY+2J+WSEMlZ+PIZaJjfki4RbisoIg5Q3KM/WhgXwRfgma4POrGSqXvg8Yy1lqTIoZJT1SEnIj+KIOHuLoI+Rv1hc3n+Aw5Q2iMSPo/QlbolhfOhmGRkx5XIxIlKs/Vf6GJGQBf2lB5W2tgdf3UYwGbXjWOUoj+4NBotWQ4vaHlwfJb9sm66yXG9ayDkgc8Gegj6ooRC+xl8irgu/xgtSMKek6I893r/sLTnAkYcrLMUSqOp9qMBk8Zfdir978yKx4pTPBJvlnilze+cdSNMSXokKMDNF4wbaDVCyaFsoYEYNW/basaKynBiPgi4exjWH1SlXBOKA+LTr8i9ZwdGNIRDx3mxTiUHvwaYbn9tHOt8ymEwTfFe90a2XDp0+sUKEtLT+i6jF41iFQq0b/OwzWnQf3GfcDyYY=
on:
tags: true
repo: trailsjs/trails
node: 7