Chris Beck
719646d89a
try to fix some travis wierdness
...
by putting time statement outside of the multiline if statement
2014-07-05 17:56:00 -04:00
Chris Beck
f8503ec650
remove debugging output from travis
2014-07-05 14:28:03 -04:00
Chris Beck
9baae9c696
avoid scanning all units for a unit filter which gives a location
...
This adds a specialized implementation of unit filter -- if unit
filter specifies numbers for both x and y (no , - and not "recall")
then to find all matches we just find that position in the unit_map
rather than scan over all units. This happens behind the scenes.
2014-07-05 14:27:00 -04:00
Chris Beck
30276db7d3
wrap exit commands when used in .travis.yml
2014-07-05 13:52:05 -04:00
Chris Beck
2fbe31ed8e
fixup gdb lines in .travis.yml
...
they should use -q and run in batch mode
2014-07-05 13:25:40 -04:00
Chris Beck
697ecb799a
tweak .travis.yml
...
exporting inline captures the error code, but apparently removes
it from the pipeline, so we should exit using that code right after
2014-07-05 13:13:12 -04:00
Chris Beck
04861c74e4
fixup attempt on .travis.yml
...
try to store error codes by putting $? inline using ;
2014-07-05 12:44:58 -04:00
Chris Beck
63effc3e04
try bypassing the test wrapper script on travis
2014-07-05 10:57:45 -04:00
Chris Beck
2659acdb19
debug output on travis
2014-07-05 10:51:25 -04:00
Chris Beck
93649ad2fe
fixup .travis.yml syntax error
2014-07-05 10:24:11 -04:00
Chris Beck
381e5292b0
tweaked error handling routine for travis
2014-07-05 09:30:09 -04:00
Chris Beck
56dc1c2307
fixup travis segfault handling in test executable
2014-07-05 09:22:23 -04:00
Chris Beck
736d8bd287
more time for clang -O0 wml unit tests
2014-07-04 17:33:23 -04:00
Chris Beck
91640422ed
reenable campaignd and wesnothd compilation for travis gcc build
...
Switching to -O0 seems to save us maybe 10 minutes (?) so we can
probably afford this now
2014-07-04 17:14:21 -04:00
Chris Beck
3560cd85b3
add a parameter to travis for test timeout, for use with -O0
2014-07-04 16:40:39 -04:00
Chris Beck
c450d482f2
fixup typo in travis yml (EXRTA_FLAGS... -> EXTRA_FLAGS...)
2014-07-04 15:46:53 -04:00
Chris Beck
07a067eb94
fixup travis yml syntax errors (forgot ; fi)
2014-07-04 15:45:32 -04:00
Chris Beck
0f2dc9b17b
use -O0 optimizations on the gcc build, as this is faster
...
This swaps the optimization levels used by default and alternate
configurations, so that gcc gets -O0, so the compiler will do
less work. gcc does not run the wml unit tests so this should
definitely save time.
2014-07-04 15:36:35 -04:00
Chris Beck
3149086891
fixup 8bff0848a1
...
The gcc build should not use the alternate configuration
2014-07-04 15:35:17 -04:00
Chris Beck
ebba6a3d11
refactor travis script, only call apt-get update once
...
This moves the gcc 4.8 upgrade step to the "install" phase after
we run apt-get update, so that we only do that once. It can take
15 sec or so apparently to execute that command.
2014-07-04 15:30:28 -04:00
Chris Beck
8bff0848a1
make the "alternate" clang build use -O0 optimizations
...
The alternate clang build currently uses strict compilation = false,
this was requested so that we get as many error messages as possible.
We would also like to have an -O0 build run against the unit tests,
as sometimes -O0 will segfault while -O2 won't, etc. So in this
commit the alternate build uses that option also. I also rename
the environment variables, so that the build matrix is based on
casing out whether "alternate_configuration" is true (not strict_
compilation) as previously, and the alternate_configuration flag
leads to options being exported in the before_install phase.
2014-07-04 15:27:00 -04:00
Chris Beck
30ada9c5e7
fixup travis
...
I guess writing Error: in a quoted string is illegal yaml?
2014-06-30 21:36:20 -04:00
Chris Beck
91510d7d23
cleanup travis script a bit
...
keep all the utf8 bom code together, and output the bom at the
place that it is reported
2014-06-30 21:32:17 -04:00
Chris Beck
6f0ed024f9
fix travis (broken bash logic)
2014-06-30 21:24:42 -04:00
Chris Beck
8c63b5fe52
fix logic error in .travis.yml
2014-06-30 21:04:49 -04:00
Chris Beck
0cb717c4f9
fixup travis script
...
This fixes up f07400a471
,
the ! syntax doesn't seem to work here.
2014-06-30 20:58:16 -04:00
Chris Beck
12bafe2ffc
minor tweaks to script (fix a comment, merge two adjacent lines)
...
The travis log is more readable if all of the WML test errors
are on the same tab.
2014-06-30 20:51:15 -04:00
Chris Beck
f07400a471
add UTF8 BOM check to travis
2014-06-30 20:50:11 -04:00
Chris Beck
d3af15bbb2
refactor travis script, add a variable for the utf8 check
2014-06-30 14:28:44 -04:00
Chris Beck
af1e83bfc6
go back to disabling wesnothd and campaignd on the gcc build
2014-06-30 11:03:38 -04:00
Chris Beck
74fac0b62d
reenable extra targets, and cpp tests, on the gcc build on travis
2014-06-30 10:11:29 -04:00
Chris Beck
99d8523a5c
small fixup to .travis.yml
...
move the moreutils installation to after the apt-get update
use qq option to prevent timeout due to some unexepcted user query
2014-06-29 20:22:25 -04:00
Chris Beck
b8eb79411e
inline a very short travis-related script
2014-06-29 19:31:32 -04:00
Chris Beck
f5aab2680a
move travis related scripts to utils/travis/
2014-06-29 19:26:25 -04:00
Chris Beck
02b20ddba8
fixup travis script
2014-06-29 16:45:18 -04:00
Chris Beck
394f4e273c
add utf8 formatting check to the clang tests on travis
...
This will automatically detect BOM's and such which might be
accidentally committed.
2014-06-29 16:33:54 -04:00
Chris Beck
3b8b409079
add time checks for package installation commands to travis.yml
2014-06-29 16:15:09 -04:00
Chris Beck
361570711c
add "moreutils" lib to travis script, for utf8 check
2014-06-29 16:12:51 -04:00
Chris Beck
eec9536680
test what happens with check_utf8.sh on travis
2014-06-29 15:55:58 -04:00
Chris Beck
1a6b28b990
reorder travis builds in order of increasing exp. length
...
This helps to make more travis builds finish more quickly when
many are run at once.
2014-06-24 23:47:13 -04:00
Chris Beck
2415df79b8
turn on vebose logging on travis, to see about strict mode
2014-06-19 20:24:19 -04:00
Chris Beck
3e2d27f58a
add --debug=time to scons line in travis
...
This might help to figure out why builds time out and what parts
of the compilation process are slow.
2014-06-18 17:59:55 -04:00
Chris Beck
94d68dc322
disable all tests on gcc builds, to prevent timeouts
...
It seems that we cannot avoid the segfault without adding gcc-4.8
download and install to the test sequence, but this seems to push
us over the time limit consistently. In this commit, go back to
using gcc-4.8 but disable everything but the wesnoth target itself
for the gcc build to save time.
2014-06-18 15:48:28 -04:00
Chris Beck
458c2f0f06
set travis back to gcc 4.6 version
...
The gcc-4.8 patch requires travis to download and install gcc-4.8
from an ubuntu ppa. This takes a few mintues and the gcc build is
already fairly close to the timelimit, so this change can push
some builds over the edge. Since it doesn't seem to be strictly
necessary right now, I comment out the code for v 4.8 install.
2014-06-18 14:04:33 -04:00
Chris Beck
f25496ebc2
use gcc 4.8 on travis
...
This is temporary... for some reason gcc 4.6 is segfaulting while
clang and 4.8 compile successfully, so in the meantime use 4.8 on
travis.
2014-06-15 16:48:05 -04:00
Chris Beck
a035ae61c0
fixup travis.yml
...
The gcc build was strict = false not strict = true
2014-06-12 17:10:40 -04:00
Chris Beck
11450af7f6
fixup travis.yml
2014-06-12 17:06:33 -04:00
Chris Beck
5e733408f8
add a "no strict compilation" clang build to travis
...
At gfgtdf's request
2014-06-12 17:01:57 -04:00
Chris Beck
8bd1bd99db
increase wml unit test timer on travis
2014-06-06 10:35:41 -04:00
Chris Beck
79f1e2e836
travis, don't run wml unit tests with gcc
...
To help prevent timeouts. Just running them with clang should be
fine.
2014-06-03 12:40:12 -04:00