Skip to content

Commit 26d5640

Browse files
committed
Simplify Travis CI test matrix for Mac OS X setup
1 parent 3eb342d commit 26d5640

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

.travis.yml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,17 @@ matrix:
1818
- php: hhvm-3.18
1919
install:
2020
- composer require phpunit/phpunit:^5 --dev --no-interaction # requires legacy phpunit
21-
- os: osx
21+
- name: Mac OS X
22+
os: osx
2223
language: generic
23-
php: 7.0 # just to look right on travis
24-
env:
25-
- PACKAGE: php70
24+
before_install:
25+
- curl -s http://getcomposer.org/installer | php
26+
- mv composer.phar /usr/local/bin/composer
2627
allow_failures:
2728
- php: hhvm-3.18
2829
- os: osx
2930

3031
install:
31-
# OSX install inspired by https://github.com/kiler129/TravisCI-OSX-PHP
32-
- |
33-
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
34-
brew tap homebrew/homebrew-php
35-
echo "Installing PHP ..."
36-
brew install "${PACKAGE}"
37-
brew install "${PACKAGE}"-xdebug
38-
brew link "${PACKAGE}"
39-
echo "Installing composer ..."
40-
curl -s http://getcomposer.org/installer | php
41-
mv composer.phar /usr/local/bin/composer
42-
fi
4332
- composer install --no-interaction
4433

4534
script:

0 commit comments

Comments
 (0)