Run Travis CI tests on OS X as well

- install dependencies using brew
- manuall start MariaDB server

Issue #12883

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2017-01-21 11:42:00 +01:00
parent 9d24e4649b
commit 9ecda4175b
3 changed files with 14 additions and 2 deletions

View File

@ -61,6 +61,18 @@ matrix:
env: CI_MODE=release
- php: "7.0"
env: CI_MODE=docs
- os: osx
language: generic
env: CI_MODE=test
before_install:
- brew tap homebrew/php
- brew update
- brew install ant gettext php70 mariadb
- brew link --force gettext
- curl https://getcomposer.org/installer | php
- ln -s /Users/travis/build/phpmyadmin/phpmyadmin/composer.phar /usr/local/bin/composer
- mysql.server start
cache:
directories:
- $HOME/.composer/cache/

View File

@ -4,7 +4,7 @@ ant locales
export PHPUNIT_ARGS="--exclude-group selenium"
if [ $TRAVIS_PHP_VERSION = "hhvm" ] ; then
if [ "$TRAVIS_PHP_VERSION" = "hhvm" ] ; then
ant phpunit-hhvm
else
ant phpunit

View File

@ -6,7 +6,7 @@ if [ -n "$GATEWAY_INTERFACE" ] ; then
exit 1
fi
if [ "$TRAVIS_PHP_VERSION" = "nightly" -o "$TRAVIS_PHP_VERSION" = "hhvm" -o "$TRAVIS_PHP_VERSION" = "7.0" -o "$TRAVIS_PHP_VERSION" = "7.1" ] ; then
if [ "$TRAVIS_PHP_VERSION" = "nightly" -o "$TRAVIS_PHP_VERSION" = "hhvm" -o "$TRAVIS_PHP_VERSION" = "7.0" -o "$TRAVIS_PHP_VERSION" = "7.1" -o "$TRAVIS_OS_NAME" = "osx" ] ; then
exit 0
fi