From 5df202753f01ccf16e86b5483c646c3bf6f94d89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Fri, 26 Aug 2022 16:22:39 +0200 Subject: [PATCH] drop unused coveralls configuration and CI steps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Depends on: https://github.com/status-im/status-jenkins-lib/pull/45 Signed-off-by: Jakub SokoĊ‚owski --- Makefile | 4 ---- package.json | 1 - scripts/run-coverage.sh | 51 ----------------------------------------- yarn.lock | 21 ----------------- 4 files changed, 77 deletions(-) delete mode 100755 scripts/run-coverage.sh diff --git a/Makefile b/Makefile index 5478d9bdf8..ed713e1493 100644 --- a/Makefile +++ b/Makefile @@ -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 #-------------- diff --git a/package.json b/package.json index 7f13ce282c..13aa89c62c 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/scripts/run-coverage.sh b/scripts/run-coverage.sh deleted file mode 100755 index 36a034bbf9..0000000000 --- a/scripts/run-coverage.sh +++ /dev/null @@ -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}" \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 0e77411b15..175d256f5a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"