Skip to content

Commit 92ba6d5

Browse files
committed
Check essentials envs
1 parent 72a593a commit 92ba6d5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

travis-build.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@ if [ -z "$TRAVIS_BRANCH" ]; then
88
exit
99
fi
1010

11+
# Check essential envs
12+
if [ -z "$GITHUB_TOKEN" ]; then
13+
echo "ABORTING: env GITHUB_TOKEN is missing"
14+
exit
15+
fi
16+
if [ -z "$GITHUB_OAUTH_TOKEN" ]; then
17+
echo "ABORTING: env GITHUB_OAUTH_TOKEN is missing"
18+
exit
19+
fi
20+
1121
# create a build number
1222
export BUILD_NR="$(date '+%Y%m%d-%H%M%S')"
1323
echo "BUILD_NR=$BUILD_NR"

0 commit comments

Comments
 (0)