Commit Graph

32 Commits

Author SHA1 Message Date
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