Skip to content

Commit 341a59f

Browse files
andigclue
authored andcommitted
Test Mac OS X on Travis
Squashed by @clue, originally from reactphp#124
1 parent 2aad7ce commit 341a59f

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.travis.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,30 @@ matrix:
1515
include:
1616
- php: 5.3
1717
dist: precise
18+
include:
19+
- os: osx
20+
language: generic
21+
php: 7.0 # just to look right on travis
22+
env:
23+
- PACKAGE: php70
1824
allow_failures:
1925
- php: hhvm
2026

2127
sudo: false
2228

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

2644
script:

0 commit comments

Comments
 (0)