Skip to content

Instantly share code, notes, and snippets.

@MEGApixel23
Created May 12, 2017 15:56
Show Gist options
  • Save MEGApixel23/abb61466feefb31b1d9af8ce9b901bce to your computer and use it in GitHub Desktop.
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)
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