Update osx build for travis (#281)

* Update osx build for travis

* Try something more with this os

* This gonna be hard ...

* Cleanup travis build even more
This commit is contained in:
Arkadiusz Kondas 2018-06-14 07:53:33 +02:00 committed by GitHub
parent 59e69fdb63
commit 31604ce792
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 44 deletions

View File

@ -17,7 +17,6 @@ matrix:
language: generic
env:
- _OSX=10.11
- _PHP: php71
cache:
directories:
@ -28,7 +27,6 @@ before_install:
- if [[ $DISABLE_XDEBUG == "true" ]]; then phpenv config-rm xdebug.ini; fi
install:
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then /usr/bin/env bash bin/handle_brew_pkg.sh "${_PHP}" ; fi
- curl -s http://getcomposer.org/installer | php
- php composer.phar install --no-interaction --ignore-platform-reqs

View File

@ -13,6 +13,7 @@ This changelog references the relevant changes done in PHP-ML library.
* enhancement Throw proper exception (#259, #251)
* fix ensure DataTransformer::testSet samples array is not empty (#204)
* fix optimizer initial theta randomization (#239)
* fix travis build on osx (#281)
* typo, tests, code styles and documentation fixes (#265, #261, #254, #253, #251, #250, #248, #245, #243)
* 0.6.2 (2018-02-22)

View File

@ -1,31 +0,0 @@
#!/usr/bin/env bash
if [[ "$#" -eq 1 ]]; then
echo "Handling \"$1\" brew package..."
else
echo "Brew failed - invalid $0 call"
exit 1;
fi
if [[ $(brew ls --versions "$1") ]]; then
if brew outdated "$1"; then
echo "Package upgrade is not required, skipping"
else
echo "Updating package...";
brew upgrade "$1"
if [ $? -ne 0 ]; then
echo "Upgrade failed"
exit 1
fi
fi
else
echo "Package not available - installing..."
brew install "$1"
if [ $? -ne 0 ]; then
echo "Install failed"
exit 1
fi
fi
echo "Linking installed package..."
brew link "$1"

View File

@ -6,14 +6,6 @@ brew --version
echo "Updating brew..."
brew update
if [[ "${_PHP}" == "hhvm" ]]; then
echo "Adding brew HHVM dependencies..."
brew tap hhvm/hhvm
else
echo "Adding brew PHP dependencies..."
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
fi
brew install php@7.1
brew upgrade php@7.1
brew link php@7.1 --overwrite --force