2018-09-03 10:36:58 +02:00
|
|
|
language: node_js
|
|
|
|
node_js:
|
2018-10-10 11:46:10 +02:00
|
|
|
- "10"
|
2018-09-03 10:36:58 +02:00
|
|
|
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- node_modules
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
|
|
|
|
before_install:
|
2018-10-10 11:46:10 +02:00
|
|
|
- npm install -g npm
|
2018-11-20 11:22:39 +01:00
|
|
|
- npm install -g release-it greenkeeper-lockfile ganache-cli@~6.1.8
|
2018-09-10 10:24:14 +02:00
|
|
|
|
|
|
|
before_script:
|
2018-10-10 11:46:10 +02:00
|
|
|
- greenkeeper-lockfile-update
|
|
|
|
- ganache-cli > ganache-cli.log &
|
|
|
|
- sleep 2
|
2018-09-03 10:36:58 +02:00
|
|
|
|
|
|
|
script:
|
2018-10-10 11:49:14 +02:00
|
|
|
- npm run test:cover
|
2018-10-10 11:46:10 +02:00
|
|
|
- npm run build
|
2018-10-10 11:49:14 +02:00
|
|
|
- npm run doc
|
2018-09-03 10:36:58 +02:00
|
|
|
|
2018-09-10 10:24:14 +02:00
|
|
|
after_script:
|
2018-10-10 11:46:10 +02:00
|
|
|
- greenkeeper-lockfile-upload
|
2018-09-10 10:24:14 +02:00
|
|
|
|
2018-09-03 10:36:58 +02:00
|
|
|
notifications:
|
2018-11-06 12:00:19 +01:00
|
|
|
email: false
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
- provider: npm
|
|
|
|
email: "devops@oceanprotocol.com"
|
|
|
|
api_key: ${NPM_TOKEN}
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
tags: true
|
2018-11-07 10:16:15 +01:00
|
|
|
|