CI bugs out if token is not provided, fixed that

This commit is contained in:
diamondburned (Forefront) 2020-05-03 12:02:13 -07:00
parent 10bdb19f68
commit 892c88d808
1 changed files with 2 additions and 5 deletions

View File

@ -26,12 +26,9 @@ unit_test:
integration_test:
stage: test
only:
variables:
- $BOT_TOKEN
- $VOICE_ID # for voice tests
- $CHANNEL_ID # for API integration tests
script:
# Don't run if these variables aren't provided.
- '[ ! "$BOT_TOKEN" ] && exit'
# go get first, so it doesn't count towards the timeout.
- go get ./...
# Timeout test after 120 seconds (2 minutes)