Commit Graph

79 Commits

Author SHA1 Message Date
Vadim Zeitlin
577656a7d7 Don't build samples in ANSI Travis CI build
We don't need to waste build time on this and it's not really a problem
if some samples don't compile without Unicode anyhow.
2020-10-18 20:14:27 +02:00
Vadim Zeitlin
284f5af192 Add ANSI wxGTK Travis CI build
Make sure this build is not broken again for as long as it's still
supported.
2020-10-18 13:17:37 +02:00
Vadim Zeitlin
5dd3b733bd Test building without 3.0 compatibility on Travis CI too
This will test errors like the one fixed by the previous commit by
testing that samples and tests still build without 3.0 API.
2020-09-01 15:07:31 +02:00
Scott Talbert
64b7406ede Re-enable webview on GTK3 Travis build 2020-07-23 21:52:45 -04:00
Vadim Zeitlin
39ac04b0d0 Allow wxGTK/ARM build failures on Travis CI
ARM VMs/containers seem to be broken on Travis right now and all builds
fail, sometimes without even starting, so ignore them, at least for now.
2020-07-11 13:41:38 +02:00
Vadim Zeitlin
a3f61f973d Merge branches 'travis-warning-errors' and 'travis-cleanup'
Fail CI builds if any warnings (other than those given by an explicit
preprocessor #warning directive) are encountered.

Also cleanup Travis config a bit.

See https://github.com/wxWidgets/wxWidgets/pull/1933,
    https://github.com/wxWidgets/wxWidgets/pull/1935
2020-07-07 12:45:58 +02:00
Vadim Zeitlin
9fde10f53e Use #!/bin/bash for Travis build script which requires bash
It uses arithmetic expansion and, now, arrays, neither of which exists
in POSIX sh.
2020-07-07 12:43:12 +02:00
Vadim Zeitlin
30582f4be4 Disable OpenGL support in wxQt build
It's not implemented anyhow and results in warnings about
GK_GLEXT_VERSION redefinition due to include both the standard
GL/glext.h and Qt QtGui/qopenglext.h (which seems to be a slightly
different version of the same file).

This probably should be fixed by not including GL/gl.h at all, but for
now just disable it.
2020-07-07 12:42:40 +02:00
Vadim Zeitlin
1cdfdcc3a8 Allow warnings in iOS build, there are too many of them
Mostly there are warnings about unused parameters because of
unimplemented functionality, but we don't have a simple way to disable
just those, so just don't use -Werror with this build at all.
2020-07-06 18:01:38 +02:00
Vadim Zeitlin
c4152869f5 Split wxMAKEFILE_FLAGS in separate CXX/LDFLAGS variables
This will allow appending extra CXXFLAGS to use with make in the
upcoming commit.
2020-07-06 18:01:38 +02:00
Vadim Zeitlin
cfaec20ae3 Specify default Travis CI build platform explicitly
This doesn't really change anything right now, as Ubuntu Xenial is used
by default anyhow, but removes the last message from the validator at
https://config.travis-ci.com/explore so still worth having.
2020-07-06 17:50:39 +02:00
Vadim Zeitlin
4cb949d9b5 Use "jobs" synonym for the old "matrix" keyword for Travis CI
Get rid of another validator notice.
2020-07-06 17:45:58 +02:00
Vadim Zeitlin
76e16ad372 Remove deprecated "sudo" key from Travis CI configuration
This doesn't seem to do anything any more.
2020-07-06 17:45:34 +02:00
Vadim Zeitlin
cb9e1f4ac0 Only notify about Travis build status for the main repository
It's annoying to receive notifications about build status in the forks.
2020-07-06 17:45:03 +02:00
Vadim Zeitlin
b48515d5cc squash! Treat warnings as errors in Travis CI builds
Add wxALLOW_WARNINGS which can be set to prevent this from happening for
the ports where we don't want to avoids warnings anyhow because they
indicate real problems in the code, such as wxDFB.
2020-07-06 12:44:25 +02:00
Vadim Zeitlin
d3812ab091 Remove explicit C++11 options from Xcode 7.3 Travis CI build
They're not needed any longer as C++11 is used by default in wxOSX
builds if nothing else is specified.
2020-07-05 23:41:12 +02:00
Stefan Csomor
21edba705d updating xcode 2020-07-04 22:45:02 +02:00
Maarten Bent
e4437c4974 Add iOS CMake build to Travis CI
Use the following CMake flags:
-DCMAKE_SYSTEM_NAME=iOS - for specifying it is an iOS build
-DCMAKE_FIND_ROOT_PATH=/usr/local - dir to search for the built wxWidgets libraries
-DCMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_ALLOWED=NO - don't require signing app packages
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.12 - specify a target so both the libraries and sample will use the same architecture

Also use the code signing flag when testing precompiled header support.
Don't build the default samples, widgets sample has features that are not supported by the iOS build.

Xcode seems to rebuild the libraries when installing, so call CMake only once.
2020-06-18 21:20:21 +02:00
Vadim Zeitlin
216c14d346 Merge branch 'travis-other-archs' into window-id
Minor fixes for testing PPC/s390 architectures on Travis CI.

See https://github.com/wxWidgets/wxWidgets/pull/1844
2020-05-09 23:37:43 +02:00
Stefan Csomor
da48b9e45d
adding an iOS build to travis (#1847)
* fixing compilation of tests that cannot build

bracket code with the corresponding wxUSE… macros

* adding directive for iOS

* adding a switch for skipping the run - not the build of tests

right now I don’t know yet, how to run the test binary in the iOS simulator, but building it is still a good test in itself

* adding skipping of tests

* increasing minimum deployment to get proper c++17 support

* using --disable-sys-libs, restoring other targets

even when the zlib in -isysroot is used, due to deployment on lower iOS versions inflateValidate may not be available and crash. The guards are evaluated using macros from the zlib from the SDK, not from the lowest version supported.
2020-05-08 08:01:56 +02:00
Stefan Csomor
665bed8521 skipping gui test and samples for now on ios 2020-05-07 13:01:43 +02:00
Stefan Csomor
396eafd15f correct option name 2020-05-07 11:17:16 +02:00
Stefan Csomor
ccf241ef95 force built-in tiff on ios 2020-05-07 10:59:52 +02:00
Stefan Csomor
f6bb4aa6e2 copy paste error with tripple dash 2020-05-07 09:13:22 +02:00
Stefan Csomor
50b1f8b183 first attempt at ios travis 2020-05-07 08:29:05 +02:00
Vadim Zeitlin
b30dfcc8d5 Ignore failures in PPC/s390 builds
They fail just too often for some infrastructure flakiness reasons and
constantly result in false positives.
2020-05-06 22:47:26 +02:00
Vadim Zeitlin
7e5c8915c5 Changes labels of wxBase builds on PPC/s390 architectures
We're only building wxBase there, not the full wxGTK.
2020-05-06 22:44:43 +02:00
Maarten Bent
d3d1a91620 CMake: change default GTK version from 2 to 3 2020-05-06 01:52:27 +02:00
Vadim Zeitlin
0397da2a8f Use ld --no-as-needed in Travis Ubuntu 18.04 wxGTK build
This works around a problem in our build system which doesn't set rpath
correctly when linking our own libraries, which means that "qa" library,
for example, doesn't record the path to its "xml" library dependency.

We already worked around this by linking any program using "qa" with
"xml" too, however this doesn't do anything if "--as-needed" flag is in
effect, as is the case by default under Ubuntu 18.04, so make our
workaround work by forcefully disabling this flag.

Real solution would be to use -Wl,-rpath correctly and then stop linking
with "xml" library unnecessarily in e.g. test_gui bakefile.
2020-04-23 02:59:45 +02:00
Vadim Zeitlin
f1ee627736 Update Travis testing script to work for non-GUI builds too
Skip parts that don't work in this case.
2020-04-22 21:00:28 +02:00
Vadim Zeitlin
7cfe4ee9f2 Disable GUI parts build for PPC and S/390 Travis platforms
People are unlikely to use wxGTK on those anyhow, and it takes an
awfully long time to build, especially on PPC.
2020-04-22 18:26:02 +02:00
Vadim Zeitlin
cc86204c98 Change wxOSX CMake build name to include "CMake" 2020-04-22 17:54:01 +02:00
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