Skip to content

Instantly share code, notes, and snippets.

Avatar

James Pearson jimmymcp

View GitHub Profile
@jimmymcp
jimmymcp / .multi-stage-azure-pipelines.yml
Created Sep 24, 2019
Example multi-stage YAML pipeline for Azure DevOps
View .multi-stage-azure-pipelines.yml
trigger:
- '*'
pool:
name: Default
variables:
image_name: mcr.microsoft.com/businesscentral/sandbox
container_name: Build
company_name: My Company
@jimmymcp
jimmymcp / Test-TranslationIsComplete.ps1
Last active Aug 6, 2021
Functions to translate .xlf files using Azure Cognitive Services
View Test-TranslationIsComplete.ps1
function Test-TranslationIsComplete {
param (
# the directory with the source code of the app to be translated
[Parameter(Mandatory=$false)]
[string]
$SourceDir = (Get-Location),
# whether to surpress the error
[Parameter(Mandatory=$false)]
[switch]
$SurpressError
View BuildHelper.al
codeunit 90100 "Automated Test Mgt. BHTMN"
{
var
CALTestManagement: Codeunit "CAL Test Management";
ObjectNotCompiledErr: Label 'Object not compiled.';
procedure GetTests(TestSuiteName: Code[10]; StartID: Integer; EndID: Integer)
var
CALTestSuite: Record "CAL Test Suite";
CALTestLine: Record "CAL Test Line";