Skip to content

Commit

Permalink
Replace coveralls with codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
jeskew committed Mar 10, 2017
1 parent 373a148 commit 0792e02
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 21 deletions.
22 changes: 5 additions & 17 deletions .travis.yml
Expand Up @@ -9,26 +9,14 @@ node_js:
- "6.1"
- "node"

cache:
directories:
- "travis-phantomjs"

before_install:
- "if [[ `node -v` == v0.8.* ]]; then npm install -g npm || exit 0; fi"

script:
- "if [ $INTEGRATION ]; then cucumber.js -f pretty; else npm test; fi"
- "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"

env:
matrix:
- COVERAGE=1
- npm run lint
- npm run coverage
- npm run buildertest
- npm run browsertest
- node ./node_modules/.bin/codecov

sudo: false

# env:
# global:
# - secure: "..."
# matrix:
# - UNIT=1
# - AWS_REGION=us-east-1 INTEGRATION=1
5 changes: 5 additions & 0 deletions codecov.yml
@@ -0,0 +1,5 @@
coverage:
status:
project:
default:
target: 90.5%
8 changes: 4 additions & 4 deletions package.json
Expand Up @@ -16,9 +16,9 @@
"@types/node": "^6.0.46",
"browserify": "13.1.0",
"chai": "*",
"codecov": "^1.0.1",
"coffee-script": "1.6.3",
"coffeeify": "*",
"coveralls": "2.x",
"cucumber": "0.5.x",
"eslint": "1.x",
"insert-module-globals": "^7.0.0",
Expand Down Expand Up @@ -111,8 +111,8 @@
],
"scripts": {
"test": "npm -s run-script lint && npm -s run-script unit && npm -s run-script buildertest && npm -s run-script browsertest && ([ -f configuration ] && npm -s run-script integration || true)",
"unit": "istanbul `[ $COVERAGE ] && echo 'cover _mocha' || echo 'test mocha'` -- test test/json test/model test/protocol test/query test/services test/signers test/xml test/s3 test/cloudfront test/dynamodb test/polly",
"coverage": "istanbul cover ./node_modules/mocha/bin/_mocha -- test test/json test/dynamodb test/cloudfront test/model test/protocol test/query test/services test/signers test/xml",
"unit": "mocha -- test test/json test/model test/protocol test/query test/services test/signers test/xml test/s3 test/cloudfront test/dynamodb test/polly",
"coverage": "istanbul cover ./node_modules/mocha/bin/_mocha --reporter=lcovonly -- test test/json test/model test/protocol test/query test/services test/signers test/xml test/s3 test/cloudfront test/dynamodb test/polly",
"browsertest": "rake browser:test && karma start",
"buildertest": "mocha --compilers coffee:coffee-script -s 1000 -t 10000 dist-tools/test",
"integration": "cucumber.js",
Expand All @@ -122,4 +122,4 @@
"tstest": "tsc -p ./ts",
"add-change": "node ./scripts/changelog/add-change.js"
}
}
}

0 comments on commit 0792e02

Please sign in to comment.