Skip to content

Commit d41f0f3

Browse files
author
Sam Harrison
committed
fix: only configure composer with GitHub personal access token if present
1 parent 65a4ce5 commit d41f0f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: php
22

33
before_script:
4-
- composer config -g github-oauth.github.com "$GIT_HUB_TOKEN"
4+
- if [ -n "$GIT_HUB_TOKEN" ]; then composer config -g github-oauth.github.com "$GIT_HUB_TOKEN"; fi;
55
- composer install
66
- if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest --prefer-stable -n; fi;
77

0 commit comments

Comments
 (0)