Commit graph

139 commits

Author SHA1 Message Date
a94ae5f8c1 Fix nightly's sandbox cleanup not to hang when stdin is a tty
"rm -r" prompts for read-only files when stdin is a tty.  Probably
broken since we install builtin configuration read-only, in commit
b4161cd7, v4.3.0.

Move "done" message to the right place.  Broken in commit 70c03561,
v4.3.12.
2011-01-15 14:40:06 +01:00
c7d9d4fcf4 Fix nightly's check for existing sandbox
Broken in commit 70c03561, v4.3.12.
2011-01-15 14:40:06 +01:00
c77db95fad Clean up a useless use of cat 2011-01-15 14:40:06 +01:00
73e25ff21e Update copyright notice 2010-01-19 08:40:17 +01:00
6e30ba88a4 Fix trailing whitespace 2010-01-19 08:40:17 +01:00
611d349f3f Fix nightly build
Commit 5f89f8cb added pre_update.econfig with incorrect permissions.
2009-12-14 06:56:23 +01:00
Ron J Koenderink
5f89f8cba3 Don't patch constants.c for nightly, use econfig 2009-12-13 08:20:01 +01:00
627eb9bc1a Run git describe in nightlybuild.sh to identify what's built 2009-04-15 22:12:44 +02:00
35ef345ecb Update copyright notice 2009-02-08 09:33:18 +01:00
Ron Koenderink
b976d11884 Suppress the git checkout information for nightlybuilds 2009-01-20 19:50:33 -06:00
Ron Koenderink
8b12839565 Update windows configuration for nightlybuild 2009-01-20 19:35:17 -06:00
Ron Koenderink
c8688dbe01 Simplify the time() replacement for nightlybuilds
Move the time() replacement from emptime.c.patch file
to nightlybuild.sh.
2009-01-13 19:20:34 -06:00
4c5d3c235b Replace other occurences of git-FOO by git FOO 2008-12-03 07:57:14 -05:00
Ron Koenderink
344e91bbb9 Log out player when time per day is exceeded
Commit 3da4030 already changed player_main() to log out the player
when m_m_p_d was exceeded in command().  This crept in accidentally.
Complete the job by changing status() to log out the player instead of
downgrading him to visitor status.

Also, change player_main(), command() and status() to apply the time
limit to countries in sanctuary in addition to active countries.
Leave visitors alone, because those are shared logins.  Make the
disconnect message to a player consistent for all situations.

Note that commit 875a80d1 already changed player_main() to apply the
time limit only to active countries instead of all, just like status()
does, but neglected to document that.
2008-11-16 13:16:36 -05:00
Ron Koenderink
3da4030ac0 Prevent command from execute after game restrictions
If a player is at a prompt when either game hours
restrictions starts or logged in time limit is exceeded
the player is allow to enter one command.
2008-11-15 16:51:02 -06:00
Ron Koenderink
2ce0a58a0d Update emptime.c.patch for commit cb0a373 2008-11-15 16:21:02 -06:00
Ron Koenderink
875a80d14f Rewrite accounting of play time
Replace daychange() and gettimeleft() by update_timeused_login(),
update_timeused() and enforce_minimum_session_time().  The new
code doesn't assume the day is always 24 hours long which can
occur when transitioning into or out of DST and such.  Logging
in after more a multiple of 128 days now resets nat_timeused
properly.

Fix nat_timeused calculation on midnight rollover to include
the time since midnight.

struct natstr member nat_dayno and struct player member timeleft
are now unused, remove them.
2008-11-15 13:08:19 -06:00
Ron Koenderink
14319b89ec Represent logged in time in seconds rather than minutes
This simplifies things.  In particular, it gets rid of random rounding
in getcommand(), which created a variation in the nightly build
depending on whether the update starts before or after the deity logs
out.

