Skip to content

Commit

Permalink
Travis.yml elseif syntax test
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexStack committed Jun 6, 2020
1 parent 029bdec commit ff989c8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@ before_install:
before_script:
- composer self-update
- |-
if [[ "$TRAVIS_PHP_VERSION" == "7.1" && "$LARAVEL_VERSION" == "6.*" ]]; then
composer create-project --prefer-dist laravel/laravel cms "5.7.*"
if [[ "$TRAVIS_PHP_VERSION" == "7.1" && "$LARAVEL_VERSION" == "7.*" ]]; then
composer create-project --prefer-dist laravel/laravel cms "6.*"
else
composer create-project --prefer-dist laravel/laravel cms "${LARAVEL_VERSION}"
if [[ "$TRAVIS_PHP_VERSION" == "7.1" && "$LARAVEL_VERSION" == "6.*" ]]; then
composer create-project --prefer-dist laravel/laravel cms "5.7.*"
else
composer create-project --prefer-dist laravel/laravel cms "${LARAVEL_VERSION}"
fi
fi
- cd cms
- composer show laravel/framework
Expand Down

0 comments on commit ff989c8

Please sign in to comment.