Commit graph

60 commits

Author SHA1 Message Date
Pentarctagon
bf3db2cbd4 Add NLS CI job.
Cmake only since scons fails with an encoding error on Ubuntu 16.04.
2021-01-31 15:00:25 -06:00
Pentarctagon
cec19a394f Move 1.14 over to github actions. 2020-12-03 11:47:09 -06:00
pentarctagon
62fe0b5f53
Attempt to fix macOS+scons travis error. 2019-12-29 15:47:04 -06:00
Gunter Labes
4c9fff19ba
Fix brew install by disabling auto update
https://travis-ci.community/t/syntax-error-unexpected-keyword-rescue-expecting-keyword-end-in-homebrew/5623/2
2019-10-29 19:23:31 +01:00
Pentarctagon
fd3f7fe6a8 fix gdb error when attempting to disable aslr 2019-07-25 19:54:22 -05:00
Pentarctagon
426aa7318a Fix travis macos+scons build.
Steps:
1) added `brew install libffi`, was told it was already installed and to try reinstalling.
2) changed to `brew reinstall libffi`, was told it was "keg only" and was provided the PKG_CONFIG export statement.
3) added export statement, seems to work.
2019-03-15 04:08:25 -05:00
Martin Hrubý (hrubymar10)
d3eebd61e1
Rename Xcode project and target to pass Apple's guidelines 2019-01-28 13:33:00 +01:00
Victor Sergienko
14ea6d49f3 #3634, #3557: Port from iOS: Compile with Apple crypto framework instead of OpenSSL. 2018-10-24 22:43:44 -07:00
Jyrki Vesterinen
b869b760c4 check_utf8.sh: don't check the second Lua bytecode test scenario
This avoids the other file with binary data.
2018-07-27 23:49:24 +03:00
Jyrki Vesterinen
ad90f368a3 check_utf8.sh: don't check the Lua bytecode file
This avoids one of the two files which are currently causing macOS SCons
builds to fail in the master branch.
2018-07-27 23:34:11 +03:00
Charles Dang
7e5902beed Remove reference to players_changelog 2018-07-13 16:58:01 +11:00
Martin Hrubý (hrubymar10)
787bf47225
Switch travis Xcode to DEBUG scheme 2018-05-21 14:23:16 +02:00
pentarctagon
5a7f651ec9 Add using dockerfiles based on the LTS and BRANCH env vars
This makes it simpler in the future to have branches that have dependencies that are different from master, rather than having a single image with all necessary dependencies installed, which may at some point end up not being possible to do.
2018-03-30 12:18:48 +03:00
Charles Dang
950a156712 Addressed most of the remaining whitespace issues from #2613
[ci skip]
2018-03-11 14:59:37 +11:00
pentarctagon
02244aaa53 Make LTO controlled by a variable export in steps/install.sh.
Currently will remain disabled everywhere, but this allows for enabling LTO for optimized, non-xcode jobs just by changing the value of the LTO variable.
2018-03-08 15:40:05 +02:00
pentarctagon
ee51afa128 Moves the build-cache directory to be under $HOME.
Moving it out of the same directory as the git repository means that the object files won't be copied into the temporary docker container when it's being created.
2018-03-08 15:40:05 +02:00
pentarctagon
258b8b9bae Make docker_run.sh use 4 space indenting to match other shell scripts.
Also split apart the really long scons/cmake single lines
2018-03-08 15:40:05 +02:00
pentarctagon
900a159c8b Attempt to fix suspected race condition when running MP tests.
Currently the MP unit tests will randomly fail due to one of the two background wesnoth instances failing video initialization.  All unit tests require the display server to be initialized however, or they fail with the same error as the MP tests sometimes fail with.  However, the MP tests are the only tests to randomly fail due to video initialization, while for the same travis job the WML unit tests (which run before) and the boost unit tests (which run after) are still able to be successfully completed.

Therefore, the video initialization failures are not entirely random, and the MP tests are also the only tests that experience this failure while also being the only tests that have more than one instance of wesnoth running simultaneously.

tl;dr: the attempted solution here is to sleep for 5 seconds between starting background processes in the mp unit test script.

Also removes starting the display server prior outside of the docker container, since that's not needed anymore.
2018-03-05 15:49:46 +11:00
pentarctagon
abf93216ac Don't source steps/script.sh.
Travis runs all commands in .travis.yml in its own wrapper script, so by sourcing steps/script.sh and then using exit explicitly, it resulted in the entire travis wrapper immediately terminating.  With steps/script.sh no longer sourced, using exit works as expected again, and only exits steps/script.sh rather than quitting everything. Another solution, should sourcing steps/script.sh become necessary, is to use return instead of exit.

