commons/.travis.yml

48 lines
1.1 KiB
YAML

dist: xenial
language: node_js
node_js:
- '11'
addons:
apt:
packages:
# for Cypress
- libgconf-2-4
env:
global:
# run E2E tests against these values
- REACT_APP_NODE_URI="https://nile.dev-ocean.com"
- REACT_APP_AQUARIUS_URI="https://aquarius.marketplace.dev-ocean.com"
- REACT_APP_BRIZO_URI="https://brizo.marketplace.dev-ocean.com"
- REACT_APP_SECRET_STORE_URI="https://secret-store.marketplace.dev-ocean.com"
- REACT_APP_FAUCET_URI="https://faucet.nile.dev-ocean.com"
- REACT_APP_BRIZO_ADDRESS="0x4aaab179035dc57b35e2ce066919048686f82972"
before_install:
- npm install -g npm
- npm install -g codacy-coverage truffle ganache-cli
script:
# - ./scripts/install.sh # runs automatically with npm ci
- ./scripts/test.sh
- ./scripts/coverage.sh
- ./scripts/build.sh
notifications:
email: false
cache:
npm: true
directories:
# cache folder with Cypress binary
- ~/.cache
deploy:
- provider: script
skip_cleanup: true
script: bash -ex ./scripts/deploy_on_k8s.sh
on:
tags: true
all_branches: true