Commit Graph

21 Commits

Author SHA1 Message Date
Vadim Zeitlin
5d79ab82ce Split building and running tests in 2 steps on Travis CI
This might prevent us from running into Travis timeouts in OS X builds
so often.
2017-08-25 14:22:43 +02:00
Vadim Zeitlin
f08305ae33 Clean before building using installed library in Travis CI
The minimal sample had been already built as part of "make samples", so clean
it before rebuilding it using the installed library version, otherwise we
never do anything in this step.
2017-01-07 23:17:53 +01:00
Vadim Zeitlin
c80440af86 Dont 'include -stdlib=libc++ in CXXFLAGS in Travis build script
There is no need to specify it explicitly any more and it seems to confuse
make because of an apparent problem with (insufficient?) quoting in Mac
builds.
2017-01-07 23:17:53 +01:00
Vadim Zeitlin
dcef4d4a9e Use multiple commands in Travis CI build script
Using a single long command was always inconvenient and started displaying the
build results strangely since starting to build the samples conditionally in
62d2f4e5f5, so try using multiple commands with
"set -e" to ensure that we abort the build as soon as possible.
2017-01-07 23:17:23 +01:00
Vadim Zeitlin
038aaa74d1 Fix syntax error in Travis config from the last commit
Add the missing quote.
2017-01-04 22:47:32 +01:00
Vadim Zeitlin
62d2f4e5f5 Don't build sample in macOS Travis CI builds
This takes too much time and the entire build regularly times out, resulting
in spurious errors.
2017-01-04 22:04:05 +01:00
Vadim Zeitlin
cff06eed9d Switch to using Xcode 6.4 on Travis CI
The old Xcode 6.2 image is not available any longer.
2016-12-12 23:04:53 +01:00
Vadim Zeitlin
9b477e46e5 Use Xcode 6.2 for OS X Travis-CI builds
This is the new minimal version required by Homebrew.
2016-09-23 16:19:26 +02:00
Vadim Zeitlin
2bd179a2fc Combine all Travis CI commands into a single one
Don't build if configure failed and don't build tests if building the library
failed and so on: contrary to the expectations, Travis continues to execute
the rest of the commands even if a previous one had failed, so chain them all
explicitly together using "&&" to make sure we fail as soon as possible.

See https://github.com/travis-ci/travis-ci/issues/1066
2016-01-30 18:42:46 +01:00
Vadim Zeitlin
9f15ca5f53 Don't use "-B" make option in Travis CI builds
This just seems unnecessary.
2016-01-29 15:16:15 +01:00
Vadim Zeitlin
9e6af23062 Use -stdlib=libc++ explicitly with clang under OS X in Travis CI
Fix the compilation of the sample using non configure-generated makefile in OS
X Travis CI build.
2016-01-28 15:15:59 +01:00
Vadim Zeitlin
e6db20d908 Pass -std=c++11 when using Unix makefile on Travis explicitly
wx-config doesn't include -std=c++11 in its output currently and it's not
clear whether it should (consider c++11 vs gnu++11 or even vs c++14), so add
this compiler option explicitly in C++11 Travis builds.
2016-01-25 01:56:10 +01:00
Vadim Zeitlin
6a3b6600dd Test builds with newer g++, clang and OS X on Travis CI
Configure the build matrix to test building on more platforms and using clang
as well and also test C++11 builds using both g++ and clang.
2016-01-24 21:26:43 +01:00
Vadim Zeitlin
844a7e426a Extract Travis before install script steps into a separate file
This allows to do make these steps more complicated, e.g. avoid using apt-get
under non-Linux (and even non-Debian/Ubuntu) platforms.

Also install GTK+ development package explicitly, while it's already available
on the older Travis Ubuntu 12.04 VMs, this is not the case for the newer 14.04
ones.
2016-01-24 21:25:31 +01:00
Vadim Zeitlin
c86168132d Really check building using the installed version in Travis builds
The command to do this at the end of the script didn't actually do anything
because the minimal sample had been already built in tree before.
2016-01-24 21:25:30 +01:00
Vadim Zeitlin
3ea3be5bcb Make Travis logs more readable by folding the different sections
See https://github.com/travis-ci/travis-ci/issues/2285 for more information
about log folding on Travis.
2016-01-24 21:25:30 +01:00
Bryan Petty
a775d57f97 Update apt sources in Travis CI builds. 2015-12-17 08:58:10 -07:00
Vadim Zeitlin
75e88aca55 Build 3.0 branch on Travis as well.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-05-16 10:53:51 +00:00
Vadim Zeitlin
985addd986 Update Travis configuration to run tests and build more configurations.
Install libcppunit-dev in order to be able to run the unit tests (at least the
non-GUI ones for now).

Also build in several configurations: shared/static, multilib/monolithic and
also STL. This should help to find problems appearing only in some specific
build variants.

Closes #15369.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-08-07 11:08:21 +00:00
Vadim Zeitlin
19d7382a29 Disable tests in Travis configuration.
As cppunit is not available, building tests fails.

Also disable optimizations in an attempt to make the build faster as we risk
being killed because it takes so long.

Finally, test compilation of the minimal sample using the installed library
for completeness.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-07-25 23:36:07 +00:00
Vadim Zeitlin
d57d8c21d1 Add a configuration file for Travis CI system.
Try to use Travis in addition to buildbot to see if it can be useful for us.

Closes #15355.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74598 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-07-25 21:55:17 +00:00