Commit Graph

47 Commits

Author SHA1 Message Date
Vadim Zeitlin
9fba259546 Require macOS 10.12 for Travis CI build using Xcode 11.3
Our tests don't compile under Mac when targeting 10.9 and using C++17 as
they try to use C++17 std::uncaught_exceptions() which is only available
since 10.12 under macOS.

We could avoid the use of this function in the tests in this build
configuration, but for now just target 10.12 instead. Yet another
alternative would be to downgrade to using C++14.
2020-04-22 17:24:21 +02:00
Vadim Zeitlin
9a53b3b66a Use C++17 and STL for Xcode 11.3 Travis CI build
Note that using C++98 results in tests build failure with clang as
libc++ doesn't allow using custom std::swap() specialization for
non-const references in its iter_swap(), it really requires using rvalue
references, which are, of course, only available in C++11 and later.
2020-04-22 15:48:54 +02:00
Vadim Zeitlin
f0136060eb Upgrade Travis CI Linux build platforms to later versions
Move Precise (12.04) build to Trusty (4.04), move one of the existing
Trusty builds to Xenial (16.04) and all the other ones to Bionic (18.04)
to test under reasonably recent platforms too, and mostly.
2020-04-21 23:08:34 +02:00
Vadim Zeitlin
70335d7a55 Add Travis CI build using Xcode 11.3
Test with the latest Xcode release too.

Make this build monolithic just to try to cover more possibilities.
2020-04-21 23:07:57 +02:00
Paul Cornett
4d3190c9f7 Revert "Change default GTK version for CMake from 2 to 3"
My attempt to use GTK2 for Travis CI build didn't work
2020-04-20 07:37:12 -07:00
Paul Cornett
6d25b49f95 Change default GTK version for CMake from 2 to 3 2020-04-20 06:55:18 -07:00
Paul Cornett
78dbafb8f7 Make GTK version explicit for Travis CI builds 2020-04-19 21:32:04 -07:00
Vadim Zeitlin
d16181ee74 Add names for Travis CI build jobs
This should make it more convenient to see which one is which.
2020-04-19 23:04:27 +02:00
Vadim Zeitlin
843fec8143 Reenable Travis CI jobs accidentally disabled in the last commit
Restore all the builds for the "normal" architectures.
2020-04-19 22:55:35 +02:00
Vadim Zeitlin
17c7469af3 Switch to manual method of LXC "detection"
Just define wxLXC environment variable for the builds using LXC on
Travis.
2020-04-07 17:15:04 +02:00
Vadim Zeitlin
3afc68bb63 Remove iOS port build from Travis, will do separately later
[skip appveyor]
2020-04-07 13:34:31 +02:00
Vadim Zeitlin
8932fd2726 Test more architectures and iOS port on Travis
[skip appveyor]
2020-04-07 02:32:18 +02:00
Maarten Bent
0833c8b861 Disable webview in GTK3 build on TravisCI
It does not pass the tests.
2019-11-29 01:11:37 +01:00
Vadim Zeitlin
342494e5f4 Only run GUI tests for the selected wxGTK builds
The tests are known to fail for the other tested ports, so don't enable
them for now.

Also, using a special environment variable allows to detect when the
test is being run under Xvfb, which behaves differently from the normal
X server in some cases.
2019-07-18 17:45:20 +02:00
Maarten Bent
55c50f36dc Disable webview in static build
Prevent link errors of test_gui with webview libraries.
2018-11-04 23:44:06 +01:00
Maarten Bent
d3628d8373 Build more toolkits with Travis CI 2018-09-19 22:00:01 +02:00
Tobias Taschner
4ec4a41b1b
Remove additional macOS flags for cmake build in Travis CI
These flags where added as a workaround in
bdcf21a5bd and should no longer be required
2018-02-08 11:01:47 +01:00
Maarten Bent
683185aee1 Explicitly mention build environments for Travis CI
This removes a duplicate build on Travis, cause by a change of the
default build environment.
2018-02-04 00:33:08 +01:00
Vadim Zeitlin
bdcf21a5bd Explicitly use libc++ in C++11 CMake macOS builds on Travis CI
Just using -DCMAKE_CXX_STANDARD=11 isn't enough, as it doesn't seem to
use C++11 for configuration checks, so set CMAKE_CXX_FLAGS explicitly
too.
2018-01-25 12:22:34 +01:00
Vadim Zeitlin
c66c9c5ae6 Merge branch 'build_cmake' of https://github.com/TcT2k/wxWidgets
Add CMake-based build system.

Merge the original branch without any changes except for resolving the
conflict due to moving the contents of .travis.yml to a separate file by
propagating the changes done in this file since then to the new script
and rerunning ./build/update-setup-h and ./build/cmake/update_files.py
to update the file lists changed in the meanwhile.

Closes https://github.com/wxWidgets/wxWidgets/pull/330
2017-12-09 15:09:47 +01:00
Vadim Zeitlin
2ee40f8a60 Add a build using GTK+ 3 to Travis
We need to test both wxGTK2 and wxGTK3 builds.
2017-11-22 02:33:53 +01:00
Vadim Zeitlin
fc8b7e4e61 Build bundled 3rd party libraries on Travis
Configure Travis CI to run at least one build using the bundled versions
of third party libraries to make sure this is tested too.
2017-11-10 17:43:01 +01:00
Vadim Zeitlin
b8881c1b8e Test UTF-8 build on Travis CI
Instead of adding a separate build, just reuse the existing monolithic
build to also use UTF-8: this is unlikely to miss any problems with the
monolithic build that would be found without using these options, but
also gives us a chance to find the problems in UTF-8 build, both at
compile-time and in the test suite.
2017-11-03 23:11:33 +01:00
Vadim Zeitlin
c363ce8500 Don't use "-t" option when running tests any longer
This option now lists the available tags instead of showing the timing
information.

We could use Catch "--durations yes" option, but it results in too much
output, so for now just run the tests with default verbosity.
2017-11-02 01:53:29 +01:00
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
Tobias Taschner
8e1a4799ac
Add CMake to Travis-CI 2017-01-03 20:56:50 +01:00
Tobias Taschner
8b6ffa4066
Move travis-ci script to shell file
This will allow easier integration for testing other build systems
2017-01-03 20:56:40 +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