Commit Graph

41 Commits

Author SHA1 Message Date
PB
346a31d545 Remove TravisCI mentions from build scripts
Travis CI is not used anymore, remove its mentions from the build scripts.
2021-07-15 13:53:12 +02:00
Vadim Zeitlin
b39cf5da32 Don't build for Cygwin in AppVeyor CI builds
This platform is not really supported and building for it takes the
longest, so don't waste time on it.
2021-07-11 17:27:55 +02:00
Vadim Zeitlin
82d2f1d647 Ignore changes to a script not used under AppVeyor
This file is only used by GitHub and Travis CI, so don't rebuild
AppVeyor needlessly.
2021-04-05 16:34:40 +02:00
Vadim Zeitlin
3c58e79339 Don't start CI builds for the changes to message catalogs only
We currently don't use these files in the existing builds.

It might be a good idea to add another GitHub Action workflow checking
the message catalogs compilation that would be executed _only_ for the
changes to them, but this can/will be done later.
2021-03-07 23:48:25 +01:00
PB
783244af21
Do not trigger build by change in any MD file
Co-authored-by: VZ <vz-github@zeitlins.org>
2021-03-05 19:41:05 +01:00
PB
93773b0b65 Add more ignored paths for AppVeyor CI
AppVeyor CI builds for Microsoft Windows only. Therefore, do not start builds
for changes made only in dfb, gtk, gtk1, motif, unix, and x11 folders.

Additionally, do not start the builds when only an *.md file in the root
folder changes.

Lastly, ignore all changes in the demos folder: Demos are not built by AppVeyor at all.
2021-03-02 20:21:21 +01:00
Vadim Zeitlin
79779fec1c Correct test for MSYS2/Cygwin in AppVeyor script
There is no "compiler" environment variable, use TOOLSET instead.
2021-02-01 00:51:28 +01:00
Vadim Zeitlin
b016088493 Fix replacement in setup.h done in AppVeyor builds
We can't write to the file we're reading from, so use a temporary
variable.
2021-02-01 00:50:55 +01:00
Vadim Zeitlin
d1810b0dce Remove setup0.h files
Simplify things by putting setup.h files themselves under version
control and getting rid of setup0.h ones.

The initial motivation for using separate setup0.h files was to allow
having local changes to setup.h, but with Git there is a simple way to
do it by using "git update-index --skip-worktree include/wx/msw/setup.h"
for example, so we don't really need setup0.h any more and dropping them
makes things simpler.
2021-01-31 19:02:56 +01:00
Vadim Zeitlin
04b9cee918 Fix testing for curl success in PowerShell
Of course doing the natural thing doesn't work in PowerShell.
2021-01-27 11:30:18 +01:00
Vadim Zeitlin
d59d51e0f2 Use curl command, not PowerShell alias
Aliasing curl to something completely different (Invoke-WebRequest) is
just evil, yet this is what Powershell 3+ does.
2021-01-27 11:12:15 +01:00
Vadim Zeitlin
99d088eec3 Add Python scripts directory to PATH to avoid pip warnings
They're really too annoying.
2021-01-27 11:11:20 +01:00
Vadim Zeitlin
cf65f47add Revert "Suppress pip warning about installing scripts not in PATH"
This reverts commit 2eaa7a21b0 because the
--no-warn-script-location option only exists in Python 3.9+ apparently
and we don't want to require such a new version just for this.
2021-01-27 10:49:58 +01:00
Vadim Zeitlin
6a170343ae Disable the tests if launching httpbin failed for some reason
This is not ideal, but will have to do for now.
2021-01-27 10:04:31 +01:00
Vadim Zeitlin
4bdbbeca4a Redirect httpbin error output to the log file too
This can be at least as useful as stdout.
2021-01-27 10:04:09 +01:00
Vadim Zeitlin
b394bb1b87 Show httpbin output if the test failed, not if it succeeded
This output is mostly useful for diagnosing errors, so it's not very
useful to show it only after successful test completion in after_test
command.
2021-01-27 10:01:53 +01:00
Vadim Zeitlin
2eaa7a21b0 Suppress pip warning about installing scripts not in PATH
We don't care about it here, as we use full paths anyhow.
2021-01-27 09:49:03 +01:00
Vadim Zeitlin
c625d2c001 Try using Python 3 with httpbin
Use 3.5 which is currently available on all AppVeyor Windows images, see
https://www.appveyor.com/docs/windows-images-software/#python
2021-01-27 09:29:02 +01:00
Vadim Zeitlin
623c4811ab Run httpbin in appveyor.yml to be able to stop it later
There is no way to stop a background task simply and safely with
cmd.exe, but in appveyor.yml we can use PowerShell, so use its job
support to do it instead.

