From e4daeeac12e3e0aeb0b5053877ade42eb549d5dc Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Wed, 14 Jun 2017 20:42:15 +1000 Subject: [PATCH] Don't run danger if DANGER_GITHUB_API_TOKEN is not set --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index dca1cbd321b1..b7eada8bd776 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,7 +17,7 @@ script: - npm run lint - npm run test -- --coverage - npm run coverage -- npm run danger +- ([ -z "$DANGER_GITHUB_API_TOKEN" ] && echo "DANGER_GITHUB_API_TOKEN not set") || npm run danger git: depth: 1 env: