Created
August 21, 2017 07:14
-
-
Save batmany13/e2bbd952d793b8a2b7b51fdbce7c7aa0 to your computer and use it in GitHub Desktop.
Run coveralls only on CircleCI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- run: | |
name: Run Golang Tests | |
command: | | |
GOPATH=$GOPATH:"${SYNQ_DIR}"/"${REPO}"/vendor overalls -project=github.com/SYNQfm/"${REPO}" -covermode=atomic -debug -ignore=.git,.github,.circleci,vendor,sql,sample -- -race -v | |
if [ -z ${COVERALLS_TOKEN} ]; then | |
echo "coveralls token isn't set, skipping" | |
else | |
goveralls -coverprofile="${SYNQ_DIR}"/"${REPO}"/overalls.coverprofile -service circle-ci -repotoken "${COVERALLS_TOKEN}" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment