-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
134 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
extension=imagick.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env bash | ||
|
||
DIR=$(readlink -enq $(dirname $0)) | ||
CFLAGS="-O2 -g3 -fno-strict-aliasing -std=gnu90"; | ||
|
||
pecl channel-update pecl.php.net | ||
|
||
enable_extension() { | ||
ENABLED=$(php -m | grep $1) | ||
|
||
if [ -z "${ENABLED}" ]; then | ||
echo -e "Enabling the ${1} extension..." | ||
phpenv config-add "$DIR/$1.ini" | ||
else | ||
echo -e "The ${1} extension already enabled. Skip..." | ||
fi | ||
} | ||
|
||
install_extension() { | ||
INSTALLED=$(pecl list $1 | grep 'not installed') | ||
|
||
if [ -z "${INSTALLED}" ]; then | ||
printf "\n" | pecl upgrade $1 &> /dev/null | ||
else | ||
printf "\n" | pecl install $1 &> /dev/null | ||
fi | ||
|
||
enable_extension $1 | ||
} | ||
|
||
enable_extension memcached | ||
|
||
# Already installed for Travis PHP 5.6 | ||
printf "\n" | pecl upgrade imagick &> /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env bash | ||
|
||
DIR=$(readlink -enq $(dirname $0)) | ||
CFLAGS="-O2 -g3 -fno-strict-aliasing -std=gnu90"; | ||
|
||
pecl channel-update pecl.php.net | ||
|
||
enable_extension() { | ||
ENABLED=$(php -m | grep $1) | ||
|
||
if [ -z "${ENABLED}" ]; then | ||
echo -e "Enabling the ${1} extension..." | ||
phpenv config-add "$DIR/$1.ini" | ||
else | ||
echo -e "The ${1} extension already enabled. Skip..." | ||
fi | ||
} | ||
|
||
install_extension() { | ||
INSTALLED=$(pecl list $1 | grep 'not installed') | ||
|
||
if [ -z "${INSTALLED}" ]; then | ||
printf "\n" | pecl upgrade $1 &> /dev/null | ||
else | ||
printf "\n" | pecl install $1 &> /dev/null | ||
fi | ||
|
||
enable_extension $1 | ||
} | ||
|
||
enable_extension memcached | ||
install_extension imagick |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env bash | ||
|
||
DIR=$(readlink -enq $(dirname $0)) | ||
CFLAGS="-O2 -g3 -fno-strict-aliasing -std=gnu90"; | ||
|
||
pecl channel-update pecl.php.net | ||
|
||
enable_extension() { | ||
ENABLED=$(php -m | grep $1) | ||
|
||
if [ -z "${ENABLED}" ]; then | ||
echo -e "Enabling the ${1} extension..." | ||
phpenv config-add "$DIR/$1.ini" | ||
else | ||
echo -e "The ${1} extension already enabled. Skip..." | ||
fi | ||
} | ||
|
||
install_extension() { | ||
INSTALLED=$(pecl list $1 | grep 'not installed') | ||
|
||
if [ -z "${INSTALLED}" ]; then | ||
printf "\n" | pecl upgrade $1 &> /dev/null | ||
else | ||
printf "\n" | pecl install $1 &> /dev/null | ||
fi | ||
|
||
enable_extension $1 | ||
} | ||
|
||
enable_extension memcached | ||
install_extension imagick |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env bash | ||
|
||
# trace ERR through pipes | ||
set -o pipefail | ||
|
||
# trace ERR through 'time command' and other functions | ||
set -o errtrace | ||
|
||
# set -u : exit the script if you try to use an uninitialised variable | ||
set -o nounset | ||
|
||
# set -e : exit the script if any statement returns a non-true return value | ||
set -o errexit | ||
|
||
CURRENT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | ||
TRAVIS_BUILD_DIR="${TRAVIS_BUILD_DIR:-$(dirname $(dirname $CURRENT_DIR))}" | ||
ZEPHIRDIR=${TRAVIS_BUILD_DIR}/vendor/phalcon/zephir | ||
|
||
if [ ! -d "${ZEPHIRDIR}" ]; then | ||
echo -e "The ${ZEPHIRDIR} directory does not exists. First run 'composer install --dev'" | ||
exit 1; | ||
fi | ||
|
||
cd ${ZEPHIRDIR} | ||
|
||
sed "s#%ZEPHIRDIR%#$ZEPHIRDIR#g" bin/zephir > bin/zephir-cmd | ||
chmod 755 bin/zephir-cmd | ||
|
||
mkdir -p ~/bin | ||
|
||
cp bin/zephir-cmd ~/bin/zephir | ||
rm bin/zephir-cmd | ||
|
||
cd ${TRAVIS_BUILD_DIR} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
extension=memcached.so |