Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove SS job #1354

Merged
merged 3 commits into from Oct 19, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
58 changes: 21 additions & 37 deletions .circleci/config.yml
Expand Up @@ -9,6 +9,27 @@ commands:
libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 \
libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 \
libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 \
make-react-screenshots:
steps:
- run:
name: Make React screenshots
command: |
cd universal-login-react;
yarn start:dev & > /dev/null
RETRY=0; set +e;
while [ "$RETRY" != 60 ] && ! curl -s 0.0.0.0:8080 | grep -q "Universal Login React Playground"; do
echo sleeping...
sleep 1 && ((RETRY++));
done;
set -e; cd test; node screenshots.js
- run:
name: Make sure screenshots are taken
command: |
cd universal-login-react/test
[ $(ls screenshots | grep .png | wc -l) -gt 0 ]
- store_artifacts:
path: universal-login-react/test/screenshots
destination: screenshots
jobs:
lint_test_contracts_commons_ops:
docker:
Expand Down Expand Up @@ -52,46 +73,9 @@ jobs:
- run: cd universal-login-react && yarn test
- run: cd universal-login-wallet && yarn test
- run: cd universal-login-web3 && yarn test
react_screenshots:
docker:
- image: circleci/node:10.15
- image: circleci/postgres:9.6-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_DB: universal_login_relayer_test
steps:
- checkout
- run: yarn install --frozen-lockfile
- run: yarn build
- install-chrome-dependencies
- run:
name: Make React screenshots
command: |
cd universal-login-react;
yarn start:dev & > /dev/null
RETRY=0; set +e;
while [ "$RETRY" != 60 ] && ! curl -s 0.0.0.0:8080 | grep -q "Universal Login React Playground"; do
echo sleeping...
sleep 1 && ((RETRY++));
done;
set -e; cd test; node screenshots.js
- run:
name: Make sure screenshots are taken
command: |
cd universal-login-react/test
[ $(ls screenshots | grep .png | wc -l) -gt 0 ]
- store_artifacts:
path: universal-login-react/test/screenshots
destination: screenshots
workflows:
universal_login_all:
jobs:
- lint_test_contracts_commons_ops
- test_sdk_relayer
- test_react_wallet_web3
- react_screenshots:
filters:
branches:
only:
- master
- /ss-.*/