Commit Graph

34 Commits

Author SHA1 Message Date
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
Ari Vuollet 5ee2fb6ede d: Fix linker errors with shared libraries on Windows 2019-04-03 19:59:24 +03:00
Jon Turney 3bd27c2d8a Revert "azure: Don't try to publish logs from fork"
This reverts commit ec5e8869196cc7749f4c224bc8d850b33b942e2d.
2019-03-20 23:55:12 +02: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
Nirbheek Chauhan 9291f37b65 ci: Debug why dmd --version is returning 1 2019-02-25 03:12:23 +05:30
Jon Turney 9d710503c4 azure: ignore PRs which should be skipped for ci
azure doesn't support [skip ci], so do nothing, rather than failing when
we detect a PR which should have [skip ci], but didn't get skipped.
2018-11-27 22:20:00 +02:00
Christoph Reiter 5e91eb3d0c CI: port cygwin job from appveyor to azure-pipelines 2018-11-21 20:53:48 +02:00
Jon Turney c7a3e81098 azure: Install Boost binaries for Windows
This installs a Boost distribution with built binaries for Windows, so
we can have test coverage of both (i) boost components which are
header-only libraries, and (ii) boost components which have
separately-compiled libraries.

(This duplicates the behaviour from appveyor of using Boost 1.64 with
VS1027 (the first version which provides pre-built binaries for that),
and Boost 1.60 for VS2015 (the oldest Boost provided by appveyor))

Don't install Boost when using clang-cl, as there appear to be issues in
either Boost or clang-cl which prevent that from working well.
2018-11-16 20:26:02 +05:30
Jon Turney d55c0b6e94 azure: Install the DMD D compiler
Be more prescriptive about the static linker to use in test case
common/143. This avoids using DMD's 'lib' in preference to clang-cl's
'llvm-lib' when both of them are in PATH
2018-11-16 20:26:02 +05:30
Jon Turney 1a3b3857c9 azure: Install x86 python in vs2015 image when building for x86
Use the x86 python when building for x86, to allow tests building python
extension modules to work
2018-11-16 20:26:02 +05:30
Jon Turney 48a10af2cf azure: Add JDK installed in vs2015 image to PATH
Add a JDK installed in vs2015 image to PATH, so java tests can be run

JDK appear to be installed in several places, so we can always pick a
different one:

C:\java\jdk\jdk1.8.0_102\bin\
C:\Program Files\Java\jdk1.8.0_102\bin
C:\Program Files (x86)\Java\jdk1.8.0_102\bin
2018-11-16 20:26:02 +05:30
Jon Turney bb01b10a27
azure: Simplify how we always publish test results
Use a more concise way of always publishing test results, even when
tests failed
2018-11-13 16:13:46 +00:00
Jon Turney a59978cfa2
azure: Enable vs2015 jobs
Don't run MPI runtime installer, which fails with vs2015 image
2018-11-13 16:13:44 +00:00
Jon Turney 5ec4da7829
azure: Install python3 for vs2015 image
We can't run the standard python installer on the vs2015 image, so we
use an installation of chocolately python3 instead
2018-11-13 16:13:44 +00:00
Jon Turney 9bd2132cfa
azure: Rewrite importing visual studio environment variables
Rewrite this in a cruder way that doesn't require installing things (and
so can work with the vs2015 image)
2018-11-13 16:13:43 +00:00
Jon Turney d63a919e0e
azure: Remove MSVC tools from PATH for clang-cl job
Add Windows SDK tools to PATH (for rc).  This requires INCLUDE to be set.

lld-link doesn't seem to default to searching the correct directories, so
LIB needs to be set.

The easiest way to get the correct setting of INLCUDE and LIB env vars seems
to be to import the VS env vars, then revert the PATH.
2018-11-04 15:42:06 +00:00
Jon Turney 48351e70cd
azure: Add clang-cl/ninja to matrix
Note that Vs2017 tools are also in PATH for llvm build
2018-11-04 15:42:06 +00:00
Jon Turney faa21d15ae Don't try to publish logs from fork 2018-10-16 06:58:47 -07:00
Jon Turney efa55c9e1c
Set env vars so MS-MPI tests are run
Import MS-MPI env vars set by installer in registry to environment

Skip testing we can apply a version constraint to MPI when version isn't
known (as is the case for MS-MPI)

(These tests have never worked in appveyor)
2018-10-14 16:01:36 +01:00
Jon Turney 9717fb8164
Add resgen to PATH so csharp tests are run 2018-10-14 16:01:36 +01:00
Jon Turney 7bdb39668b
Add an azure-pipelines.yml
v1:
Add an azure-pipelines.yml
Don't check source line endings if autocrlf is on
Handle origin-only refs in skip_ci
Add .py to PATHEXT for the benefit of test_find_program()
Publish logs as build artifacts and publish test results

v2:
Use .gitattributes to override autocrlf
Move tmpdir, so it's not a subdir of source directory, otherwise it gets
included in line-ending checks.
Use serial build numbers, rather than date.dailybuildnumber
Workaround for #3239 is no longer needed now a fix has been commited
Tweak test results and artefact naming
Wait for MS-MPI installers to complete
Publish test results even if tests had an error
2018-10-14 16:01:22 +01:00
GoaLitiuM e00bd3666d Appveyor: Install DMD compiler and dub packages
[skip ci]
2018-09-21 11:56:31 +03:00
Jon Turney 29957850ad CI: Install gobject-introspection test prerequisites on Cygwin 2018-01-06 18:24:18 +00:00
Jon Turney fd683a2b81 CI: Run boost test for Cygwin
Also, use '^' to escape newlines in appveyor-install.bat to avoid an
absurdly long line, remove some unnecessary quotation, and alphabetically
sort packages

Also, define the _XOPEN_SOURCE feature test macro in the boost test to avoid
'not declared in this scope' warnings for pthread_rwlock_init(), etc.
2018-01-04 22:51:57 +00:00
Jon Turney c654e58c53 Revert "Add an additional Cygwin package repo with patched ninja"
This reverts commit 92c2bb7519.

This is no longer needed, as a patched ninja is now available from the
standard Cygwin package repository, and prevents me from accidentally
breaking CI when changing things in my personal package repository.
2017-09-28 00:37:57 +03:00
Nirbheek Chauhan 7c2ae55fab Revert "Revert "Merge pull request #1931 from centricular/use-patched-ninja""
This reverts commit 5eb64a6f3e.

Let's try again, with a fixed Ninja by QuLogic.
2017-09-18 18:40:24 +03:00
Jussi Pakkanen 5eb64a6f3e Revert "Merge pull request #1931 from centricular/use-patched-ninja"
This reverts commit aab7ada356, reversing
changes made to e1b24765af.
2017-07-18 00:30:52 +02:00
Jon Turney 92c2bb7519 Add an additional Cygwin package repo with patched ninja 2017-07-17 14:23:59 +05:30
Elliott Sales de Andrade 6e2fff1f44 Enable code coverage on AppVeyor.
* Install pip on msys (which doesn't have it)
* Install codecov/coverage everywhere.
* Generate coverage XML file manually because codecov tries to call the
  coverage script itself and it's in a weird place on the path.
2017-05-21 16:11:33 -04:00
Elliott Sales de Andrade fcfe3c3231 Use a wrapper script to run tests in Cygwin. 2017-05-21 16:11:33 -04:00
Jon Turney 44c54affda Add Cygwin/x86_64 to AppVeyor CI matrix
Install ninja and packages needed for tests
Don't bother with x86 for speed and reliability reasons
2017-04-07 11:21:38 +01:00