mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-11-29 00:06:31 +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
|
language: generic
|
||||||
env:
|
env:
|
||||||
- _OSX=10.11
|
- _OSX=10.11
|
||||||
- _PHP: php71
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
@ -28,7 +27,6 @@ before_install:
|
|||||||
- if [[ $DISABLE_XDEBUG == "true" ]]; then phpenv config-rm xdebug.ini; fi
|
- if [[ $DISABLE_XDEBUG == "true" ]]; then phpenv config-rm xdebug.ini; fi
|
||||||
|
|
||||||
install:
|
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
|
- curl -s http://getcomposer.org/installer | php
|
||||||
- php composer.phar install --no-interaction --ignore-platform-reqs
|
- 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)
|
* enhancement Throw proper exception (#259, #251)
|
||||||
* fix ensure DataTransformer::testSet samples array is not empty (#204)
|
* fix ensure DataTransformer::testSet samples array is not empty (#204)
|
||||||
* fix optimizer initial theta randomization (#239)
|
* 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)
|
* typo, tests, code styles and documentation fixes (#265, #261, #254, #253, #251, #250, #248, #245, #243)
|
||||||
|
|
||||||
* 0.6.2 (2018-02-22)
|
* 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..."
|
echo "Updating brew..."
|
||||||
brew update
|
brew update
|
||||||
|
brew install php@7.1
|
||||||
if [[ "${_PHP}" == "hhvm" ]]; then
|
brew upgrade php@7.1
|
||||||
echo "Adding brew HHVM dependencies..."
|
brew link php@7.1 --overwrite --force
|
||||||
brew tap hhvm/hhvm
|
|
||||||
|
|
||||||
else
|
|
||||||
echo "Adding brew PHP dependencies..."
|
|
||||||
brew tap homebrew/dupes
|
|
||||||
brew tap homebrew/versions
|
|
||||||
brew tap homebrew/homebrew-php
|
|
||||||
fi
|
|
Loading…
Reference in New Issue
Block a user