2019-05-06 16:18:40 +03:00
|
|
|
version: 2
|
|
|
|
jobs:
|
2019-05-15 15:23:29 +03:00
|
|
|
build:
|
|
|
|
docker:
|
|
|
|
- image: circleci/node:10.15
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: git submodule update --init
|
|
|
|
- run: yarn
|
|
|
|
- run: yarn run build
|
2019-05-06 16:18:40 +03:00
|
|
|
lint:
|
|
|
|
docker:
|
|
|
|
- image: circleci/node:10.15
|
|
|
|
steps:
|
|
|
|
- checkout
|
2019-05-09 13:03:18 +03:00
|
|
|
- run: git submodule update --init
|
2019-05-06 16:18:40 +03:00
|
|
|
- run: yarn
|
|
|
|
- run: yarn run lint
|
2019-05-10 15:04:20 +03:00
|
|
|
ansible-lint:
|
|
|
|
docker:
|
|
|
|
- image: particlekit/ansible-lint
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: ./deployment/lint.sh
|
2019-05-06 16:18:40 +03:00
|
|
|
test:
|
|
|
|
docker:
|
|
|
|
- image: circleci/node:10.15
|
|
|
|
environment:
|
|
|
|
HOME_RPC_URL: http://example.com
|
|
|
|
FOREIGN_RPC_URL: http://example.com
|
|
|
|
steps:
|
|
|
|
- checkout
|
2019-05-09 13:03:18 +03:00
|
|
|
- run: git submodule update --init
|
2019-05-06 16:18:40 +03:00
|
|
|
- run: yarn
|
|
|
|
- run: yarn run test
|
2019-05-15 14:51:21 +03:00
|
|
|
oracle-e2e:
|
|
|
|
docker:
|
|
|
|
- image: circleci/node:10.15
|
|
|
|
steps:
|
|
|
|
- checkout
|
2019-05-21 10:38:41 +03:00
|
|
|
- run: git submodule update --init
|
|
|
|
- run: yarn
|
2019-05-15 14:51:21 +03:00
|
|
|
- setup_remote_docker
|
|
|
|
- run: yarn run oracle-e2e
|
2019-05-21 10:41:52 +03:00
|
|
|
ui-e2e:
|
2019-05-20 10:56:18 +03:00
|
|
|
machine:
|
|
|
|
image: circleci/classic:latest
|
2019-05-21 10:41:52 +03:00
|
|
|
steps:
|
2019-05-20 10:56:18 +03:00
|
|
|
- checkout
|
|
|
|
- run: |
|
|
|
|
echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV
|
|
|
|
echo ' [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV
|
|
|
|
- run: nvm install 11.4.0 && nvm alias default 11.4.0
|
|
|
|
- run: curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
|
|
|
|
- run: echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
|
|
|
- run: sudo apt-get update && sudo apt-get install yarn
|
|
|
|
- run: wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
|
|
|
- run: sudo dpkg -i google-chrome-stable_current_amd64.deb
|
|
|
|
- run: git submodule update --init
|
|
|
|
- run: yarn
|
|
|
|
- run: yarn run ui-e2e
|
2019-05-22 17:09:02 +03:00
|
|
|
cover:
|
|
|
|
docker:
|
|
|
|
- image: circleci/node:10.15
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: git submodule update --init
|
|
|
|
- run: yarn
|
|
|
|
- run: yarn workspace ui run coverage
|
|
|
|
- run: yarn workspace ui run coveralls
|
2019-05-06 16:18:40 +03:00
|
|
|
workflows:
|
|
|
|
version: 2
|
2019-05-22 17:09:02 +03:00
|
|
|
coverage:
|
|
|
|
jobs:
|
|
|
|
- cover:
|
|
|
|
filters:
|
|
|
|
branches:
|
|
|
|
only: master
|
2019-05-06 16:25:28 +03:00
|
|
|
tokenbridge:
|
2019-05-06 16:18:40 +03:00
|
|
|
jobs:
|
2019-05-24 10:37:03 +03:00
|
|
|
- build
|
|
|
|
- lint
|
|
|
|
- ansible-lint
|
|
|
|
- test
|
2019-05-20 16:52:02 +03:00
|
|
|
- oracle-e2e
|
2019-05-24 10:37:03 +03:00
|
|
|
- ui-e2e
|