diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 66ce85c..dea63d1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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)