From 4d428f0cd537e3b9ad4f5da4a18bff7407dd8d5b Mon Sep 17 00:00:00 2001 From: Oscar Date: Tue, 16 Oct 2018 23:55:07 +0200 Subject: [PATCH] try coveralls 2 --- .circleci/config.yml | 8 ++++---- jest.config.js | 1 - package.json | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3b72041..48f38ee 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -57,10 +57,10 @@ jobs: command: yarn run test:ci environment: JEST_JUNIT_OUTPUT: 'reports/junit/js-test-results.xml' - - run: - name: 'JavaScript Linter' - # yarn here makes sure we are using the local jest binary - command: yarn run lint --format junit -o reports/junit/js-lint-results.xml + # - run: + # name: 'JavaScript Linter' + # # yarn here makes sure we are using the local jest binary + # command: yarn run lint --format junit -o reports/junit/js-lint-results.xml - store_test_results: path: reports/junit - store_artifacts: diff --git a/jest.config.js b/jest.config.js index 8da6649..3505b4e 100644 --- a/jest.config.js +++ b/jest.config.js @@ -13,7 +13,6 @@ module.exports = { testMatch: [ '**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)' ], - reporters: ['default', 'jest-junit'], collectCoverageFrom: ['src/**/*.(js|vue)', '!src/wrapper.js'], testURL: 'http://localhost/' } diff --git a/package.json b/package.json index 49e9b34..ca497cb 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "build:bundle": "rollup -c --environment BUILD:production", "lint": "vue-cli-service lint", "test:unit": "vue-cli-service test:unit", - "test:ci": "yarn run test:unit --ci --coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", + "test:ci": "yarn run test:unit --ci --coverage && cat ~/repo/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", "version:patch": "npm version patch && npm run build:bundle", "version:minor": "npm version minor && npm run build:bundle", "version:major": "npm version major && npm run build:bundle"