Replace struct natstr member nat_minused by nat_timeused, and update
cou_ca[] accordingly (this affects xdump nat).  Replace player member
minleft by timeleft, and getminleft() by gettimeleft().  Update
getcommand(), daychange(), player_main(), status() accordingly, taking
care not to change player output.  Change edit country key 'u' to work
in seconds.
2008-10-28 08:48:25 -06:00
Ron Koenderink
436328f641 Correct the emptime.c.patch for player.c
Broken in commit 122171b.
2008-10-26 21:12:10 -06:00
Ron Koenderink
122171b8d1 Add a time base for nightly builds
Increment the time base at the each update.
Remove the unnecessary patches that overrode
the timestamp printouts.
2008-10-26 15:59:43 -06:00
Ron Koenderink
4c8bb492a3 Add more tests to nightly builds
Add Player 02 as an ally for Player 01.
Add tests for telegrams, wall, announce, relationships,
land units, wire, fire, attack, planes, autofish and autooil.
2008-10-26 15:56:04 -06:00
Ron Koenderink
488b80841b Add scrap and scuttle tests to nightly builds
Also general improvements to economy for player 08.
2008-10-18 12:06:11 -04:00
Ron Koenderink
a758e38510 Add land units tests to nightly builds and improve economy
Up the bar production.  Start education and tech for player 08
Improve the general economy for player 08.  Add land units building
tests to player 01, including ensuring the tech is high to build.
2008-10-18 12:06:11 -04:00
Ron Koenderink
62843e166c Add xdump tests to nightly builds
Add xdump meta test to Turn 00 Player 02 to verify player visibility.
Add xdump test to Turn 99 Player 00 to verify xdump output.
Add xdump test to Turn 99 Player 01 to player's version of xdump
output.
2008-10-18 10:53:36 -04:00
Ron Koenderink
8b77d0ca07 Add xdump meta and table accessible tests to nightly builds 2008-10-18 10:53:36 -04:00
Ron Koenderink
17f44e8104 Move test scripts from nightlybuild.sh to separate files
The test scripts are now in nightly/tests/TURN/PLAYER.  For each turn,
the update script is executed first (except for turn 00), and then all
the player scripts in the appropriate turn directory.  This runs
runfeed() in different directories; change it to accomodate for that.

