2020-04-27 15:04:17 +02:00
|
|
|
dist: xenial
|
|
|
|
language: node_js
|
|
|
|
node_js: node
|
|
|
|
|
|
|
|
cache:
|
|
|
|
npm: true
|
|
|
|
|
2020-04-27 17:05:11 +02:00
|
|
|
# before_script:
|
|
|
|
# - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
|
|
|
# - chmod +x ./cc-test-reporter
|
|
|
|
# - './cc-test-reporter before-build'
|
|
|
|
|
2020-04-27 15:04:17 +02:00
|
|
|
script:
|
|
|
|
# will run `npm ci` automatically here
|
|
|
|
- npm test
|
2020-04-27 17:05:11 +02:00
|
|
|
# - './cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT'
|
2020-04-28 17:15:47 +02:00
|
|
|
- npm run build
|
2020-04-27 15:04:17 +02:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|
2020-05-11 14:09:43 +02:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
- provider: npm
|
|
|
|
email: 'devops@oceanprotocol.com'
|
|
|
|
api_key: ${NPM_TOKEN}
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
tags: true
|