Skip to content

Instantly share code, notes, and snippets.

@batmany13
Created August 21, 2017 07:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save batmany13/e2bbd952d793b8a2b7b51fdbce7c7aa0 to your computer and use it in GitHub Desktop.
Save batmany13/e2bbd952d793b8a2b7b51fdbce7c7aa0 to your computer and use it in GitHub Desktop.
Run coveralls only on CircleCI
- 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