Commit graph

62 commits

Author SHA1 Message Date
William S Fulton
590de1642e MS_WIN64 no longer needed on Appveyor MinGW for Python
Not sure why - 64bit must be default now.
Fixes Appveyor and Python C++20 tests as the -std=c++20 flags were
not being passed to the compiler.
2022-07-31 01:02:08 +01:00
William S Fulton
dba941120d Enable C++11 testing by default, Appveyor testing scaled back
./configure now enables C++11 and later C++ standards testing by default (when
running: 'make check').

The options to control this testing are the same:

  ./configure --enable-cpp11-testing
  ./configure --disable-cpp11-testing

But the former is now the default and the latter can be used to turn off C++11 and
later C++ standards testing.

Reduce the number of tests on Appveyor by only running 32-bit (x86) using
latest Visual Studio (2022). Drop 32-bit Cygwin and MinGW testing.
Add C# and Java testing on VS2022 and drop Java testing on older Visual Studio.
This reduces the really long run times on Appveyor, however, VS2022 is
somewhat slower than older compilers.
2022-04-06 19:45:31 +01:00
Olly Betts
b2c58115d7 Fix previous commit
Revert changes inadvertently included, and fix `=` to `==`.
2022-03-20 19:44:23 +13:00
Olly Betts
029ddab8b5 [ci] Try to fix failing appveyor python builds 2022-03-20 18:42:50 +13:00
Olly Betts
96b2915960 [ci] appveyor.yml: Only set PY3 if SWIGLANG is python
See #2235
2022-03-19 09:06:50 +13:00
William S Fulton
06364ae749 Merge remote-tracking branch 'wsfulton/appveyor-vs2022'
* wsfulton/appveyor-vs2022:
  Cygwin testing - test python3 (3.9) instead of python-2.7
  Last resort to use /usr/lib in python linking
  mingw - install python from pacman
  Fix detection of python .lib file for 2 digits in minor version
  cpp11_result_of testcase and result_of deprecation in c++17
  Testcase correction for using declaration and members
  Fix compiler warning using Java std::wstring
  Appveyor changes to use Visual Studio 2022 image
2022-03-17 08:23:13 +00:00
Olly Betts
c7af8eabb3 Default to running tests with Python 3
Specify PY2=1 to use Python 2.

See #1779
Closes #2235
2022-03-17 18:55:10 +13:00
William S Fulton
40f711d11e Cygwin testing - test python3 (3.9) instead of python-2.7 2022-03-16 23:05:35 +00:00
William S Fulton
c0f20ff7e0 mingw - install python from pacman
Python 3.8 stopped shipping libpython38.a with the main Python distribution
which is required for linking using mingw.
2022-03-16 22:54:38 +00:00
William S Fulton
fe45a688ef Appveyor changes to use Visual Studio 2022 image
- Mingw/MSYS2 now running on VS2022 image updating to python-3.10 and jdk-17.
- Added Visual 2022 C++ compiler, version 19.3 to build (python-3.10) on VS2022 image.
- Update cygwin to use VS2022 image.
2022-03-16 22:32:33 +00:00
Andrew Rogers
f822bbf382 Fix PCRE2 macro used in AppVeyor testing. 2022-03-07 14:28:53 +13:00
William S Fulton
da8eb35a51 Call -pcreversion during appveyor testing 2022-01-21 18:35:37 +00:00
Julien Schueller
15515f390c PCRE2
Closes #2120
2022-01-21 07:46:08 +01:00
William S Fulton
8c608d646c Fix Appveyor mingw builds - install autotools 2022-01-18 21:03:21 +00:00
William S Fulton
ac9f819f6e Don't run appveyor when modifying Github Actions CI files 2021-11-16 19:48:22 +00:00
Vadim Zeitlin
2b540ae2f5 Merge branch 'appveyor-ci-improvements'
Cancel builds of non-latest PR version on AppVeyor and other minor
improvements.

See #2085.
2021-10-14 00:26:54 +02:00
Vadim Zeitlin
1f33118077 Don't bother building out of date PR versions on AppVeyor
Exit early if there is version of the PR newer than the one that we are
about to start building, to avoid wasting 3.5 hours of AppVeyor build
time on the outdated PR versions.

The snippet doing this was copied from

https://github.com/appveyor/ci/issues/38#issuecomment-70628826

(thanks to Tony Kelman). An alternative to doing this could be enabling
the "Rolling builds" option in the AppVeyor UI, see

https://www.appveyor.com/docs/build-configuration/#rolling-builds

