Граф коммитов

48 Коммитов

Автор SHA1 Сообщение Дата
Tom Hvitved c5a4a6be05
Merge pull request #3871 from hvitved/csharp/autobuilder/dotnet-delegate
C#: Introduce delegate type in autobuilder
2020-07-27 16:51:24 +02:00
Calum Grant 03cc4e179e C#: Make fields readonly 2020-07-02 17:47:17 +01:00
Tom Hvitved 7dfc584159 C#: Introduce delegate type in autobuilder 2020-07-02 13:29:49 +02:00
Tom Hvitved 398a95c65f C#: Remove unused field 2020-07-01 20:06:46 +02:00
Tom Hvitved 498ee9b5f5 C#: Factor C++ parts out of autobuilder 2020-07-01 20:06:46 +02:00
Robert Marsh e24566e313 C#/C++: Use CODEQL_EXTRACTOR_CPP_ROOT in autobuild
Left this out earlier because I thought it needed to point to the C#
extractor root even in C++ mode, but it looks like it isn't yet used in
C++ mode.
2020-06-23 15:53:25 -07:00
Robert Marsh c37c282861 C#/C++: Fix tests with new environment variables 2020-06-23 15:35:22 -07:00
Robert Marsh da9aa546de C#/C++: Use CODEQL_EXTRACTOR_CPP_* in autobuilder 2020-06-23 14:47:07 -07:00
Tom Hvitved c2c4142271
Merge pull request #3306 from calumgrant/cs/extraction-nullability
C#: Enable nullability in Semmle.Extraction project
2020-05-11 08:40:31 +02:00
Calum Grant 6b8a5606d6 C#: Enable nullability for Autobuild tests project. 2020-04-29 15:27:35 +01:00
Calum Grant 86d032e2ea C#: Remove nullability warning by lifting local function. Warning seems to be caused by a compiler bug. 2020-04-29 15:21:43 +01:00
Tom Hvitved 6911937ab8 C#: Update expected test output 2020-04-24 09:26:50 +02:00
Tom Hvitved 29e690e159 Merge remote-tracking branch 'upstream/master' into csharp/vsvars-unset-platform 2020-04-21 09:00:26 +02:00
Tom Hvitved 8d81b885c6 C#: Unset `Platform` env variable when invoking `vcvarsall.bat` 2020-04-03 14:47:34 +02:00
Calum Grant 6a26a6542a C#: Remove a function. 2020-04-03 09:42:25 +01:00
Calum Grant 9a5e80667e C#: Address review comments. 2020-03-31 15:21:51 +01:00
Calum Grant 69041bc959 C#: Enable nullability in Autobuilder. 2020-03-27 20:26:38 +00:00
Tom Hvitved a2269158df C#: Ignore `dotnet clean` exit code in autobuilder 2020-03-09 12:00:28 +01:00
Calum Grant c3b88210aa C#: Add runtime idenfitiers to project files. 2020-02-18 11:52:41 +00:00
Calum Grant 113df4ea1d
Merge pull request #2278 from hvitved/csharp/autobuilder/shared-compilation
C#: Only set `UseSharedCompilation=false` in autobuilder when needed
2019-11-25 18:37:09 +00:00
Tom Hvitved 07e18c88a8 C#: Address review comments 2019-11-25 16:51:09 +01:00
Calum Grant a2e0ae1e79 C#: Update project files to netcoreapp3.0 2019-11-14 17:14:51 +00:00
Tom Hvitved a9f08671ca C#: Address review comments 2019-11-14 11:00:19 +01:00
Tom Hvitved dee4ddbb5b C#: Only set `UseSharedCompilation=false` in autobuilder when needed
Since we are now able to trace shared compilation builds on Linux and macOS
(starting from .NET Core 3), and always were able to on Windows, there is
no need to set `UseSharedCompilation=false` in those cases. This may have a
positive performance impact, as shared compilation is generally faster then
non-shared compilation.
2019-11-08 10:28:20 +01:00
Aditya Sharad ecd4c08cb4
Merge pull request #2225 from hvitved/csharp/autobuilder-tests
C#: Update autobuilder tests
2019-10-29 12:21:04 -07:00
Tom Hvitved edbdfdfa27 C#: Update autobuilder tests 2019-10-29 16:14:58 +01:00
Tom Hvitved 6a77751713 C#: Add `-L` flag to autobuilder `curl` invocation
Turns out that `https://dot.net/v1/dotnet-install.sh` has moved to
`https://dotnet.microsoft.com/download/dotnet-core/scripts/v1/dotnet-install.sh`.
Instead of updating the URL in the code, I prefer to keep the old URL (which is
still referenced in the documentation), and let `curl` handle the redirect.
2019-10-29 14:15:17 +01:00
Tom Hvitved 8a08038ff3 C#: Use system-nuget in Autobuilder when `SEMMLE_PLATFORM_TOOLS` is not set 2019-10-28 10:59:26 +01:00
Tom Hvitved 83ec2d6162 C#: Teach extractor and autobuilder about new environment variables 2019-10-24 11:15:33 +02:00
Tom Hvitved c18d0430de C#: Cleanup more files after failed autobuilder attempt 2019-09-30 12:08:25 +02:00
Luke Cartey b8387bdf23 C#: Fix whitespace issues. 2019-09-18 14:43:43 +01:00
Luke Cartey af41a0a927 C#: Add autobuilder unit test for multiple csproj files. 2019-09-18 13:12:46 +01:00
Luke Cartey 29e4fa349a C# autobuilder: Build all solutions at the highest depth
The most common reason for the C# autobuilder to fail is because it
cannot determine a single unique .sln or .proj file to build, instead
reporting multiple sln or proj files at the same shortest depth. This
commit changes this to build all such files, rather than reporting an
error.
2019-09-17 21:27:01 +01:00
Tom Hvitved 5cc11ba232 C#: Update nuget packages 2019-06-17 13:26:11 +02:00
Tom Hvitved d333ffb57a C#: Update to `netcoreapp2.2` 2019-06-17 13:21:00 +02:00
calum 8a78c8f124 C#: Update xunit and other dependencies. 2019-05-07 18:01:36 +01:00
calum b7875aef20 C#: Update nuget packages 2019-05-07 18:01:36 +01:00
calum 1e1784239c C#: Alert suppression comments for lgtm[cs/catch-of-all-exceptions 2019-02-12 12:45:22 +00:00
calum f39daaeeab C#: Suppress cs/catch-of-all-exceptions 2019-01-29 18:22:12 +00:00
Tom Hvitved ed8112a538 C#: Cleanup dotnet install script after installation in autobuilder 2019-01-25 15:26:03 +01:00
calum a44a86bf6f C#: Add alert suppression comments. Rename e to ex in catch clauses for consistency. 2019-01-11 12:32:24 +00:00
Tom Hvitved 1e9fe0046a C#: Address review comments 2018-12-10 15:31:23 +01:00
Tom Hvitved ad77afef04 C#: Autobuilder fixes
This commit fixes a few issues that were identified during the last dist upgrade,
and which were introduced/revealed on 836daaf07b.

- Expand environment variables that are passed from `lgtm.yml` to the autobuilder,
  for example `solution: $LGTM_SRC/mysolution.sln`.
- Distinguish between when a build rule is applied automatically and when it is applied
  manually via `lgtm.yml`.
- Catch `FileNotFoundException`s when parsing project files and solution files.
2018-12-04 14:03:39 +01:00
Tom Hvitved 1939773684 C#: Address review comments 2018-11-23 09:32:12 +01:00
Tom Hvitved c3ccdfa7f9 C#: Guard against cyclic inclusions in project files 2018-11-23 09:32:12 +01:00
Tom Hvitved e4f68ae324 C#: Address review comments 2018-11-23 09:32:12 +01:00
Tom Hvitved 836daaf07b C#: Recognize `.proj` files in autobuilder
When determining the target of `msbuild` or `dotnet build`, first look for `.proj`
files, then `.sln` files, and finally `.csproj`/`.vcxproj` files. In all three cases,
choose the project/solution file closest to the root.
2018-11-23 09:32:12 +01:00
Tom Hvitved b95d7e5302 C#: Move autobuilder into separate folder 2018-11-23 09:32:12 +01:00