-
Notifications
You must be signed in to change notification settings - Fork 669
/
.travis.yml
30 lines (30 loc) · 922 Bytes
/
.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
language: node_js
sudo: false
node_js:
- 10
- 12
cache:
npm: false
before_install:
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ ! -z ${encrypted_58d69b955d05_key}
] && openssl aes-256-cbc -K $encrypted_58d69b955d05_key -iv $encrypted_58d69b955d05_iv
-in secrets.tar.enc -out test/resources/secrets.tar -d || true'
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ ! -z ${encrypted_58d69b955d05_key}
] && cd test/resources/ && tar xvf secrets.tar && cd ../.. || true'
script:
- npm run build
- npm run test-unit-travis || travis_terminate 1
- npm run test-integration-travis || node scripts/report_integration_test.js || travis_terminate
1
- npm run check-packages
- sh scripts/typedoc/generate_typedoc.sh
after_success:
- npm run report-coverage
- scripts/jsdoc/publish.sh
deploy:
- provider: script
skip_cleanup: true
script: npx semantic-release
on:
node: 12
repo: watson-developer-cloud/node-sdk