Jon Turney
8f07c1a2b5
Add path filter to azure pipelines trigger
...
This restricts the pipeline from running on 'non-code' pushes and PRs in
the same way that GitHub workflows which run project tests are (although
the syntax is different, and must be made more explicit as wildcards
aren't supported).
2021-07-10 23:12:10 +03:00
Daniel Mensinger
765aff5a42
coverage: Enable coverage reports
2021-06-22 21:05:11 +03:00
Jon Turney
0accc3b72d
Move Cygwin tests to a GitHub workflow ( #8829 )
...
* CI: Don't run cross-only test when other workflows are changed
* CI: Move Cygwin test run from Azure Pipelines to GitHub workflow
Also review installed package list, dropping detritus from 42792554
, not
removed in f5ed85d7
.
2021-06-10 19:42:02 +03:00
Jon Turney
91aeae558d
Revert "ci: Disable pytest-xdist on cygwin"
...
This reverts commit dce60c8f58
.
2021-05-20 23:37:15 +01:00
Nirbheek Chauhan
540deb538b
ci: Fix pip installation in Cygwin on Azure
...
Python3 in Cygwin is now Python 3.8
2021-01-09 10:32:57 +05:30
Christoph Reiter
f000fa407d
CI: Port MSYS2 from azure-pipelines to github actions
...
This uses the msys2/setup-msys2@v2 to set up MSYS2
2020-11-04 18:13:58 +02:00
Jussi Pakkanen
bca90722ec
Bump minimum supported Python version to 3.6. Closes #6297 .
2020-10-30 11:18:11 +02:00
Yonggang Luo
e873e64b40
dependencies/curses: Add way to testing curses on msys2.
2020-09-29 14:58:32 -07:00
Christoph Reiter
b872eea27f
CI: don't update MSYS2 [skip ci]
...
This should use the package database from the installer,
from the release choco provides and result in fewer potential
changes overall.
2020-09-15 01:51:38 +03:00
Jon Turney
6a56291a2a
Add a test run of MSVC ARM64 cross on Windows x64
...
Add a cross-file for MSVC UWP ARM64.
Bump cidata tag to get an updated install.ps1 script (run by run.ps1)
which sets the vcvars environment correctly when cross-compiling.
Since arranging the correct environment for simultaneous cross and
native 'cl' use is hard, this is test run uses '--cross-only' so we
don't require a native compiler.
Extend '--cross-only' so it also explicitly uses a machine file which
makes all build machine compilers unusable.
2020-09-11 20:45:09 +00:00
Nirbheek Chauhan
dce60c8f58
ci: Disable pytest-xdist on cygwin
...
Fixes breakage when installing psutil:
Collecting psutil>=3.0.0
Downloading psutil-5.7.2.tar.gz (460 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/cygdrive/c/Users/VSSADM~1/AppData/Local/Temp/pip-install-dajoe3xd/psutil/setup.py'"'"'; __file__='"'"'/cygdrive/c/Users/VSSADM~1/AppData/Local/Temp/pip-install-dajoe3xd/psutil/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base '/cygdrive/c/Users/VSSADM~1/AppData/Local/Temp/pip-pip-egg-info-1ei2_y44'
cwd: /cygdrive/c/Users/VSSADM~1/AppData/Local/Temp/pip-install-dajoe3xd/psutil/
Complete output (1 lines):
platform cygwin is not supported
2020-08-15 10:29:07 +00:00
Nirbheek Chauhan
a672ffa9f8
ci: Increase timeout for vs jobs to 120
...
vc2017x64vs and vc2019x64vs sometimes timeout because they exceed the
60 min default limit.
2020-07-13 15:28:38 +00:00
Nirbheek Chauhan
6aabc205f7
ci: Workaround MSYS2 update breakage
...
Also kill all MSYS2 processes after the first update, and constantly
print update status.
2020-06-25 00:35:01 +00:00
Nirbheek Chauhan
e9dbe82d3e
ci: Bump the cygwin timeout to 120 minutes
...
The default timeout is 60 min and we're timing out, but the maximum we
can have is 6 hours. Bump it to 120 min for now.
2020-06-25 00:35:01 +00:00
Cary Converse
f3e2e4c63e
add missing gcovr dependencies for msys2 ci
2020-06-17 23:03:45 -04:00
Cary Converse
5bb7f743fd
add missing gcovr dependencies for cygwin ci
2020-06-17 23:03:25 -04:00
Cary Converse
a198e5d191
coverage: llvm-cov support
2020-06-17 23:02:50 -04:00
Nirbheek Chauhan
804cefc94c
ci: Remove PostgreSQL from PATH
...
It's one of the causes of the cmake test failures, and it's also
plaguing the VS2019 jobs now because of the image update.
2020-06-17 16:51:58 +00:00
Nirbheek Chauhan
e121942fcd
Disable failing cmake jobs on VS2017
...
These only fail when building with msvc/clang-cl on the VS2017-Win2016
image. See: https://github.com/mesonbuild/meson/issues/7307
2020-06-14 08:42:16 +00:00
Jon Turney
bd7122beed
azure: Run gtkdoc tests for Cygwin
2020-06-13 18:48:35 +00:00
Dan Kegel
c82c74cae8
ci: run some builders with response file threshold set to zero
2020-06-05 14:15:32 -07:00
Dylan Baker
91050e0c7c
ci: Add python-jsonschema
...
Which is used to validate the json schema files in the various test
directories in a unit test.
2020-04-17 10:49:08 -07:00
Jon Turney
0fa70325ed
Revert "azure: Workaround MSYS2 PCH test failures"
...
This reverts commit 5f9dccb9bc
.
2020-03-17 00:12:34 +02:00
Nirbheek Chauhan
36b573822a
azure ci: Test x86 Visual Studio builds again, closes #6604
...
This was dropped when the VS2015 images were removed from Azure.
2020-02-25 23:06:29 +02:00
Daniel Mensinger
96f5d4e455
boost: Updated tests
2020-02-20 13:38:45 +01:00
Jussi Pakkanen
93b9a3ed29
Remove vs2015 jobs as Azure will stop supporting it.
2020-02-09 20:10:21 +02:00
Nirbheek Chauhan
bd17c9ad4f
tests: Add a unit test for checksums
...
Adds a CI dependency on the `pefile` python module.
2020-01-22 19:34:05 +05:30
Daniel Mensinger
9c72d0fdb2
azure: Fix vs2015
2019-12-09 17:19:01 +01:00
Michael Hirsch, Ph.D
0435691e83
lint+mypy: move to github actions
...
actions: run if .yml itself changed
2019-11-17 23:56:46 +02:00
Michael Hirsch, Ph.D
3bbd065576
fs: use pathlib.Path, add type hint check
2019-11-17 00:17:00 -05:00
Michael Hirsch, Ph.D
6e708208dd
CI: add initial type annotation checking
2019-11-07 22:18:21 +02:00
Jon Turney
94564b8f1a
azure: Install python[23]-devel packages on Cygwin
...
Install python[23]-devel packages on Cygwin, so that python tests which
require that can run.
(Only the default version of python (currently 3.6) provides the
/usr/lib/pkgconfig/python3.pc file we are looking for so also update to
that version)
2019-10-01 21:12:04 +03:00
Nirbheek Chauhan
5f9dccb9bc
azure: Workaround MSYS2 PCH test failures
...
Compiler version is hard-coded so that we remember to revisit this
when the GCC version is updated.
Closes https://github.com/mesonbuild/meson/issues/5807
2019-09-01 22:58:33 +03:00
Nirbheek Chauhan
96088d3e51
tests: Detect ninja v1.9 and disable timestamp hack
...
The high-res timestamp PR by QuLogic was merged in v1.9, so we can
switch back to upstream ninja.
2019-09-01 22:58:33 +03:00
Michael Hirsch, Ph.D
9943635a98
add pylint Azure job
2019-08-02 14:31:22 +03:00
Nirbheek Chauhan
ab0e65c196
ci/cygwin: Install pytest-xdist for unit tests
...
The job is taking too long and timing out, use pytest-xdist to speed
up unit tests. Speeds it up on my system from 20 min to 8 min.
Still much slower than native windows: vs2017-x64 takes 3.5 min with
pytest-xdist.
2019-07-25 11:57:08 +00:00
Nirbheek Chauhan
f5ed85d7cd
ci/cygwin: Don't need a special step to install cmake
2019-07-25 11:57:08 +00:00
Michael Hirsch, Ph.D
76b1f4f8cb
azure cygwin cmake 3.14.5
2019-07-18 23:40:54 +03:00
Daniel Mensinger
4279255401
cmake: use newer CMake version for cygwin
2019-06-06 18:27:03 +02:00
Jussi Pakkanen
ce160e1eab
Merge pull request #5250 from jon-turney/test-compiler-report
...
Add a report of compilers used to run_project_tests.py
2019-04-20 14:36:16 +03:00
Anton Kochkov
ad0ba6a911
Add VS2019 backend CI and docs.
2019-04-16 00:11:02 +03:00
Jon Turney
df0be82dd6
azure: Fix some places where an unexpected compiler is being picked up
...
Now we have some information in CI logs about what compiler is actually
being used, fix some places where an unexpected compiler is being picked
up.
Avoid picking up gcc-objc and gfortran from PATH in vs2017 image for VS
test runs.
Use clang for objc/objc++ in MSYS2 clang test runs, rather than picking
up gcc from path.
Also install gfortran for fortran tests on Cygwin.
2019-04-15 12:07:17 +01:00
Jon Turney
eb76ba7031
azure: Unset BOOST_ROOT for Cygwin, MSYS2 and clang-cl
...
It looks like BOOST_ROOT is now set in the azure v2017 image (relevant
change seems to be [1], pre-installing boost)
Remove BOOST_ROOT from the environment to prevent attempting to use a
boost which is incompatible with the compiler.
(an MSVC boost should be compatible with clang-cl, but has problems, see
c7a3e810
)
[1] https://github.com/Microsoft/azure-pipelines-image-generation/pull/732
2019-03-17 20:46:22 +02:00
Daniel Mensinger
fcd608c131
azure: Fix python3 in vs2017 tasks
2019-03-01 20:49:17 +02:00
Jussi Pakkanen
9acbd62789
Launch Meson via python3 so the binary name is correct.
2019-02-26 01:32:56 +02:00
Jussi Pakkanen
7564a63353
Copy python3.5 to python3 so tests pass on Cygwin.
2019-02-26 01:26:54 +02:00
Nirbheek Chauhan
f4b344f5b0
azure-pipelines: Fix cygwin python3 installation
...
The package has been moved from python3-pip to python3N-pip where N is
5, 6, 7. We use Python 3.5, so let's use that.
2019-02-23 14:13:57 +05:30
Christoph Reiter
db61d018ce
ci/msys2: use the msys2 ninja
...
msys2 now has ninja 1.9.0 which includes the timestamp fixes
2019-02-05 16:10:48 +01:00
Jon Turney
8d6f5d8696
azure: Add msys2 clang to test matrix
...
The clang package depends on the gcc package, so we need to explicitly
select the compiler (as the priority order built into meson will prefer
gcc to clang)
v2:
ensure $(MSYS2-ARCH)-pkg-config is installed
2018-12-09 20:40:31 +00:00
Christoph Reiter
7f9bd8d271
azure-pipelines: install cmake in msys2
...
Recent test changes depend on cmake being available.
2018-11-27 22:28:03 +02:00