Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make prs report coverage too #60

Merged
merged 1 commit into from
Dec 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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