drop unused coveralls configuration and CI steps

Depends on: https://github.com/status-im/status-jenkins-lib/pull/45

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2022-08-26 16:22:39 +02:00
parent 1b8aea87b2
commit 5df202753f
No known key found for this signature in database
GPG Key ID: 09AA5403E54D9931
4 changed files with 0 additions and 77 deletions

View File

@ -310,10 +310,6 @@ test: ##@test Run tests once in NodeJS
yarn shadow-cljs compile test && \
node --require ./test-resources/override.js target/test/test.js
coverage: ##@test Run tests once in NodeJS generating coverage
@scripts/run-coverage.sh
#--------------
# Other
#--------------

View File

@ -83,7 +83,6 @@
"@babel/register": "7.0.0",
"@mapbox/node-pre-gyp": "^1.0.9",
"clj-kondo": "^2020.1.13",
"coveralls": "^3.0.4",
"jest": "^25.1.0",
"nodemon": "^2.0.16",
"nyc": "^14.1.1",

View File

@ -1,51 +0,0 @@
#!/usr/bin/env bash
# Fail on first error
set -e
TEST_JS=target/test/test.js
COVERAGE_REPORT=coverage-report/lcov.info
rm -rf "${COVERAGE_REPORT}"
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m'
if [ ! -f "$TEST_JS" ]; then
echo -e "${YELLOW}test suite not found, compiling and running...${NC}"
make test
else
echo -e "${YELLOW}test suite found.${NC}"
fi
echo -e "${YELLOW}running test suite with coverage...${NC}"
nyc node target/test/test.js
echo -e "${GREEN}DONE.${NC}"
if [ ! -f "$COVERAGE_REPORT" ]; then
echo -e "${RED}coverage report not generated! check nyc configuration file .nycrc${NC}"
exit 1
fi
## COVERALLS ENV ##
# COVERALLS_REPO_TOKEN (the secret repo token from coveralls.io)
# optionals ENV
# COVERALLS_SERVICE_NAME (the name of your build system, "jenkins"
# COVERALLS_SERVICE_JOB_ID
if [ -z "$COVERALLS_REPO_TOKEN" ]; then
echo -e "${RED}COVERALLS_REPO_TOKEN not set!${NC}"
exit 1
fi
echo -e "${YELLOW}uploading coverage to coveralls...${NC}"
cat coverage-report/lcov.info | coveralls
echo -e "${GREEN}DONE.${NC}"

View File

@ -3370,17 +3370,6 @@ cosmiconfig@^5.0.5, cosmiconfig@^5.1.0:
js-yaml "^3.13.1"
parse-json "^4.0.0"
coveralls@^3.0.4:
version "3.0.13"
resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-3.0.13.tgz#64d8c99af3b8a771a2e6e5bcdf556c3c5061d29d"
integrity sha512-Bch6FJI4ebK6Mwr+DjFCJbb/RayNwn5pscSDE4Ux6cgjNkAcjdgGZBRfQnuYTt5tY81MqGK8m2r+xc5FDF513A==
dependencies:
js-yaml "^3.13.1"
lcov-parse "^1.0.0"
log-driver "^1.2.7"
minimist "^1.2.5"
request "^2.88.0"
cp-file@^6.2.0:
version "6.2.0"
resolved "https://registry.yarnpkg.com/cp-file/-/cp-file-6.2.0.tgz#40d5ea4a1def2a9acdd07ba5c0b0246ef73dc10d"
@ -6058,11 +6047,6 @@ latest-version@^5.1.0:
dependencies:
package-json "^6.3.0"
lcov-parse@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-1.0.0.tgz#eb0d46b54111ebc561acb4c408ef9363bdc8f7e0"
integrity sha1-6w1GtUER68VhrLTECO+TY73I9+A=
leven@2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/leven/-/leven-2.1.0.tgz#c2e7a9f772094dee9d34202ae8acce4687875580"
@ -6169,11 +6153,6 @@ lodash@^4.17.10, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.3.
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548"
integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==
log-driver@^1.2.7:
version "1.2.7"
resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.7.tgz#63b95021f0702fedfa2c9bb0a24e7797d71871d8"
integrity sha512-U7KCmLdqsGHBLeWqYlFA0V0Sl6P08EE1ZrmA9cxjUE0WVqT9qnyVDPz1kzpFEP0jdJuFnasWIfSd7fsaNXkpbg==
log-symbols@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a"