From 0d77a134b720653aeff9bc135ec20e2693f09d90 Mon Sep 17 00:00:00 2001 From: Hiroshi Miura Date: Sun, 31 May 2020 12:56:45 +0900 Subject: [PATCH] CI: add doc_src_examples test Signed-off-by: Hiroshi Miura --- azure-pipelines.yml | 39 +++++++++++++++++++++++++++++++++++++++ ci/steps.yml | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c1a7e0b..a246743 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -87,3 +87,42 @@ jobs: vmImage: 'ubuntu-16.04' steps: - template: ci/steps.yml + +- job: LinuxSrc + displayName: Linux (source) + variables: + PYTHON_VERSION: '3.7' + QT_VERSION: 5.15.0 + HOST: linux + TARGET: desktop + TOOL_NAME: src + pool: + vmImage: 'ubuntu-16.04' + steps: + - template: ci/steps.yml + +- job: LinuxExamples + displayName: Linux (Examples) + variables: + PYTHON_VERSION: '3.7' + QT_VERSION: 5.15.0 + HOST: linux + TARGET: desktop + TOOL_NAME: examples + pool: + vmImage: 'ubuntu-16.04' + steps: + - template: ci/steps.yml + +- job: LinuxDoc + displayName: Linux (doc) + variables: + PYTHON_VERSION: '3.7' + QT_VERSION: 5.15.0 + HOST: linux + TARGET: desktop + TOOL_NAME: doc + pool: + vmImage: 'ubuntu-16.04' + steps: + - template: ci/steps.yml diff --git a/ci/steps.yml b/ci/steps.yml index 1557bf7..b02cd40 100644 --- a/ci/steps.yml +++ b/ci/steps.yml @@ -70,6 +70,42 @@ steps: AQT_CONFIG: $(Build.SourcesDirectory)/ci/settings.ini condition: ne(variables['SUBARCHIVES'], '') displayName: Run Aqt (sub arhives option) + - bash: | + number=$RANDOM + let "number %= 30" + sleep $number + mkdir Qt + cd Qt + python -m aqt src $(QT_VERSION) $(HOST) $(TARGET) + workingDirectory: $(Build.BinariesDirectory) + env: + AQT_CONFIG: $(Build.SourcesDirectory)/ci/settings.ini + condition: eq(variables['TOOL_NAME'], 'src') + displayName: Run Aqt (source) + - bash: | + number=$RANDOM + let "number %= 30" + sleep $number + mkdir Qt + cd Qt + python -m aqt examples $(QT_VERSION) $(HOST) $(TARGET) + workingDirectory: $(Build.BinariesDirectory) + env: + AQT_CONFIG: $(Build.SourcesDirectory)/ci/settings.ini + condition: eq(variables['TOOL_NAME'], 'examples') + displayName: Run Aqt (examples) + - bash: | + number=$RANDOM + let "number %= 30" + sleep $number + mkdir Qt + cd Qt + python -m aqt doc $(QT_VERSION) $(HOST) $(TARGET) + workingDirectory: $(Build.BinariesDirectory) + env: + AQT_CONFIG: $(Build.SourcesDirectory)/ci/settings.ini + condition: eq(variables['TOOL_NAME'], 'doc') + displayName: Run Aqt (doc) # Test installation environments ##---------------------------------------------------- @@ -219,3 +255,4 @@ steps: workingDirectory: $(Build.BinariesDirectory) condition: and(eq( variables['ARCH'], 'wasm_32' ), or(eq(variables['Agent.OS'], 'Linux'), eq(variables['Agent.OS'], 'Darwin'))) displayName: 'Build WebAssembler sample project' +