1 | # Build matrix
|
2 | language: node_js
|
3 | matrix:
|
4 | include:
|
5 | # Run lint only in Node.js 6.x
|
6 | - node_js: '6'
|
7 | env: LINT=true
|
8 |
|
9 | # Run snyk only in Node.js 6.x
|
10 | - node_js: '6'
|
11 | env: SNYK=true
|
12 |
|
13 | # Run tests in Node.js 4.x
|
14 | - node_js: '4'
|
15 |
|
16 | # Run tests in Node.js 5.x
|
17 | - node_js: '5'
|
18 |
|
19 | # Run tests in Node.js 6.x
|
20 | - node_js: '6'
|
21 |
|
22 | # Run tests in Node.js 8.x
|
23 | - node_js: '8'
|
24 |
|
25 | allow_failures:
|
26 | # Run tests in the latest version of Node.js
|
27 | - node_js: 'node'
|
28 |
|
29 | # Restrict builds on branches
|
30 | branches:
|
31 | only:
|
32 | - master
|
33 | - /^\d+\.\d+\.\d+$/
|
34 |
|
35 | # Build script
|
36 | script: ./build-script
|
37 |
|
38 | # Updates the dashboard after a successful deployment
|
39 | after_success:
|
40 | - if [ $SNYK ] && [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]; then snyk monitor --org=springernature; fi
|
41 |
|
42 | # Build notifications
|
43 | notifications:
|
44 | slack:
|
45 | secure: NOoWXmJOkn197lvsTMwnc4ACPfv6fnZuHg+y/WCT6rKVmCkyDWzcO8TGfvQUec7NkUGdH5Umeq4Ll0nDb2qxceMvEcAKaIsTxebO1AB2/ThOEM25yMi1h4ZpuMOTVPfMk8xqttJ9xOqkfgFtzczkbjYEFWMzGOX3KxjS6oOnScmbtdbB1yXbBMB75Ws0hehMEsNlRlD/76MSrlIwFHChSAUg/qJYA+mBEHOOnuMD9MbdfItmfPMu7ERxD3vrCnvE0hz++OongewofNloByTZAYBYq+OlkXvNK3Qd3H2kmhibwzVvxmo7YHOttsjXSFUUA0/URgwex/VOx75yO3D0FqJDC02w1GNQFSYGuMLnQQQI7G0CeqblBjg7Gya/YGcaASkxpsTVlOgy+K5ng5ZKtyAW7tY0YJlfpXTZEvouNlhntvhx9oa1N2hr+xrhzy3XLGa0qCsF4LSS5vQ6O9oimW02XS8LiSdyerL23F/wrm2wOizAUwV3OpNEMH5UAan1C4mlVnoNQZaVskjucxYqRDGjdxx0M8SwLBrKrh8PqURXdktjTuzj8jtMtqsMHeTswcb+IS7RrfQB1hs5EX6pEw/3RMASYsUT4Q4yo+Lc5ReU2bdvS468uQEH87MBhwqOqdjACpu+zgzBag8O9RF+BqHcutgLFpgY3yFz0TOEcQo=
|