Commit Graph

29 Commits

Author SHA1 Message Date
Michał Janiszewski
4c831ea6c6 TRAVIS: enable ccache compression
Current builds saturate Travis CI caches:

```
$ diff -U999 /tmp/ccache_before /tmp/ccache_after || true
--- /tmp/ccache_before	2019-11-19 21:45:52.491212479 +0000
+++ /tmp/ccache_after	2019-11-19 21:58:32.335898083 +0000
@@ -1,10 +1,13 @@
 cache directory                     /home/travis/.ccache
 primary config                      /home/travis/.ccache/ccache.conf
 secondary config      (readonly)    /etc/ccache.conf
 cache hit (direct)                     0
 cache hit (preprocessed)               0
-cache miss                             0
-no input file                          1
-files in cache                         0
-cache size                           0.0 kB
+cache miss                          4156
+called for link                       66
+called for preprocessing               3
+compile failed                         9
+no input file                          2
+files in cache                     10568
+cache size                         434.1 MB
 max cache size                     500.0 MB
```

I doubt it's possible to get more space allocated, though there are no
docs on what exact limits are. I suspect that default explicit setting
matches what's provided. Instead of trying to get more storage,
compress the objects with zlib (default level 6) to try increasing hit
rate.
2020-05-27 12:40:11 +02:00
D G Turner
6a9b081bad TRAVIS: Really Fix OSX Builder with CCache 2019-12-19 12:36:27 +00:00
D G Turner
bdf97159a1 TRAVIS: Fix OSX Builder Syntax 2019-12-19 12:23:23 +00:00
D G Turner
6ea7d4e05b TRAVIS: Use CCache for OSX Builder
The OSX builder keeps failing with timeouts and thus notifying false
positives of build errors.

This was not using ccache to speed up the build, so am trying to
implement usage of this.
2019-12-19 12:08:04 +00:00
D G Turner
46e4a11a88 TRAVIS: Fix Build Reliability
Travis CI will terminate builds if the log output exceeds around 4MB of
text output. With verbose build enabled, this causes the builds to
terminate.

We could try avoiding this by redirecting standard output from make to
/dev/null ... However, the build will then fail due to lack of output
in some cases. The limit for that seems to be around 10 minutes of build
time with other projects adding a background loop to provide output at
9 minute intervals to avoid this.
2019-11-22 14:55:52 +00:00
Michał Janiszewski
41efecc265 TRAVIS: Collect and display ccache stats on jobs 2019-11-22 14:46:22 +00:00
Michał Janiszewski
1b55df81ec TRAVIS: Add ccache to build 2019-11-22 14:43:33 +00:00
Michał Janiszewski
6162609937 TRAVIS: Update distribution to Xenial
Trusty, Ubuntu 14.04 LTS has reached end of standard support in April
2019. It is replaced in Travis job with Xenial, 16.04 LTS release with
support until April 2021.
2019-11-22 14:40:13 +00:00
Michał Janiszewski
7bb28d486e TRAVIS: Add --enable-verbose-build to configure
There is an issue with SCUMMVM_REVISION being added to all objects,
rather than just base/version.o so this is for debugging this and
generally just improved verbosity for CI debugging.
2019-11-22 14:25:32 +00:00
Cameron Cawley
2078aa732d TRAVIS: Cache homebrew packages
Based on https://stackoverflow.com/a/53331571
2019-11-14 19:28:41 +00:00
Cameron Cawley
027e41632f
TRAVIS: Don't build with gcc on Mac OS X (#1692)
* TRAVIS: Don't build with gcc on Mac OS X

gcc on Mac OS X is just a frontend for LLVM.

* TRAVIS: Fix building with clang on Linux
2019-06-21 16:05:39 +01:00
Cameron Cawley
6e174c1561 TRAVIS: Install jack on Mac OS X 2019-06-19 07:35:24 +03:00
Cameron Cawley
6a52a98f88
TRAVIS: Re-add brew update 2019-06-18 19:48:19 +01:00
Cameron Cawley
4745b09988 TRAVIS: Install curl on Mac OS X instead of curl-openssl 2019-05-25 00:33:09 +03:00
Cameron Cawley
413a7204d2 TRAVIS: Don't run brew update 2019-05-25 00:33:09 +03:00
Cameron Cawley
dbdf8de985 TRAVIS: Re-enable Mac OS X builds 2019-05-18 21:02:12 +03:00
Cameron Cawley
14bdaae4d5 BUILD: Add missing libraries to Travis CI build 2018-11-03 23:31:32 +00:00
Colin Snover
41ee6431a9 BUILD: Remove macOS build target from Travis CI
The macOS build machines on Travis CI are failing constantly, and
for the time they've been enabled, they haven't really proven to
give any benefit. So, turning them off now, at least until Travis
CI gets more reliable so we are not contantly notified about their
broken build machines.
2017-09-09 11:22:48 -05:00
Eugene Sandulenko
e25bac9690 BUILD: Added missing libs to Travis CI osx configuration 2017-01-25 20:00:15 +01:00
Eugene Sandulenko
bac7b6d651 BUILD: Adding OSX target to Travis CI.
I expect this to fail at the first run.
2017-01-25 10:56:58 +01:00
Eugene Sandulenko
87a7198521 BUILD: Add IRC notifications to Travis CI builds 2017-01-23 22:16:48 +01:00
Colin Snover
0aba92b4b0 Revert "Merge pull request #885 from csnover/faster-travis"
Travis builds are failing randomly after this change due to
upstream bug travis-ci/travis-ci#7103, so reverting these changes
until it is fixed.

This reverts commit 72f421cb38, reversing
changes made to c919c9996c.
2017-01-06 12:40:31 -06:00
Colin Snover
507562e0a2 BUILD: Speed up Travis-CI builds
container-based infrastructure (by sudo: false) starts and runs
faster:
https://docs.travis-ci.com/user/migrating-from-legacy/

gcc and make are preinstalled by Travis-CI for C++ language
containers, so do not need to be listed as dependencies:
https://docs.travis-ci.com/user/trusty-ci-environment/#Compilers-%26-Build-toolchain

ccache caching prevents wasting time rebuilding unchanged code:
https://docs.travis-ci.com/user/caching#ccache-cache
2017-01-05 13:25:52 -06:00
Eugene Sandulenko
5727c9099b BUILD: Add libcurl and libsdl to Travis prerequisities 2016-09-05 08:01:54 +02:00
Eugene Sandulenko
de04a68c06 BUILD: Switch SDL backend to SDL2 by default. SDL1 is still a fallback. 2016-08-15 16:07:28 +02:00
Bastien Bouclet
f980ef5524 BUILD: Don't disable the event recorder for TravisCI
Tests now build fine with the event recorder enabled
2016-07-28 18:25:05 +02:00
Michał Janiszewski
823c2f899b BUILD: Use parallel build on travis (#792) 2016-07-28 17:34:49 +03:00
Eugene Sandulenko
f3f53ab823 BUILD: Disable Event Recorder for Travis CI, as our test/ suite is yet compatible with it 2016-07-28 10:43:41 +03:00
Martin Gerhardy
a079dd6250 BUILD: Added Travis-CI support 2015-08-01 19:54:44 +02:00