Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Commit

Permalink
Add codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
rtsao authored and fusion-bot[bot] committed Dec 5, 2017
1 parent 85116e0 commit 2121d9c
Show file tree
Hide file tree
Showing 6 changed files with 270 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .buildkite/browserTests
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
export DISPLAY=:99.0
/etc/init.d/xvfb start

./node_modules/.bin/unitest --browser=dist-tests/browser.js
./node_modules/.bin/nyc --instrument=false --exclude-after-remap=false --reporter=text --reporter=json ./node_modules/.bin/unitest --browser=dist-tests/browser.js
bash <(curl -s https://codecov.io/bash) -f coverage/coverage-final.json -n browser
3 changes: 2 additions & 1 deletion .buildkite/nodeTests
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/usr/bin/env bash
./node_modules/.bin/unitest --node=dist-tests/node.js
./node_modules/.bin/nyc --instrument=false --exclude-after-remap=false --reporter=text --reporter=json node dist-tests/node.js
bash <(curl -s https://codecov.io/bash) -f coverage/coverage-final.json -n node
3 changes: 3 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
parsers:
javascript:
enable_partials: 'yes'
12 changes: 11 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@ services:
fusion-plugin-csrf-protection:
build: .
volumes:
- .:/fusion-plugin-csrf-protection
- '.:/fusion-plugin-csrf-protection'
- /fusion-plugin-csrf-protection/node_modules/
- /fusion-plugin-csrf-protection/dist/
- /fusion-plugin-csrf-protection/dist-tests/
environment:
- CODECOV_TOKEN
- CI=true
- BUILDKITE
- BUILDKITE_BRANCH
- BUILDKITE_BUILD_NUMBER
- BUILDKITE_JOB_ID
- BUILDKITE_BUILD_URL
- BUILDKITE_PROJECT_SLUG
- BUILDKITE_COMMIT
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"fusion-core": "^0.2.3",
"generic-session": "^0.1.2",
"get-port": "^3.2.0",
"nyc": "^11.3.0",
"prettier": "1.8.2",
"sinon": "^4.1.2",
"tape-cup": "^4.7.1",
Expand Down
Loading

0 comments on commit 2121d9c

Please sign in to comment.