-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from avatarnewyork/php55beta
Php55beta
- Loading branch information
Showing
10 changed files
with
133 additions
and
42 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
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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
|
||
curl -H "Content-Type: application/json" --data '{"build": true}' -X POST $DOCKERHUB_TRIGGER_URL | ||
curl -H "Content-Type: application/json" --data '{"source_type": "Branch", "source_name": "'$CIRCLE_BRANCH'"}' -X POST $DOCKERHUB_TRIGGER_URL |
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
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,70 @@ | ||
#/bin/bash | ||
|
||
# ImageMagick | ||
yum -y install \ | ||
gcc \ | ||
ImageMagick \ | ||
ImageMagick-devel | ||
|
||
|
||
yum -y install \ | ||
php56w \ | ||
php56w-common \ | ||
php56w-cli \ | ||
php56w-ldap \ | ||
php56w-mbstring \ | ||
php56w-pdo \ | ||
php56w-soap \ | ||
php56w-bcmath \ | ||
php56w-intl \ | ||
php56w-pear \ | ||
php56w-mcrypt \ | ||
php56w-opcache \ | ||
php56w-mysql \ | ||
php56w-devel \ | ||
php56w-gd \ | ||
php56w-pecl-memcache \ | ||
php56w-pecl-memcached \ | ||
php56w-pecl-imagick \ | ||
php56w-pspell \ | ||
php56w-snmp \ | ||
php56w-xmlrpc \ | ||
php56w-xml \ | ||
php56w-process \ | ||
php56w-pecl-xdebug \ | ||
php56w-devel | ||
|
||
|
||
# Solr | ||
yum -y install \ | ||
curl-devel \ | ||
libxml2-devel | ||
|
||
yes '' | pecl install -f solr-2.3.0 | ||
|
||
echo "extension=solr.so" > /etc/php.d/solr.ini | ||
|
||
|
||
# ssh / sftp | ||
yum -y install libssh2-devel | ||
printf "\n" | pecl install -f ssh2-0.12 | ||
echo "extension=ssh2.so" > /etc/php.d/ssh2.ini | ||
|
||
# Drush | ||
wget -O /usr/bin/drush http://files.drush.org/drush.phar; chmod 755 /usr/bin/drush | ||
|
||
# OAuth | ||
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin; pecl install oauth-1.2.3 | ||
echo 'extension=oauth.so' > /etc/php.d/oauth.ini | ||
|
||
# Composer | ||
cd /usr/bin; /usr/bin/php -dzend_extension=xdebug.so -r "readfile('https://getcomposer.org/installer');" | php | ||
|
||
# PHPUnit | ||
COMPOSER_HOME=/.composer /usr/bin/php -dzend_extension=xdebug.so composer.phar global require --prefer-source "phpunit/phpunit=4.5.*" | ||
|
||
# Selenium | ||
COMPOSER_HOME=/.composer /usr/bin/php -dzend_extension=xdebug.so composer.phar global require --prefer-source "phpunit/phpunit-selenium": ">=1.2" | ||
|
||
# wp-cli - wordpress cli | ||
COMPOSER_HOME=/.composer /usr/bin/php -dzend_extension=xdebug.so composer.phar global require --prefer-source "wp-cli/wp-cli=0.21.1" |
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
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,16 @@ | ||
#!/bin/bash | ||
|
||
# start apache in background | ||
docker-compose -f docker-compose.yml up -d | ||
|
||
~/ngrok authtoken $NGROK_TOKEN | ||
|
||
~/ngrok http -log=stdout -subdomain=$CIRCLE_SHA1 8888 > /dev/null & | ||
|
||
# Wait for application and ngrok to be ready | ||
curl --retry 10 --retry-delay 10 -v https://$CIRCLE_SHA1.ngrok.io | ||
|
||
# Execute Ghost Inspector tests using the ngrok tunnel | ||
curl "https://api.ghostinspector.com/v1/suites/$GHOST_SUITE_ID/execute/?apiKey=$GHOST_API_KEY&startUrl=https://$CIRCLE_SHA1.ngrok.io" > $CIRCLE_ARTIFACTS/ghostinspector.json | ||
|
||
if [ $(grep -c '"passing":false' $CIRCLE_ARTIFACTS/ghostinspector.json) -ne 0 ]; then exit 1; fi |
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,3 @@ | ||
#!/bin/bash | ||
|
||
docker-compose -f docker-compose.yml run web /.composer/vendor/phpunit/phpunit/phpunit /var/www/html/ |
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,3 @@ | ||
#!/bin/bash | ||
|
||
rake spec |
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