Skip to content

Commit 9aa68a4

Browse files
committed
Added Travis CI config
1 parent 1d38a52 commit 9aa68a4

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.travis.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
matrix:
2+
include:
3+
# Linux
4+
- os: linux
5+
language: php
6+
php: '5.6'
7+
8+
- os: linux
9+
language: php
10+
php: '7.0'
11+
12+
- os: linux
13+
language: php
14+
php: '7.1'
15+
16+
- os: linux
17+
language: php
18+
php: 'nightly'
19+
20+
before_script:
21+
- if [[ $TRAVIS_OS_NAME == 'osx' ]] ; then brew update ; fi; # travis image is quite old, update to have latest dependecies available
22+
- if [[ $TRAVIS_OS_NAME == 'osx' ]] ; then brew tap homebrew/dupes ; fi;
23+
- if [[ $TRAVIS_OS_NAME == 'osx' ]] ; then brew tap homebrew/versions ; fi;
24+
- if [[ $TRAVIS_OS_NAME == 'osx' ]] ; then brew tap homebrew/homebrew-php ; fi;
25+
- if [[ $TRAVIS_OS_NAME == 'osx' ]] ; then brew install ${OSX_PHP_VERSION} ; fi; # install PHP
26+
- if [[ $TRAVIS_OS_NAME == 'osx' ]] ; then curl -sS https://getcomposer.org/installer | php ; fi; # install composer
27+
- if [[ $TRAVIS_OS_NAME == 'osx' ]] ; then mv composer.phar /usr/local/bin/composer | php ; fi; # install composer globally
28+
- if [[ $TRAVIS_OS_NAME == 'osx' ]] ; then export PATH="$(brew --prefix homebrew/php/${OSX_PHP_VERSION})/bin:$PATH" ; fi; # app php to path
29+
- if [[ $TRAVIS_OS_NAME == 'osx' ]] ; then brew install coreutils ; fi; # truncate command:
30+
- composer self-update
31+
- composer require phpunit/phpunit:4.8.35 --prefer-dist --no-interaction --dev
32+
- composer update
33+
34+
script:
35+
- vendor/bin/phpunit -c testing/phpunit.xml

0 commit comments

Comments
 (0)