1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 01:47:00 +01:00

Make Coveralls its own optional CI job (#7002)

* ci: Move Coveralls into optional step

* Split Coveralls step out of test:coverage npm script
This commit is contained in:
Whymarrh Whitby 2019-08-13 13:29:10 -02:30 committed by GitHub
parent e321feb92d
commit 6bc1077880
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 1 deletions

View File

@ -74,6 +74,9 @@ workflows:
- prep-build
# - prep-docs
- all-tests-pass
- coveralls-upload:
requires:
- test-unit
jobs:
create_release_pull_request:
@ -303,6 +306,17 @@ jobs:
name: All Tests Passed
command: echo 'weew - everything passed!'
coveralls-upload:
docker:
- image: circleci/node:10.16-browsers
steps:
- checkout
- attach_workspace:
at: .
- run:
name: Coveralls upload
command: yarn test:coveralls-upload
create_github_release:
docker:
- image: circleci/node:8.15.1-browsers

View File

@ -22,7 +22,7 @@
"test:web3:chrome": "SELENIUM_BROWSER=chrome test/e2e/run-web3.sh",
"test:web3:firefox": "SELENIUM_BROWSER=firefox test/e2e/run-web3.sh",
"test:e2e:firefox": "SELENIUM_BROWSER=firefox test/e2e/run-all.sh",
"test:coverage": "nyc --reporter=text --reporter=html npm run test:unit && yarn test:coveralls-upload",
"test:coverage": "nyc --reporter=text --reporter=html npm run test:unit",
"test:coveralls-upload": "if [ $COVERALLS_REPO_TOKEN ]; then nyc report --reporter=text-lcov | coveralls; fi",
"test:flat": "yarn test:flat:build && karma start test/flat.conf.js",
"test:flat:build": "yarn test:flat:build:ui && yarn test:flat:build:tests && yarn test:flat:build:locales",