Created
May 12, 2017 15:56
-
-
Save MEGApixel23/abb61466feefb31b1d9af8ce9b901bce to your computer and use it in GitHub Desktop.
Travis config for testing on several versions of Laravel (or any other composer package if needed)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: php | |
php: | |
- 5.6 | |
- 7.0 | |
- 7.1 | |
cache: | |
directories: | |
- $HOME/.composer | |
env: | |
- LARAVEL_VERSION=5.3.* | |
- LARAVEL_VERSION=5.4.* | |
before_script: | |
- composer self-update | |
- if [ "LARAVEL_VERSION" != "" ]; then composer require "laravel/framework:${LARAVEL_VERSION}" --no-update; fi; | |
- composer update | |
script: | |
- vendor/bin/phpunit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment