diff --git a/.travis.yml b/.travis.yml index 3095778..d4710b1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,10 +22,11 @@ before_script: script: - npm test || travis_terminate 1 - - ./cc-test-reporter format-coverage -t lcov -o coverage/codeclimate.json src/renderer/coverage/lcov.info - - if [[ "$TRAVIS_TEST_RESULT" == 0 ]]; then ./cc-test-reporter upload-coverage; fi - npm run dist +after_script: + - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT + branches: except: - "/^v\\d+\\.\\d+\\.\\d+$/" diff --git a/package.json b/package.json index 23111db..ade5651 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "description": "🐡 Simple Electron-based desktop app to retrieve and display your total Ocean Token balances.", "main": "./src/main/index.js", "scripts": { - "test": "npm run lint && jest --coverage", - "test:watch": "jest --coverage --watch", + "test": "npm run lint && jest", + "test:watch": "jest --watch", "lint": "eslint --ignore-path .gitignore ./src/**/*.{js,jsx} && stylelint --ignore-path .gitignore ./src/**/*.{css,scss}", "start": "webpack-dev-server --hot --host 0.0.0.0 --config=./webpack.dev.config.js", "build": "cross-env NODE_ENV=production webpack --config webpack.common.config.js", @@ -69,7 +69,7 @@ "react-pose": "^4.0.10", "release-it": "^12.4.3", "style-loader": "^1.1.3", - "stylelint": "^12.0.0", + "stylelint": "^13.1.0", "stylelint-config-css-modules": "^2.1.0", "stylelint-config-standard": "^19.0.0", "webpack": "^4.41.5", @@ -141,6 +141,13 @@ "setupFilesAfterEnv": [ "/jest/setup-test-env.js" ], + "coverageDirectory": "../../coverage/", + "collectCoverage": true, + "collectCoverageFrom": [ + "/**/*.{js,jsx}", + "!/jest/**/*.{js,jsx}", + "!**/node_modules/**" + ], "runner": "@jest-runner/electron", "testEnvironment": "@jest-runner/electron/environment" }