This is important because AppVeyor waits until all jobs launched by the
script terminate, so without stopping the background job all builds
waited for an hour before timing out.
2021-01-26 22:50:43 +01:00
Maarten Bent
71c4653b94 Enable wxUSE_WEBVIEW_EDGE in an AppVeyor test 2021-01-19 22:43:08 +01:00
Vadim Zeitlin
daa6eca2e7 Skip AppVeyor builds when GitHub workflows are modified
Don't waste AppVeyor CI resources unnecessarily.
2020-09-28 02:56:55 +02:00
Vadim Zeitlin
bba585eebb Disable AppVeyor rebuilds on Mac files changes too
As long as we don't test under AppVeyor, there is no need to do anything
there when only Mac-specific files are changed.
2020-04-22 17:18:37 +02:00
Vadim Zeitlin
1bc33f3d0c Ignore more Travis CI files on AppVeyor
Avoid unnecessary AppVeyor rebuilds when Travis build files are changed.
2020-04-22 15:25:31 +02:00
Vadim Zeitlin
694f0c59e7 Don't rebuild on AppVeyor if only .travis.yml was changed
Just avoid the unnecessary rebuilds.
2020-04-21 23:05:38 +02:00
Maarten Bent
e31938c314 Revert "Temporarily switch to using previous AppVeyor MSW image"
This reverts commit 235972bc6e.
2019-08-03 21:09:22 +02:00
Vadim Zeitlin
235972bc6e Temporarily switch to using previous AppVeyor MSW image
The latest image uses msys2 gcc 9.1 which crashes while compiling our
tests, see e.g.

https://ci.appveyor.com/project/wxWidgets/wxwidgets/builds/26445788/job/ovajab6v4ltp5h70
2019-08-03 13:50:24 +02:00
Maarten Bent
f7d1f46144 Build WXQT toolkit with AppVeyor 2018-09-30 17:23:58 +02:00
Maarten Bent
bf823e0419 Check if AppVeyor should abort before cloning the repo 2018-09-30 17:23:58 +02: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
cf02d15646 Merge branch 'appveyor-tests'
Fix several problems in tests under MSW (mostly with MinGW) and enable
building and running them on AppVeyor CI.
2017-11-25 19:18:14 +01:00
Vadim Zeitlin
b29aa3f785 Run unit tests on AppVeyor too
Launch the tests after building them.
2017-11-25 17:30:51 +01:00
Vadim Zeitlin
f10bd1279d Remove the correct directory from PATH for MinGW AppVeyor builds
We need to remove the directory containing sh.exe from the PATH as
otherwise mingw32-make seems to use it and not cmd.exe for executing the
commands in the makefile, but the wrong directory was being removed in
appveyor.yml, having no effect.

Fix this and undo 5f2ccde269 which
compensated for it by (almost) clearing the PATH entirely which, in
turn, broke one of our unit tests (and could break other things in the
future, as having an empty PATH is rather unexpected).

Also use the full path for head program now that its directory is not in
the PATH any more. Alternative could be to use PowerShell, but while

powershell -Command "'gcc','mingw32-make','ar'|%%{ iex \"$_ --version\"|select -first 1 }"

does work, it looks really ugly, so avoid it for now.

See https://github.com/wxWidgets/wxWidgets/pull/142

See #17274.
2017-11-25 17:28:42 +01:00
Vadim Zeitlin
075ebbe12a Skip AppVeyor CI builds on documentation-only changes
There is no need to rebuild everything if only the documentation files
have changed.

Unfortunately there doesn't seem to be any way to do the same thing for
Travis CI yet, see https://github.com/travis-ci/travis-ci/issues/6301
2017-11-25 10:47:50 +01:00
Vadim Zeitlin
e35aff4684 Checkout submodules in Appveyor builds
Unlike Travis CI, Appveyor doesn't do this automatically, but we will
need them soon (the currently existing Catch submodule is not used by
Appveyor builds but, arguably, should be too).
2017-11-10 17:44:03 +01:00
Vadim Zeitlin
70c057ed8a Revert "Test using previous build platform for AppVeyor"
This reverts commit b05d864f5e as it
didn't help with Python-related build failures, finally.
2017-11-03 16:58:33 +01:00
Vadim Zeitlin
b05d864f5e Test using previous build platform for AppVeyor
Try fixing Python-related build failures in Cygwin build by using the
previous version of the image, before the latest update.
2017-11-01 23:47:18 +01:00
Tobias Taschner
9338e68371
Add CMake to Appveyor
Build with “Visual Studio 12 (2013)” 32-bit Release DLLs
Other configurations can later be added in the appveyor.yml
2017-01-03 20:53:12 +01:00
Maarten Bent
d891e2708c Stop AppVeyor build if a newer PR commit exists
As suggested in https://github.com/appveyor/ci/issues/38#issuecomment-70628826.

Closes https://github.com/wxWidgets/wxWidgets/pull/196
2016-02-03 22:42:47 +01:00
Bryan Petty
3de5077c7a Fixed missing wxUSE_STL config for MinGW AppVeyor build. 2015-11-04 19:07:15 -07:00
Bryan Petty
8fc8b6f110 Quick fix to version string in AppVeyor config. 2015-11-04 07:33:43 -07:00
Bryan Petty
2090988484 Added initial AppVeyor config. 2015-11-04 07:31:05 -07:00