mirror of
https://github.com/yldio/copilot.git
synced 2024-12-29 05:10:05 +02:00
chore: add coverage to CI
This commit is contained in:
parent
e879b7be97
commit
81b34c8efe
@ -22,8 +22,12 @@ dependencies:
|
||||
|
||||
test:
|
||||
pre:
|
||||
# mkdir lint reports
|
||||
- mkdir -p $CIRCLE_TEST_REPORTS/lint
|
||||
# mkdir test reports
|
||||
- mkdir -p $CIRCLE_TEST_REPORTS/test
|
||||
# mkdir coverage artifact folders
|
||||
- ls -1 packages | xargs -I % mkdir -p $CIRCLE_ARTIFACTS/"%"
|
||||
override:
|
||||
# lint
|
||||
- yarn run lint-ci
|
||||
|
@ -8,7 +8,7 @@
|
||||
"lint": "eslint . --fix",
|
||||
"lint-ci": "eslint . --format junit --output-file $CIRCLE_TEST_REPORTS/lint/docker-compose-client.xml",
|
||||
"test": "cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text ava",
|
||||
"test-ci": "cross-env NODE_ENV=test ava --tap | tap-xunit > $CIRCLE_TEST_REPORTS/test/docker-compose-client.xml"
|
||||
"test-ci": "cross-env NODE_ENV=test nyc --report-dir=$CIRCLE_ARTIFACTS/docker-compose-client --reporter=lcov --reporter=text ava --tap | tap-xunit > $CIRCLE_TEST_REPORTS/test/docker-compose-client.xml"
|
||||
},
|
||||
"dependencies": {
|
||||
"apr-awaitify": "^1.0.4",
|
||||
|
@ -25,7 +25,7 @@
|
||||
"lint": "redrun -s lint:*",
|
||||
"lint-ci": "redrun -p lint-ci:*",
|
||||
"test": "bup && cross-env NODE_ENV=test jest --coverage",
|
||||
"test-ci": "cross-env NODE_ENV=test JEST_JUNIT_OUTPUT=$CIRCLE_TEST_REPORTS/test/normalized-styled-components.xml jest --testResultsProcessor='./node_modules/jest-junit'",
|
||||
"test-ci": "cross-env NODE_ENV=test JEST_JUNIT_OUTPUT=$CIRCLE_TEST_REPORTS/test/normalized-styled-components.xml jest --coverage --coverageDirectory=$CIRCLE_ARTIFACTS/normalized-styled-components --testResultsProcessor='./node_modules/jest-junit'",
|
||||
"build": "bup",
|
||||
"prepublish": "redrun build"
|
||||
},
|
||||
|
@ -25,7 +25,7 @@
|
||||
"lint": "eslint . --fix",
|
||||
"lint-ci": "eslint . --format junit --output-file $CIRCLE_TEST_REPORTS/lint/pseudo-json-ast.xml",
|
||||
"test:run": "cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text ava",
|
||||
"test-ci:run": "cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text ava --tap | tap-xunit > $CIRCLE_TEST_REPORTS/test/pseudo-json-ast.xml",
|
||||
"test-ci:run": "cross-env NODE_ENV=test nyc --report-dir=$CIRCLE_ARTIFACTS/pseudo-json-ast --reporter=lcov --reporter=text ava --tap | tap-xunit > $CIRCLE_TEST_REPORTS/test/pseudo-json-ast.xml",
|
||||
"test": "redrun -s build test:run",
|
||||
"test-ci": "redrun -s build test-ci:run",
|
||||
"build": "bup",
|
||||
|
@ -27,7 +27,7 @@
|
||||
"lint": "eslint . --fix",
|
||||
"lint-ci": "eslint . --format junit --output-file $CIRCLE_TEST_REPORTS/lint/pseudo-yaml-ast.xml",
|
||||
"test:run": "cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text ava",
|
||||
"test-ci:run": "cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text ava --tap | tap-xunit > $CIRCLE_TEST_REPORTS/test/pseudo-yaml-ast.xml",
|
||||
"test-ci:run": "cross-env NODE_ENV=test nyc --report-dir=$CIRCLE_ARTIFACTS/pseudo-yaml-ast --reporter=lcov --reporter=text ava --tap | tap-xunit > $CIRCLE_TEST_REPORTS/test/pseudo-yaml-ast.xml",
|
||||
"test": "redrun build test:run",
|
||||
"test-ci": "redrun build test-ci:run",
|
||||
"build": "bup",
|
||||
|
@ -17,7 +17,7 @@
|
||||
"lint": "eslint . --fix",
|
||||
"lint-ci": "eslint . --format junit --output-file $CIRCLE_TEST_REPORTS/lint/remcalc.xml",
|
||||
"test": "cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text ava",
|
||||
"test-ci": "cross-env NODE_ENV=test ava --tap | tap-xunit > $CIRCLE_TEST_REPORTS/test/remcalc.xml"
|
||||
"test-ci": "cross-env NODE_ENV=test nyc --report-dir=$CIRCLE_ARTIFACTS/remcalc --reporter=lcov --reporter=text ava --tap | tap-xunit > $CIRCLE_TEST_REPORTS/test/remcalc.xml"
|
||||
},
|
||||
"dependencies": {
|
||||
"lodash.flatten": "^4.4.0"
|
||||
|
@ -13,7 +13,7 @@
|
||||
"lint": "eslint . --fix",
|
||||
"lint-ci": "eslint . --format junit --output-file $CIRCLE_TEST_REPORTS/lint/rnd-id.xml",
|
||||
"test": "cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text ava",
|
||||
"test-ci": "cross-env NODE_ENV=test ava --tap | tap-xunit > $CIRCLE_TEST_REPORTS/test/rnd-id.xml"
|
||||
"test-ci": "cross-env NODE_ENV=test nyc --report-dir=$CIRCLE_ARTIFACTS/rnd-id --reporter=lcov --reporter=text ava --tap | tap-xunit > $CIRCLE_TEST_REPORTS/test/rnd-id.xml"
|
||||
},
|
||||
"dependencies": {
|
||||
"random-natural": "^1.0.3"
|
||||
|
@ -20,7 +20,7 @@
|
||||
"lint": "eslint . --fix",
|
||||
"lint-ci": "eslint . --format junit --output-file $CIRCLE_TEST_REPORTS/lint/styled-is.xml",
|
||||
"test:run": "cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text ava",
|
||||
"test-ci:run": "cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text ava --tap | tap-xunit > $CIRCLE_TEST_REPORTS/test/styled-is.xml",
|
||||
"test-ci:run": "cross-env NODE_ENV=test nyc --report-dir=$CIRCLE_ARTIFACTS/styled-is --reporter=lcov --reporter=text ava --tap | tap-xunit > $CIRCLE_TEST_REPORTS/test/styled-is.xml",
|
||||
"test": "redrun -s build test:run",
|
||||
"test-ci": "redrun -s build test-ci:run",
|
||||
"build": "bup",
|
||||
|
@ -19,7 +19,7 @@
|
||||
"lint": "eslint . --fix",
|
||||
"lint-ci": "eslint . --format junit --output-file $CIRCLE_TEST_REPORTS/lint/unitcalc.xml",
|
||||
"test": "cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text ava",
|
||||
"test-ci": "cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text ava --tap | tap-xunit > $CIRCLE_TEST_REPORTS/test/unitcalc.xml"
|
||||
"test-ci": "cross-env NODE_ENV=test nyc --report-dir=$CIRCLE_ARTIFACTS/unitcalc --reporter=lcov --reporter=text ava --tap | tap-xunit > $CIRCLE_TEST_REPORTS/test/unitcalc.xml"
|
||||
},
|
||||
"dependencies": {
|
||||
"lodash.flatten": "^4.4.0",
|
||||
|
Loading…
Reference in New Issue
Block a user