Make Coveralls its own optional CI job (#7002)

* ci: Move Coveralls into optional step

* Split Coveralls step out of test:coverage npm script
feature/default_network_editable
Whymarrh Whitby 5 years ago committed by GitHub
parent e321feb92d
commit 6bc1077880
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      .circleci/config.yml
  2. 2
      package.json

@ -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

@ -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",

Loading…
Cancel
Save