mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-04 03:51:25 +00:00

* Made map labels not to register if having empty text. (labels are still needing rewrite) * Fixed filter check for missing tags report * Made SDL_Init(TIMER) called in all platforms (This initializes variables in sdl; eg SDL_GetTicks counter) * Added campaignd server cr encoding conbersion so old data is converted to new format * Made Unit test website find old error with less strict parameters
42 lines
802 B
PHP
42 lines
802 B
PHP
<?php
|
|
if ($argc != 2)
|
|
{
|
|
echo "Wrong number of parameters given";
|
|
die;
|
|
}
|
|
$root_dir = $argv[1];
|
|
|
|
require_once $root_dir . '/../include/settup.php';
|
|
|
|
// used to show all queries to db when debuging;
|
|
//$db->debug = true;
|
|
// Upgrade the database format to the newest
|
|
$creator = new DBCreator();
|
|
$creator->checkDB();
|
|
|
|
// do svn up
|
|
$svn = new SVNUpdater();
|
|
|
|
if ($svn->getRevision() === false)
|
|
{
|
|
trigger_error("SVN is down", E_USER_ERROR);
|
|
}
|
|
|
|
$build = new Build($svn->getRevision());
|
|
|
|
if (!$build->Exists()
|
|
|| $build->getStatus() != Build::S_GOOD)
|
|
{
|
|
// Only run tests if build doesn't exists
|
|
if ($build->compile($svn->getRevision()))
|
|
{
|
|
$test_runner = new TestRunner();
|
|
$test_runner->run($build);
|
|
}
|
|
$db->CompleteTrans();
|
|
}
|
|
|
|
$config = new Config('last_autotest_run_time');
|
|
$config->set(time());
|
|
?>
|