Skip to content

Commit

Permalink
Add Codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
nadundesilva committed May 14, 2019
1 parent 1436c91 commit 883b86f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
coverage:
range: 80..95
round: down
precision: 2
status:
project: yes
patch: yes
changes: yes
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ cache:
before_install:
- npm i -g npm
script:
- make clean init check-style build docker
- make clean init check-style build test docker
after_success:
- bash <(curl -s https://codecov.io/bash)
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ build: clean init
cd ./components/portal; \
npm run build

.PHONY: test
test: build
cd ./components/portal; \
npm run test

.PHONY: docker
docker: build
docker build -t $(DOCKER_REPO)/cellery-hub-proxy:$(DOCKER_IMAGE_TAG) -f ./docker/proxy/Dockerfile .
Expand Down
2 changes: 1 addition & 1 deletion components/portal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"build": "react-scripts build",
"lint": "eslint --color src/",
"lint:fix": "eslint --color --fix src/",
"test": "react-scripts test",
"test": "CI=true react-scripts test --colors --testURL=http://hub.cellery.io --coverage",
"eject": "react-scripts eject"
},
"eslintConfig": {
Expand Down

0 comments on commit 883b86f

Please sign in to comment.