2019-10-08 13:31:01 +02:00
|
|
|
dist: xenial
|
|
|
|
sudo: required
|
2018-09-03 10:36:58 +02:00
|
|
|
language: node_js
|
|
|
|
node_js:
|
2019-10-08 13:10:59 +02:00
|
|
|
- '10'
|
2018-09-03 10:36:58 +02:00
|
|
|
|
|
|
|
services:
|
2018-12-19 10:10:53 +01:00
|
|
|
- docker
|
2018-09-03 10:36:58 +02:00
|
|
|
|
2019-06-07 13:07:30 +02:00
|
|
|
cache: npm
|
2018-09-03 10:36:58 +02:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
|
|
|
|
before_install:
|
2018-12-19 10:10:53 +01:00
|
|
|
- npm install -g npm
|
2019-08-29 09:02:17 +02:00
|
|
|
- npm install -g codacy-coverage release-it greenkeeper-lockfile ganache-cli@~6.5.1
|
2018-09-10 10:24:14 +02:00
|
|
|
|
|
|
|
before_script:
|
2018-12-19 10:10:53 +01:00
|
|
|
- greenkeeper-lockfile-update
|
2019-01-11 11:17:42 +01:00
|
|
|
- ganache-cli --port 18545 > ganache-cli.log &
|
|
|
|
- git clone https://github.com/oceanprotocol/barge
|
|
|
|
- cd barge
|
2019-08-15 14:34:41 +02:00
|
|
|
- export AQUARIUS_VERSION=v0.3.8
|
2019-09-17 15:43:10 +02:00
|
|
|
- export BRIZO_VERSION=v0.4.4
|
2019-08-29 13:22:02 +02:00
|
|
|
- export KEEPER_VERSION=v0.11.1
|
2019-09-13 11:34:07 +02:00
|
|
|
- export EVENTS_HANDLER_VERSION=v0.1.2
|
2019-03-07 15:52:40 +01:00
|
|
|
- export KEEPER_OWNER_ROLE_ADDRESS="0xe2DD09d719Da89e5a3D0F2549c7E24566e947260"
|
2019-10-08 13:10:59 +02:00
|
|
|
- bash -x start_ocean.sh --no-commons --local-spree-node 2>&1 > start_ocean.log &
|
2019-01-11 11:17:42 +01:00
|
|
|
- cd ..
|
2018-09-03 10:36:58 +02:00
|
|
|
|
|
|
|
script:
|
2019-06-20 01:35:36 +02:00
|
|
|
- npm run lint
|
2019-08-15 14:34:41 +02:00
|
|
|
- ./scripts/keeper.sh
|
2019-01-11 11:17:42 +01:00
|
|
|
- export ETH_PORT=18545; npm run test:cover
|
2018-12-19 10:10:53 +01:00
|
|
|
- npm run build
|
|
|
|
- npm run doc
|
2019-09-17 16:21:04 +02:00
|
|
|
- export SEED_WORDS="taxi music thumb unique chat sand crew more leg another off lamp"; npm run integration:cover
|
2019-03-18 15:02:34 +01:00
|
|
|
- npm run report-coverage
|
2018-09-03 10:36:58 +02:00
|
|
|
|
2018-09-10 10:24:14 +02:00
|
|
|
after_script:
|
2018-12-19 10:10:53 +01: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:
|
2018-12-19 10:10:53 +01:00
|
|
|
- provider: npm
|
2019-10-08 13:10:59 +02:00
|
|
|
email: 'devops@oceanprotocol.com'
|
2018-12-19 10:10:53 +01:00
|
|
|
api_key: ${NPM_TOKEN}
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
tags: true
|