Skip to content

Commit

Permalink
make prs report coverage too
Browse files Browse the repository at this point in the history
  • Loading branch information
bdistin committed Dec 19, 2018
1 parent b0e6e3c commit 2c2e048
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions scripts/.travis-coverage.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
#!/bin/bash
set -e

if [ "$TRAVIS_BRANCH" != "master" -o -n "$TRAVIS_TAG" -o "$TRAVIS_PULL_REQUEST" != "false" ]; then
echo -e "Testing a non master branch push - testing without reporting."
npm run test:coverage
exit 0
fi

# For Node != 8, do nothing
if [ "$TRAVIS_NODE_VERSION" != "8" ]; then
echo -e "Build triggered with Node v${TRAVIS_NODE_VERSION} - testing without reporting."
npm run test:coverage
exit 0
fi

echo -e "Testing a master branch push - testing and reporting coverage."
echo -e "Build triggered with Node v${TRAVIS_NODE_VERSION} - testing and reporting coverage."

npm run test:coverage

Expand Down

0 comments on commit 2c2e048

Please sign in to comment.