Skip to content

Commit 43e6ce8

Browse files
committed
ci: Skip Coveralls submission if COVERALLS_REPO_TOKEN env. var is empty
1 parent cc017ff commit 43e6ce8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.circleci/config.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,12 @@ jobs:
159159
steps:
160160
- run:
161161
name: Complete Coveralls
162-
command: curl --fail https://coveralls.io/webhook?repo_token=$COVERALLS_REPO_TOKEN -d "payload[build_num]=$CIRCLE_WORKFLOW_ID&payload[status]=done"
162+
command: |
163+
if [[ "$COVERALLS_REPO_TOKEN" != "" ]]; then
164+
curl --fail https://coveralls.io/webhook?repo_token=$COVERALLS_REPO_TOKEN -d "payload[build_num]=$CIRCLE_WORKFLOW_ID&payload[status]=done"
165+
else
166+
echo "Skipping Coveralls"
167+
fi
163168
164169
workflows:
165170
version: 2

0 commit comments

Comments
 (0)