Skip to content

Commit

Permalink
Add travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyslik committed Nov 20, 2016
1 parent 791a83a commit 2850c91
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
language: php

php:
- 5.6
- 7.0
- 7.1

env:
global:
- setup=basic

matrix:
allow_failures:
- php: 7.1
fast_finish: true
include:
- php: 5.6
env: setup=lowest
- php: 5.6
env: setup=stable

sudo: false

cache:
directories:
- $HOME/.composer/cache

before_install:
- travis_retry composer self-update

install:
- if [[ $setup = 'basic' ]]; then travis_retry composer install --no-interaction --prefer-dist --no-suggest; fi
- if [[ $setup = 'stable' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable --no-suggest; fi
- if [[ $setup = 'lowest' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-lowest --prefer-stable --no-suggest; fi

script: vendor/bin/phpunit

branches:
only:
- master

0 comments on commit 2850c91

Please sign in to comment.