Re-work travis config file.

This commit is contained in:
jgen 2014-02-18 23:02:10 -05:00
parent a210cc9e9e
commit e7918cc372
2 changed files with 2 additions and 7 deletions

View file

@ -11,16 +11,13 @@ env:
before_install:
- sudo apt-get update > /dev/null
install:
- sudo chmod u+x tests/setup_test_env.sh
- sudo ./tests/setup_test_env.sh $TRAVIS_BUILD_DIR
# execute any number of scripts before the test run, custom env's are available as variables
before_script:
- 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" == "mysql" ]]; then mysql -e "create database shimmie;" -uroot; fi
install:
- php tests/test_install.php -d $DB
script: php tests/all_tests.php

View file

@ -12,8 +12,6 @@ require_once('lib/simpletest/autorun.php');
require_once('lib/simpletest/unit_tester.php');
require_once('lib/simpletest/web_tester.php');
require_once('lib/simpletest/reporter.php');
require_once('tests/test_install.php');
require_once("core/util.inc.php");
// Enable all errors.
error_reporting(E_ALL);