Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI - Using Docker on Azure Pipelines #303

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
44 changes: 42 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ pr:
# -- GLOBAL VARIABLES ------------------------------------------------------------------
variables:
PLUGIN_NAME: Isogeo
QGIS_VERSION_TAG: release-3_4
QGIS_IMAGE: qgis/qgis
QGIS_VERSION_TAG: release-3_4
pythonVersion: "3.7"
vmImageName: "windows-2019"

Expand Down Expand Up @@ -208,4 +208,44 @@ stages:
target: '$(Build.SourceVersion)'
tagSource: 'gitTag'
changeLogCompareToRelease: 'lastFullRelease'
changeLogType: 'commitBased'
changeLogType: 'commitBased'

- stage: TestOnDocker
# --TESTING --------------------------------------------------------------------------
displayName: "Test installation (Docker Linux)"
dependsOn:
- Build

jobs:

- job: 'TestDockerLinux'
variables:
DISPLAY: ":99"
pool:
vmImage: 'ubuntu-16.04'

container:
image: $(QGIS_IMAGE):$(QGIS_VERSION_TAG)
options: --name qgis-testing-environment -v $(System.DefaultWorkingDirectory):/$(PLUGIN_NAME) -e DISPLAY=:99 $(IMAGE):$(QGIS_VERSION_TAG)

steps:
- checkout: none

- task: DownloadPipelineArtifact@2
displayName: "Download artifact previously saved"
inputs:
buildType: "current"
artifactName: "COMPILED_$(Build.SourceBranchName)_$(Build.BuildId)"
targetPath: "$(System.DefaultWorkingDirectory)"

- script: |
printenv
ls -a $(System.DefaultWorkingDirectory)
displayName: "Log environment"

- task: ShellScript@2
displayName: "Run QGIS Setup"
inputs:
scriptPath: qgis_setup.sh
args: $(PLUGIN_NAME)
# continueOnError: true