From 7235b742732e20e805634c549dc5de5c73148d0d Mon Sep 17 00:00:00 2001 From: Fabrice Armisen Date: Sat, 14 May 2016 11:21:21 -0700 Subject: [PATCH 1/3] Testing correctly if the COVERALLS_REPO_TOKEN env variable is not empty. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 18e1b05..9631e59 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "watch": "npm run build:js -- --watch", "server": "http-server -o -c-1", "test": "istanbul cover --report lcovonly _mocha", - "posttest": "if [ -z \"$COVERALLS_REPO_TOKEN\" ]; then cat coverage/lcov.info | coveralls; fi" + "posttest": "if ! [ -z $COVERALLS_REPO_TOKEN ]; then cat coverage/lcov.info | coveralls; fi" }, "browser": { "http": false, From 642c4554bff9f84bca4f51f2d1ea323f64e72b0f Mon Sep 17 00:00:00 2001 From: Fabrice Armisen Date: Sat, 14 May 2016 17:58:48 -0700 Subject: [PATCH 2/3] Adding an environment variable to the Travis CI configuration file in order to be able use the coveralls service during the CI process without explicitly providing a coveralls token in the environment. --- .travis.yml | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f84bfcd..c28f0c7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,3 +15,4 @@ deploy: env: global: - secure: DGaDDxh76Gv+qmu4SLuQDxmmZMpMiiVdIvveT1d3ly93zrqT7Pb9ur7P8Yz77AxU9UrMHEJ3Be05Uqe8xtTJCIora9io/tX4QLRtIXtRIOA3dYaYNBgXztQT7yzCi6E/L/DZa1+dNaGDpoUnLG0S3vpwhi3YjlWJDhLOfB3Txx0= + - FORCE_COVERALLS=1 diff --git a/package.json b/package.json index 9631e59..70a30af 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "watch": "npm run build:js -- --watch", "server": "http-server -o -c-1", "test": "istanbul cover --report lcovonly _mocha", - "posttest": "if ! [ -z $COVERALLS_REPO_TOKEN ]; then cat coverage/lcov.info | coveralls; fi" + "posttest": "if [ -n \"$COVERALLS_REPO_TOKEN\" ] || [ \"${FORCE_COVERALLS}\" = \"1\" ]; then cat coverage/lcov.info | coveralls; fi" }, "browser": { "http": false, From 5a99589ed296c864309ce0281ff9afb6f34db2ff Mon Sep 17 00:00:00 2001 From: Fabrice Date: Sat, 14 May 2016 18:10:36 -0700 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 43102c1..80a9718 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Chai HTTP [![Build Status](https://travis-ci.org/chaijs/chai-http.svg?branch=master)](https://travis-ci.org/chaijs/chai-http) +# Chai HTTP [![Build Status](https://travis-ci.org/chaijs/chai-http.svg?branch=master)](https://travis-ci.org/chaijs/chai-http) [![Coverage Status](https://coveralls.io/repos/github/chaijs/chai-http/badge.svg?branch=)](https://coveralls.io/github/chaijs/chai-http?branch=master) > HTTP integration testing with Chai assertions.