mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-04-29 01:24:29 +00:00
CI bugs out if token is not provided, fixed that
This commit is contained in:
parent
10bdb19f68
commit
892c88d808
|
@ -26,12 +26,9 @@ unit_test:
|
||||||
|
|
||||||
integration_test:
|
integration_test:
|
||||||
stage: test
|
stage: test
|
||||||
only:
|
|
||||||
variables:
|
|
||||||
- $BOT_TOKEN
|
|
||||||
- $VOICE_ID # for voice tests
|
|
||||||
- $CHANNEL_ID # for API integration tests
|
|
||||||
script:
|
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 first, so it doesn't count towards the timeout.
|
||||||
- go get ./...
|
- go get ./...
|
||||||
# Timeout test after 120 seconds (2 minutes)
|
# Timeout test after 120 seconds (2 minutes)
|
||||||
|
|
Loading…
Reference in a new issue