With that addressed, it's then possible to re-add printing the ccache statistics after the build ends while also making sure that the script exits with the return code of the xcodebuild/cmake+make command rather than the return code of the ccache statistics commands.
2018-03-04 15:48:00 -06:00
pentarctagon
2a783b0df2 Fix for failed ccache builds being considered successful.
Travis looks at the return code of the final command run, and since printing the ccache statistics never fails, building would never be considered as failing. Manually calling exit also causes travis to treat the build as errored, since by sourcing the build it results in the entire travis wrapper shell exiting.
2018-03-03 16:46:06 -06:00
pentarctagon
6f02d1bebb Make scons' mysql handling more normal. 2018-03-02 13:55:22 -06:00
pentarctagon
ea06cdc63a Move the logic for the install and script steps into their own files.
Also merges the before_install and install steps.
2018-03-02 13:55:22 -06:00
pentarctagon
4bccc19ebc Move docker_run.sh into utils/travis/ 2018-03-02 13:55:22 -06:00
pentarctagon
b71f7cdc3c Moves the ccache clang wrapper scripts to utils/travis/.
Also clears the ccache statistics after printing them. This means the hit/miss count will be shown per run, rather than cumulatively.
2018-02-24 10:56:05 -06:00
Jyrki Vesterinen
72739c56a5 Revert ignoring MP test failures due to video init failure (2e5c5da003)
This code ended up ignoring *all* MP test failures, in particular the one
fixed in commit 11d7b9f0cf.

I'd test the code and fix it if I could, but unfortunately I can no longer
develop on GNU/Linux because of PC issues (which I mentioned in Discord).
Therefore I'm just reverting the entire change.
2017-11-29 21:34:03 +02:00
Gregory A Lundberg
bf8758afde Tell Travis about Boost unit test name change 2017-11-06 13:43:18 -06:00
Alexander van Gessel
fc0674bcb6 Change *_RUNNING vars to string comparisons 2017-10-04 17:00:31 +02:00
Alexander van Gessel
fea609d309 Add missing break 2017-10-04 11:17:38 +02:00
Alexander van Gessel
2e5c5da003 MP test: treat failed init of SDL_video as a 'successful' test 2017-10-04 09:32:00 +02:00
Alexander van Gessel
7b3254964d Ensure that mp_test_executor exits 2017-10-04 09:12:32 +02:00
Celtic Minstrel
c9191c9812 Add OpenSSL's libcrypto as a dependency
This also removes the included SHA1 and MD5 implementations
in favour of those from OpenSSL.

Thanks to @jyrkive for helping to get the CMake build working and
ensuring the game still compiles with OpenSSL 1.1.0.
(The SHA_xxx() aliases were removed in OpenSSL 1.1.0.)
2017-05-12 15:57:13 -04:00
Celtic Minstrel
5bc16e2544 Travis hack: Don't require vorbis on OSX 2016-11-12 15:20:04 -05:00
Celtic Minstrel
217a6e91f7 Travis: Install OSX dependencies
Also restrict environment and compiler for OSX build
2016-11-12 15:20:04 -05:00
Charles Dang
3ff4a18983 Update GUI2 test plugin names (since c43651f99b) 2016-11-12 18:35:44 +11:00
Celtic Minstrel
bc7c66d9f0 Travis: Wrap entire install script in travis_wait
Using travis_wait inside the install script doesn't
have the desired effect of increasing the timeout duration.
2016-11-11 20:07:58 -05:00
Celtic Minstrel
9322f90b3a Split Travis dependency installation into a shell script
This is a prerequisite for getting an OSX build working,
since a different package manager is used there.
2016-11-11 17:41:04 -05:00
Celtic Minstrel
c43651f99b Rename GUI2 MP tests to replace their now-missing GUI1 counterparts 2016-11-11 17:33:25 -05:00
Celtic Minstrel
5c57f25ce7 Remove GUI1 MP tests 2016-11-11 17:33:25 -05:00
Jyrki Vesterinen
1c97c8890c Mark mp_test_executor-gui2.sh as executable 2016-09-25 20:17:48 +03:00
Jyrki Vesterinen
c4992dcd38 viesti.txt 2016-09-13 21:18:50 +03:00
Charles Dang
793b8491ad Added GUI2-compatible versions of mp tests and plugin scripts 2016-08-27 01:14:49 +11:00
aquileia
a349b0eb7e WML tests: Delete old scripts, fix OpenMP 2015-03-14 18:06:32 +01:00
Chris Beck
9b78a41d25 unit tests: add --noaddons switch to the networked mp unit tests 2015-03-05 13:28:33 -05:00
Chris Beck
032d8c1a93 fixup travis test_wrapper.sh
fixes up commit 6695365efb
2014-12-28 18:00:41 -05:00
Chris Beck
7a148154c3 travis: also check changelogs & RN for utf8 errors 2014-12-28 14:18:16 -05:00
Chris Beck
6695365efb travis: ignore error code 200 from test executable if repeats 10x 2014-12-28 14:14:32 -05:00
Chris Beck
e3bc595fff travis: add mp unit tests to travis build #3 (clang -O2) 2014-12-19 19:47:29 -05:00
Chris Beck
392f980dbf Revert "travis: as a test, try turning off the nogui option for play test"
This reverts commit 6bca3fa96d.
2014-12-02 20:57:13 -05:00
Chris Beck
6bca3fa96d travis: as a test, try turning off the nogui option for play test 2014-12-02 20:12:08 -05:00
Chris Beck
baeac17fa2 move ai playtest and backtrace out of travis.yml to a script 2014-07-07 15:18:35 -04:00