Skip to content
This repository was archived by the owner on Jun 27, 2019. It is now read-only.

Commit 8ea42b5

Browse files
Merge pull request #185 from Human-Connection/codeconv
replace codacy with codeconv
2 parents 2c0bbbc + 55ca17e commit 8ea42b5

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

.codecov.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
coverage:
2+
range: "60...100"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ lib-cov
1313
# Coverage directory used by tools like istanbul
1414
coverage
1515
.nyc_output
16+
coverage.lcov
1617

1718
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
1819
.grunt

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ jobs:
2121
- docker build -t humanconnection/api-feathers .
2222
- script:
2323
- yarn install --frozen-lockfile --non-interactive
24-
- yarn global add codacy-coverage
25-
- yarn run ci
26-
- cat ./coverage/lcov.info | codacy-coverage
24+
- yarn global add codecov
25+
- yarn run ci && codecov
2726

2827
after_success:
2928
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@
3333
"yarn": ">= 1.3.0"
3434
},
3535
"scripts": {
36-
"ci": "yarn run eslint && yarn run test:coverage",
36+
"ci": "yarn run eslint && yarn run test && yarn run test:coverage",
3737
"clean": "rm -Rf tmp",
3838
"mongo": "mongod --dbpath data --quiet",
3939
"mongo:win": "mongod --dbpath /data/db --quiet",
40-
"test": "yarn run mocha && yarn run cucumber",
41-
"test:coverage": "nyc --reporter=lcovonly --reporter=text-summary yarn run test",
40+
"test": "nyc --reporter=text-lcov yarn run mocha && yarn run cucumber",
41+
"test:coverage": "nyc report --reporter=text-lcov > coverage.lcov",
4242
"eslint": "eslint server/. test/. features/. --config .eslintrc.json",
4343
"start": "node server/",
4444
"dev": "cross-env DEBUG=feathers* nodemon server/",

0 commit comments

Comments
 (0)