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

16 Коммитов

Автор SHA1 Сообщение Дата
Freddy Kristiansen 480254c917
Support compilerfolder and online environments (#3607)
When specifying BcAuthContext and Environment to Run-AlPipeline,
Run-AlPipeline would always create a filesonly container, disallowing
running on Linux.
This PR fixes this plus some bugs found as a result of this.

- Replace all occurrences of
[System.Runtime.InteropServices.Marshal]::PtrToStringAuto with
[System.Runtime.InteropServices.Marshal]::PtrToStringBSTR as the Auto
function doesn't always do what's expected under Linux (We do not use
the Auto function in AL-Go)
- Ensure correct casing of Newtonsoft.Json.dll for Linux (also not a
problem in AL-Go)
- Always add extensionId (when specified) to Properties section in test
results xml
- Also added two new overrides (PipelineInitialize and PipelineFinalize)
requested by COSMO Consult.
- If environment is specified as a Web Client URL, and BcAuthContext
contains username/password in Run-AlPipeline, then tests will run
against this environment. PublishBcContainerApp and
ImportTestToolkitToBcContainer needs to be overridden for this to work
with full pipeline.
- Add parameter CompilerFolder to Run-TestsInBcContainer and
Import-TestToolkitToBcContainer for running tests using CompilerFolder
bits from the host
- Including caching of appinfos in CompilerFolder cache (to save time
when caching on GitHub Actions)

Running Build AND Test under Linux (using CompilerFolder), using an
online environment as "Service Tier" can be seen here:

https://github.com/BusinessCentralDemos/bingmaps.pte/actions/runs/10313615507

Build and test here takes approx. 3 minutes.

This functionality is needed by COSMO to enable using their Docker Swarm
for running tests in AL-Go.

COSMO is aware that AL-Go moves away from using BcContainerHelper and
will subsequently have to change their integration when this has
happened.

---------

Co-authored-by: freddydk <freddydk@users.noreply.github.com>
2024-08-09 12:18:10 +02:00
Freddy Kristiansen 4cb6f2112b telemetry 2021-07-06 11:03:31 +02:00
Freddy Kristiansen b92e0ea8aa casing 2021-03-05 07:19:27 +01:00
Freddy Kristiansen 40bf30c07d Change function and container name 2020-07-31 09:16:25 +02:00
Freddy Kristiansen a1384c6e90 Cleanup help text for functions 2019-09-03 11:42:17 +02:00
Freddy Kristiansen ffe6b48b01 Fix terminology 2019-07-26 11:28:33 +02:00
Michael Megel 59165e2de1
Merge branch 'dev' into Issue528 2019-07-26 10:59:09 +02:00
Michael Megel a9b014a520 optional parameter sqlCredential added to use
SQL admin user if using NavUserPassword authentication
2019-07-26 10:50:45 +02:00
Freddy Kristiansen 830abb69df Bug #528 2019-07-26 10:12:31 +02:00
Michael Megel a2dbb1cb37 error message fixed 2019-07-26 10:07:56 +02:00
Freddy Kristiansen 47c8114645 Do not export star and create BCContainer aliases 2019-05-22 11:46:25 +02:00
Freddy Kristiansen 47999f0711 Prepare for 15.0 2019-05-22 07:58:08 +02:00
Freddy Kristiansen fa6bf091c9 Replace Invoke-Command-Session with Invoke-ScriptInNavContainer 2019-01-21 11:00:06 +01:00
Freddy Kristiansen 1e90e5266b Rename function 2018-08-26 12:09:17 +02:00
Mike Glue 54b3b47a02 remove old code 2018-08-07 15:36:51 -04:00
Mike Glue 275266c009 command to generate application symbols 2018-08-07 15:34:39 -04:00