mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-11-25 06:17:34 +00:00
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:
parent
59e69fdb63
commit
31604ce792
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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"
|
@ -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
|
Loading…
Reference in New Issue
Block a user