1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00
squid-js/.travis.yml

58 lines
1.7 KiB
YAML
Raw Normal View History

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:
2020-05-27 10:31:56 +02:00
- '12'
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
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
2020-05-19 16:22:03 +02:00
- npm install -g ganache-cli@~6.5.1
2020-01-22 15:56:03 +01:00
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
2018-09-10 10:24:14 +02:00
before_script:
2019-01-11 11:17:42 +01:00
- ganache-cli --port 18545 > ganache-cli.log &
- git clone https://github.com/oceanprotocol/barge
- cd barge
- export AQUARIUS_VERSION=v1.1.0
2020-05-16 10:26:21 +02:00
- export BRIZO_VERSION=v0.9.7
2020-01-10 20:30:10 +01:00
- export KEEPER_VERSION=v0.13.2
2020-04-14 17:42:32 +02:00
- export EVENTS_HANDLER_VERSION=v0.4.7
2019-03-07 15:52:40 +01:00
- export KEEPER_OWNER_ROLE_ADDRESS="0xe2DD09d719Da89e5a3D0F2549c7E24566e947260"
2019-11-06 13:44:36 +01:00
- rm -rf "${HOME}/.ocean/keeper-contracts/artifacts"
2019-10-31 11:23:41 +01:00
- bash -x start_ocean.sh --no-commons --no-dashboard 2>&1 > start_ocean.log &
2019-01-11 11:17:42 +01:00
- cd ..
2018-09-03 10:36:58 +02:00
script:
- npm run lint
- ./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
2020-01-30 22:08:18 +01:00
- npm run test:integration:cover
2018-09-03 10:36:58 +02:00
2018-09-10 10:24:14 +02:00
after_script:
2020-01-22 15:56:03 +01:00
- ./cc-test-reporter format-coverage -t lcov -o coverage/codeclimate.unit.json coverage/unit/lcov.info # Format unit test coverage
- ./cc-test-reporter format-coverage -t lcov -o coverage/codeclimate.integration.json coverage/integration/lcov.info # Format integration test coverage
- ./cc-test-reporter sum-coverage coverage/codeclimate.*.json -p 2 # Sum both coverage parts into coverage/codeclimate.json
- if [[ "$TRAVIS_TEST_RESULT" == 0 ]]; then ./cc-test-reporter upload-coverage; fi # Upload coverage/codeclimate.json
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