Cleaning up a bit.
This commit is contained in:
parent
b4819e4b33
commit
a5907c5a79
10
.travis.yml
10
.travis.yml
@ -1,6 +1,7 @@
|
|||||||
language: php
|
language: php
|
||||||
# list the versions of PHP you want to test against
|
|
||||||
php:
|
php:
|
||||||
|
# Here is where we can list the versions of PHP you want to test against
|
||||||
# using major version aliases
|
# using major version aliases
|
||||||
- 5.3
|
- 5.3
|
||||||
|
|
||||||
@ -14,10 +15,13 @@ before_install:
|
|||||||
- sudo chmod u+x tests/setup_test_env.sh
|
- sudo chmod u+x tests/setup_test_env.sh
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
# Install nginx, php5-fpm and configure them
|
||||||
- sudo ./tests/setup_test_env.sh $TRAVIS_BUILD_DIR
|
- sudo ./tests/setup_test_env.sh $TRAVIS_BUILD_DIR
|
||||||
|
|
||||||
|
# Create the database schema for shimmie.
|
||||||
- if [[ "$DB" == "pgsql" ]]; then psql -c "DROP DATABASE IF EXISTS shimmie;" -U postgres; fi
|
- if [[ "$DB" == "pgsql" ]]; then psql -c "DROP DATABASE IF EXISTS shimmie;" -U postgres; fi
|
||||||
- if [[ "$DB" == "pgsql" ]]; then psql -c "create database shimmie;" -U postgres; fi
|
- if [[ "$DB" == "pgsql" ]]; then psql -c "CREATE DATABASE shimmie;" -U postgres; fi
|
||||||
- if [[ "$DB" == "mysql" ]]; then mysql -e "create database shimmie;" -uroot; fi
|
- if [[ "$DB" == "mysql" ]]; then mysql -e "CREATE DATABASE shimmie;" -uroot; fi
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- php tests/test_install.php -d $DB
|
- php tests/test_install.php -d $DB
|
||||||
|
@ -12,14 +12,12 @@ require_once('lib/simpletest/autorun.php');
|
|||||||
require_once('lib/simpletest/unit_tester.php');
|
require_once('lib/simpletest/unit_tester.php');
|
||||||
require_once('lib/simpletest/web_tester.php');
|
require_once('lib/simpletest/web_tester.php');
|
||||||
require_once('lib/simpletest/reporter.php');
|
require_once('lib/simpletest/reporter.php');
|
||||||
require_once('ext/simpletest/main.php');
|
|
||||||
|
|
||||||
// Enable all errors.
|
// Enable all errors.
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
|
|
||||||
//
|
// The code below is based on the code in index.php
|
||||||
// The code below is from index.php
|
//--------------------------------------------------
|
||||||
//
|
|
||||||
|
|
||||||
require_once "core/sys_config.inc.php";
|
require_once "core/sys_config.inc.php";
|
||||||
require_once "core/util.inc.php";
|
require_once "core/util.inc.php";
|
||||||
@ -34,6 +32,9 @@ foreach($files as $filename) {
|
|||||||
require_once $filename;
|
require_once $filename;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We also need to pull in the SimpleTest extension.
|
||||||
|
require_once('ext/simpletest/main.php');
|
||||||
|
|
||||||
// connect to the database
|
// connect to the database
|
||||||
$database = new Database();
|
$database = new Database();
|
||||||
$config = new DatabaseConfig($database);
|
$config = new DatabaseConfig($database);
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Install the necessary packages
|
# Install the necessary packages
|
||||||
sudo apt-get install -y nginx realpath php5-fpm php5-mysql --fix-missing
|
sudo apt-get install -y nginx php5-fpm php5-mysql realpath --fix-missing
|
||||||
|
|
||||||
# Stop the daemons
|
# Stop the daemons
|
||||||
sudo service nginx stop
|
sudo service nginx stop
|
||||||
|
Loading…
x
Reference in New Issue
Block a user