Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into Pseudo-Localisation
- Loading branch information
Showing
48 changed files
with
632 additions
and
354 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
parameters: | ||
agentOS: 'Windows' | ||
phaseName: '' | ||
queueName: '' | ||
buildArgs: '' | ||
beforeBuild: [] | ||
afterBuild: [] | ||
variables: {} | ||
dependsOn: '' | ||
artifacts: | ||
archiveName: 'app.zip' | ||
publish: true | ||
|
||
phases: | ||
- phase: ${{ coalesce(parameters.phaseName, parameters.agentOS) }} | ||
dependsOn: ${{ parameters.dependsOn }} | ||
displayName: ${{ coalesce(parameters.phaseName, parameters.agentOS) }} | ||
queue: | ||
${{ if ne(parameters.queueName, '') }}: | ||
name: ${{ parameters.queueName }} | ||
${{ if and(eq(parameters.queueName, ''), eq(parameters.agentOS, 'Linux')) }}: | ||
name: Hosted Ubuntu 1604 | ||
${{ if and(eq(parameters.queueName, ''), eq(parameters.agentOS, 'macOS')) }}: | ||
name: Hosted macOS | ||
${{ if and(eq(parameters.queueName, ''), eq(parameters.agentOS, 'Windows')) }}: | ||
name: Hosted VS2017 | ||
variables: | ||
AgentOSName: ${{ parameters.agentOS }} | ||
ArchiveName: ${{ parameters.artifacts.archiveName }} | ||
BuildArgs: ${{ parameters.buildArgs }} | ||
${{ insert }}: ${{ parameters.variables }} | ||
steps: | ||
- ${{ parameters.beforeBuild }} | ||
- ${{ if eq(parameters.agentOS, 'Linux') }}: | ||
- script: | | ||
sudo apt-get update | ||
sudo apt-get install -y --no-install-recommends gettext libcurl4-openssl-dev libicu-dev libssl-dev libunwind8 | ||
name: InstallDotNetCoreDeps | ||
displayName: Install .NET Core pre-requisites | ||
- ${{ if eq(parameters.agentOS, 'Linux') }}: | ||
- script: | | ||
sudo npm install -g npm | ||
name: UpdateNpm | ||
displayName: Update to latest npm | ||
- ${{ if ne(parameters.agentOS, 'Linux') }}: | ||
- script: | | ||
npm install -g npm | ||
name: UpdateNpm | ||
displayName: Update to latest npm | ||
- ${{ if eq(parameters.agentOS, 'macOS') }}: | ||
- script: | | ||
npm install -g gulp@3.9.1 | ||
name: InstallGulp | ||
displayName: Install gulp | ||
- ${{ if eq(parameters.agentOS, 'macOS') }}: | ||
- script: | | ||
brew install brew-cask | ||
brew cask install google-chrome | ||
name: InstallChrome | ||
displayName: Install Google Chrome | ||
- ${{ if eq(parameters.agentOS, 'Windows') }}: | ||
- powershell: | | ||
.\Build.ps1 -OutputPath $(Build.StagingDirectory) $(BuildArgs) | ||
name: BuildAndTest | ||
displayName: Build and test | ||
timeoutInMinutes: 20 | ||
env: | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | ||
NUGET_XMLDOC_MODE: skip | ||
- ${{ if ne(parameters.agentOS, 'Windows') }}: | ||
- script: | | ||
./build.sh --output $(Build.StagingDirectory) $(BuildArgs) | ||
name: BuildAndTest | ||
displayName: Build and test | ||
timeoutInMinutes: 20 | ||
env: | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | ||
NUGET_XMLDOC_MODE: skip | ||
- ${{ if eq(parameters.agentOS, 'Windows') }}: | ||
- task: ArchiveFiles@2 | ||
name: Package | ||
displayName: Create deployment package | ||
inputs: | ||
rootFolderOrFile: '$(Build.StagingDirectory)/publish' | ||
includeRootFolder: false | ||
archiveFile: '$(Build.StagingDirectory)/$(ArchiveName)' | ||
condition: succeeded() | ||
- task: PublishTestResults@2 | ||
name: PublishTests | ||
displayName: Publish test results | ||
condition: always() | ||
inputs: | ||
testRunner: VSTest | ||
testRunTitle: Unit and integration tests ($(AgentOSName)) | ||
testResultsFiles: $(Build.SourcesDirectory)/**/*.trx | ||
- ${{ if eq(parameters.agentOS, 'Windows') }}: | ||
- task: PublishCodeCoverageResults@1 | ||
name: PublishCodeCoverage | ||
displayName: Publish code coverage | ||
condition: always() | ||
inputs: | ||
codeCoverageTool: cobertura | ||
reportDirectory: $(Build.StagingDirectory)/**/coverage | ||
summaryFileLocation: $(Build.StagingDirectory)/**/Cobertura.xml | ||
- task: PublishBuildArtifacts@1 | ||
displayName: Publish build artifacts | ||
condition: eq(variables['System.PullRequest.IsFork'], false) | ||
inputs: | ||
PathToPublish: '$(Build.StagingDirectory)' | ||
ArtifactType: Container | ||
${{ if eq(parameters.artifacts.name, '') }}: | ||
ArtifactName: BuildDrop-$(AgentOSName) | ||
${{ if ne(parameters.artifacts.name, '') }}: | ||
ArtifactName: ${{ parameters.artifacts.name }} | ||
- ${{ if eq(parameters.agentOS, 'Windows') }}: | ||
- task: PublishBuildArtifacts@1 | ||
displayName: Publish deployment package | ||
inputs: | ||
PathtoPublish: '$(Build.StagingDirectory)/$(ArchiveName)' | ||
ArtifactName: DeploymentPackage | ||
condition: and(succeeded(), eq(variables['System.PullRequest.IsFork'], false)) | ||
- ${{ parameters.afterBuild }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: CI_$(Date:yyyyMMdd)$(Rev:.r) | ||
|
||
trigger: | ||
batch: true | ||
branches: | ||
include: | ||
- master | ||
|
||
phases: | ||
- template: build-template.yml | ||
parameters: | ||
agentOS: Linux | ||
artifacts: | ||
archiveName: website.zip | ||
- template: build-template.yml | ||
parameters: | ||
agentOS: macOS | ||
artifacts: | ||
archiveName: website.zip | ||
#- template: build-template.yml | ||
# parameters: | ||
# agentOS: Windows | ||
# artifacts: | ||
# archiveName: website.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"sdk": { | ||
"version": "2.1.402" | ||
"version": "2.1.403" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.