forked from php/php-src
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
By Davey Shafik via Davey Shafik * pull-request/68: Fix boolean casting and whitespace (@dsp / php#68) Add curl extension config, uses cli-server to test Source all extension scripts for ENV vars Add extension configs, compile more extensions Reformat, setup MySQL DB, call run-tests directly Add support for Travis CI
- Loading branch information
Showing
9 changed files
with
86 additions
and
6 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,21 @@ | ||
language: php | ||
|
||
php: | ||
# We only specify one version so we only get one worker | ||
- 5.4 | ||
|
||
env: | ||
- REPORT_EXIT_STATUS=1 TEST_PHP_EXECUTABLE=./sapi/cli/php | ||
|
||
before_script: | ||
# Compile PHP | ||
- ./travis/compile.sh | ||
# Setup Extensions | ||
- . ./travis/ext/mysql/setup.sh | ||
- . ./travis/ext/mysqli/setup.sh | ||
- . ./travis/ext/pdo_mysql/setup.sh | ||
- . ./travis/ext/pgsql/setup.sh | ||
- . ./travis/ext/pdo_pgsql/setup.sh | ||
|
||
# Run PHPs run-tests.php | ||
script: ./sapi/cli/php run-tests.php -g "FAIL,XFAIL,BORK,WARN,LEAK,SKIP" |
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,39 @@ | ||
#!/bin/bash | ||
./buildconf | ||
./configure \ | ||
--with-pdo-mysql \ | ||
--with-mysql \ | ||
--with-mysqli \ | ||
--with-pgsql \ | ||
--with-pdo-pgsql \ | ||
--with-pdo-sqlite \ | ||
--enable-intl \ | ||
--without-pear \ | ||
--with-gd \ | ||
--with-jpeg-dir=/usr \ | ||
--with-png-dir=/usr \ | ||
--enable-exif \ | ||
--enable-zip \ | ||
--with-zlib \ | ||
--with-zlib-dir=/usr \ | ||
--with-mcrypt=/usr \ | ||
--enable-soap \ | ||
--enable-xmlreader \ | ||
--with-xsl \ | ||
--with-curl=/usr \ | ||
--with-tidy \ | ||
--with-xmlrpc \ | ||
--enable-sysvsem \ | ||
--enable-sysvshm \ | ||
--enable-shmop \ | ||
--enable-pcntl \ | ||
--with-readline \ | ||
--enable-mbstring \ | ||
--with-curl \ | ||
--with-gettext \ | ||
--enable-sockets \ | ||
--with-bz2 \ | ||
--enable-bcmath \ | ||
--enable-fastcgi \ | ||
--with-mime-magic | ||
make |
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,5 @@ | ||
#!/bin/bash | ||
export PHP_CURL_HTTP_REMOTE_SERVER="http://localhost" | ||
cd ./ext/curl/tests/responder | ||
sudo php -S localhost:80 & | ||
cd - |
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,2 @@ | ||
#!/bin/bash | ||
mysql -u root -e "CREATE DATABASE IF NOT EXISTS test" |
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,2 @@ | ||
#!/bin/bash | ||
mysql -u root -e "CREATE DATABASE IF NOT EXISTS test" |
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,2 @@ | ||
#!/bin/bash | ||
mysql -u root -e "CREATE DATABASE IF NOT EXISTS test" |
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,2 @@ | ||
#!/bin/bash | ||
export PDO_PGSQL_TEST_DSN='pgsql:host=localhost port=5432 dbname=test user=postgres password=' |
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,4 @@ | ||
#!/bin/bash | ||
echo ' | ||
<?php $conn_str .= " user=postgres"; ?>' >> "./ext/pgsql/tests/config.inc" | ||
psql -c 'create database test;' -U postgres |