The update script runs "report *" on all updates.  Before, it ran only
on some of them.
2008-10-16 20:50:11 -04:00
Ron Koenderink
945b473250 Add missing cd to patch step for nightlybuild.sh
If the patch step is ran without the preceeding step, the cwd
is incorrect.
2008-10-16 20:46:56 -04:00
Ron Koenderink
1047c5703f Correction for Ubuntu Conversion
Change nightlybuild.sh to allow the setting of the pthread
option for ./configure.  Remove the incorrectly added xml
header line from the ubuntu-pthread.i386.config file.
2008-09-25 21:12:24 -06:00
Ron Koenderink
787e501420 Switch Linux nightly builds to Ubuntu and add pthread build.
Remove the cron file for SuSE.  Add cron file for Ubuntu.
Remove LWP config file for SuSE.  Add LWP and pthread config
files for Ubuntu.
2008-09-24 20:18:27 -06:00
d702068457 Fix trailing whitespace 2008-09-17 21:31:40 -04:00
Ron Koenderink
7581b50eb6 Use empty schedule file for the nightly build
This ensures that no unplanned updates occur
during the nightly build sequence.  Remove
unnecesary enables and disables from the script.
Remove unnecessary argument for force command.
2008-09-11 14:58:32 -06:00
rkoenderink@gmail.com
950ec3e60e Fix execution of nightly build econfig patch script
This is required for non-Windows environment as the files do not
have permission to execute.
2008-09-04 07:42:37 -04:00
Ron Koenderink
99284a9beb Corrections for player 8
Fix the move in Turn 7, incorrect starting sector.
Fix the threshold in Turn 10, incorrect commodity.
2008-08-24 09:12:40 -06:00
Ron Koenderink
d9cc5aab10 Add server.log and journal.log to nightly build
Turn on journaling using journal.econfig.
Append the server.log and journal.log files
to the nightly build log in the SERVERSTOP step.
Remove the server.log and journal.log in the
SERVERSTART step to ensure only this run's log
events are included in the nightly build log.
Add the construction of a econfig in the
generate step using *.econfig in the patches
directory in a same way code patches are applied.
The mingw.patch was removed and replaced with the
mingw.econfig.  The mingw.econfig also required
the addition of exports to the win32.i386.config.
2008-08-24 09:09:22 -06:00
Ron Koenderink
6dadcd0976 Build ecomony for player 8 2008-08-18 21:21:46 -06:00
Ron Koenderink
8319414b01 Explore player 8's island
Explore the player 8's island in preparation for
island development and future war with player 1.
2008-08-17 15:54:21 -06:00
Ron Koenderink
b6c2d5bfa9 Add additional tests to nightly build
The following tests were added:
bridge building
spy
radar (ship, sector)
look
convert
In additon, prepartion for testing research and
hapiness production was added and improvements
for general economy for player 1 were added.
2008-08-17 15:51:40 -06:00
Ron Koenderink
851ccd4876 Fix timestamps for data files and lost command
Set the ef_timestamp to 100 for the nightly build.
Set the DUMP LOST timestamp to 101 for the nightly build.
This will the suppress the timestamp differences
that occur when testing lost command and will facilitate
testing for dump and xdump commands.
2008-08-17 15:13:57 -06:00
Ron Koenderink
047b4b1983 Add additional tests to nightly build
The following tests were added:
ship list
ship navigation
assault
tech production
sector lost
commodity monitoring
tech monitoring
education monitoring
2008-08-09 15:05:40 -06:00
Ron Koenderink
931f6db90d Add change directory before starting server tests
The server tests would fail if the previous
steps were skippped.
2008-08-09 14:59:59 -06:00
fc6f1da568 Doc fix 2008-03-28 20:53:22 +01:00
0d09bdc8dc Remove src/scripts/tag-changeling, it's specific to CVS 2008-03-28 20:52:31 +01:00
Ron Koenderink
975419e7d3 Remove nightly build configurations files that are not being used
This files are not current with nightlybuild.sh, common.sh
and report.sh.
2008-03-16 17:17:04 -06:00
Ron Koenderink
0b4ee6ac27 Remove pre_update_hook decoration
Improve the portability.  The Windows version of "echo" does
not support single quotes as a quoting character and therefore
fails and prevents updates in the Windows nightly build.
2008-03-16 17:09:00 -06:00
d1d0b0a414 Update indent-emp for removed typedef names, belatedly. 2008-03-14 20:25:43 +01:00
Ron Koenderink
13cca55a9d Added Remove_Repository to supported command list
This feature was added in commit 70c03561bb but was
not added to the list of supported commands at the top
of file.  No functional change just a documentation
correction.
2008-02-16 11:15:10 -06:00
Ron Koenderink
ffee7cd10d Apply the patches using git apply instead of patch
Need to be in the empserver directory before applying
the "git apply" command, move the "cd empserver" to the
clone step. This change also fixes a bug when using
with an existing repository not being the correct
directory when executing the "git pull" command.
Fixes commit acd768e5e2 as it used git diff format.
2008-02-16 11:09:19 -06:00
Ron Koenderink
acd768e5e2 Update nightly build for recent changes to path.c.in
The three previous commits touching path.c.in broke mingw.patch: the
relative vs absolute paths changes moved the initializers to be
patched to new variables, and the telfil removal messed up the
context.
2008-02-10 12:56:49 +01:00
Ron Koenderink
70c03561bb Switch nightlybuilds to git
Create a local git repository on the SuSE nightly build machine.
Update local git repository from the Markus's public repository
at the beginnning of the nightlybuilds for SuSE and WIN32.
For the SuSE and WIN32 nightlybuilds drawn from the local
git repository on SuSE machine.
2008-02-04 20:26:46 -06:00
bcdcbab19c Replace .cvsignore files by .gitignore files 2008-01-13 11:22:33 +01:00