1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00
commons/.travis.yml

55 lines
1.5 KiB
YAML
Raw Normal View History

2019-04-24 13:31:17 +02:00
dist: xenial
2019-06-26 13:42:46 +02:00
sudo: required
2019-03-07 14:56:07 +01:00
language: node_js
2019-04-24 13:31:17 +02:00
node_js:
- '11'
2019-03-07 14:56:07 +01:00
2019-05-17 12:14:02 +02:00
addons:
apt:
packages:
# for Cypress
- libgconf-2-4
2019-06-26 10:55:21 +02:00
env:
global:
# run E2E tests against these values
2019-06-25 17:30:46 +02:00
- REACT_APP_NODE_URI="https://pacific.oceanprotocol.com"
2019-06-27 22:23:31 +02:00
- REACT_APP_AQUARIUS_URI="https://aquarius.commons.oceanprotocol.com"
- REACT_APP_BRIZO_URI="https://brizo.commons.oceanprotocol.com"
- REACT_APP_SECRET_STORE_URI="https://secret-store.oceanprotocol.com"
- REACT_APP_FAUCET_URI="https://faucet.oceanprotocol.com"
2019-06-25 17:30:46 +02:00
- REACT_APP_BRIZO_ADDRESS="0x008c25ed3594e094db4592f4115d5fa74c4f41ea"
2019-06-26 10:55:21 +02:00
2019-04-30 12:21:43 +02:00
before_install:
- npm install -g npm
- npm install -g codacy-coverage truffle ganache-cli
2019-06-26 13:42:46 +02:00
# Fixes an issue where the max file watch count is exceeded, triggering ENOSPC
# https://stackoverflow.com/questions/22475849/node-js-error-enospc#32600959
- echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
2019-04-30 12:21:43 +02:00
2019-03-24 02:10:00 +01:00
script:
2019-04-01 12:20:42 +02:00
# - ./scripts/install.sh # runs automatically with npm ci
2019-06-26 19:39:13 +02:00
# executing `npm test` scripts individually here, so first one failing will exit the build
- npm run lint || travis_terminate 1
2019-06-26 19:34:20 +02:00
- ./scripts/test.sh || travis_terminate 1
2019-06-26 19:39:13 +02:00
- npm run test:e2e || travis_terminate 1
2019-04-30 12:21:43 +02:00
- ./scripts/coverage.sh
2019-03-24 02:18:53 +01:00
- ./scripts/build.sh
2019-03-07 14:56:07 +01:00
notifications:
email: false
2019-05-17 12:14:02 +02:00
cache:
npm: true
directories:
# cache folder with Cypress binary
- ~/.cache
2019-04-08 16:41:59 +02:00
deploy:
- provider: script
skip_cleanup: true
script: bash -ex ./scripts/deploy_on_k8s.sh
on:
tags: true
all_branches: true