but this method seems to work well in practice and is more explicit.
2021-10-03 16:17:33 +02:00
Vadim Zeitlin
7744425c21 Ignore change to files not affecting the build in appveyor.yml
There is no need to rerun the CI builds if only the docs, changelog or
anything GitHub-related changes.
2021-10-03 16:14:21 +02:00
Olly Betts
bc6fdfcd0d Restore full appveyor config
Sorry, failed to undo this temporary change before merging the
gsoc2017-php7-classes-via-c-api branch.
2021-05-05 16:06:40 +12:00
Olly Betts
c87047fd39 Merge branch 'master' into gsoc2017-php7-classes-via-c-api 2021-05-03 16:17:02 +12:00
William S Fulton
bbb49a203e Disable Appveyor cygwin which has started to fail 2021-04-26 22:32:52 +01:00
William S Fulton
ad876e8189 Appveyor Visual c++11 testing
Test cccl c++11 code
Upgrade cccl-1.0 to cccl-1.2 for -std command line option support
2021-04-26 22:32:52 +01:00
Olly Betts
f8c7dbb676 [ci] Reduce appveyor to one MSVC Python build
Building once with a different compiler on a different platform is
useful, but running multiple builds for languages I'm not working
on is a waste of donated CPU time, and having CI reported as failing
because the Python builds on cygwin aren't currently working is
downright unhelpful.
2021-04-18 08:07:20 +12:00
William S Fulton
59af47d3df Appveyor MinGW only works now on Visual Studio 2019 image 2021-03-20 09:35:25 +00:00
William S Fulton
48517625a8 Appveyor yaml correction 2021-03-20 00:55:58 +00:00
William S Fulton
32df3a70ee Remove redundant Appveyor allow_failures 2021-03-20 00:53:05 +00:00
William S Fulton
22e82c2111 Appveyor Windows testing changes
- Update jdk1.8->1.15 for x64 testing
- Add Visual Studio 2017 (vc++ 15) testing
- Add Visual Studio 2019 (vc++ 16) testing
- Add python-3.7 and python-3.8 testing
2021-03-19 21:28:08 +00:00
William S Fulton
2861f01e3d Restore MinGW testing on Appveyor
Replace Python-2.7 testing with Java testing on MinGW
2021-03-19 09:25:52 +00:00
William S Fulton
d16d6054b5 Appveyor - show cmake version 2021-03-07 11:42:59 +00:00
Michel Zou
167164885d CI: Warnings as errors 2021-03-07 11:20:39 +00:00
Michel Zou
3d049f6b2a Misc fixes 2021-02-26 17:07:59 +01:00
Michel Zou
72aefd2207 Enable cmake build in CI 2021-02-25 10:50:41 +01:00
William S Fulton
6358510c57 Travis: disable MinGW testing
MinGW server seems to be offline
2021-02-19 21:50:43 +00:00
William S Fulton
4546aae41d Add missing python cygwin build in appveyor.yml 2020-06-13 14:04:50 +01:00
William S Fulton
148f6b48fc Move python cygwin to Appveyor allow_failure list. 2020-06-13 13:56:28 +01:00
William S Fulton
d3fa519a9c Stop running cygwin python test on Appveyor
Currently broken, unable to find header files.
2020-06-12 23:08:00 +01:00
William S Fulton
8bf2f473f4 Revert "Allow cygwin to fail on Appveyor"
This reverts commit dbb88876e6.
2020-06-12 23:06:40 +01:00
William S Fulton
dbb88876e6 Allow cygwin to fail on Appveyor 2020-06-08 20:52:10 +01:00
William S Fulton
3d98179fd3 Temporarily remove broken Appveyor Python3 testing 2019-11-26 19:45:08 +00:00
William S Fulton
b55ce0cf84 Fix appveyor cygwin Python testing
Cygwin python package that needs to be installed has changed from
python-devel to python2-devel.
2019-07-05 22:45:31 +01:00
William S Fulton
be019a03ce Appveyor testing - make sure language tests are not mistakenly skipped 2019-05-02 19:15:49 +01:00
William S Fulton
902f3f0ac5 Appveyor mingw config changes to test Python
Set paths correctly for msys2 + mingw. With this correction, there is no
need to override the default gcc.

Provide a way to specify the name of the python interpreter using
a WITHLANG env variable. Needed where the native python3 executable is
called python.exe which is needed and not MinGW's pre-installed python3.exe.
2018-11-20 19:47:42 +00:00
William S Fulton
72fc013847 Revert "Stop testing Python on Appveyor msys/mingw"
This reverts commit 6fac581a2b.
2018-11-20 19:47:42 +00:00
William S Fulton
81b0abaf0b Fix MinGW 64bit native windows Python linking problems
Fixes linker error:
  undefined reference to `__imp_Py_InitModule4'
2018-11-20 19:47:42 +00:00
William S Fulton
f09952e30c Fixes for appveyor image changes
Appveyor image has removed older boosts. Use latest - 1.67 available.
2018-05-17 08:16:04 +01:00
William S Fulton
0d5719684f Appveyor cl compiler warning fixes during configure 2018-05-06 10:37:07 +01:00
William S Fulton
6fac581a2b Stop testing Python on Appveyor msys/mingw
I can't get python2 nor python3 to work with recent platform changes
at Appveyor. Just compile SWIG binary for now.
2018-03-20 07:44:00 +00:00
William S Fulton
37d90ca3ec Appveyor testing- install python-devel package
Needed for newer versions of cygwin on Appveyor in order to run Python tests
2017-05-15 18:42:12 +01:00
William S Fulton
f5299fba82 Appveyor Windows testing enhancements
- Test python 3.6 instead of 3.5 under visual c++
- Speed up using 2 make jobs to use both available CPUs
- Test cygwin 32 bit and 64 bit C++11 (python only)
- Test msys2/mingw 32 bit and 64 bit C++11 (python only)
- Remove python 2.7.9 vc++ workaround as we're testing 2.7.10 now
2017-02-04 19:18:54 +00:00
William S Fulton
f42b261b73 Use Visual Studio 2015 instead of 2012 as default compiler for Appveyor testing 2016-10-30 13:54:32 +00:00