Skip to content

Commit

Permalink
CI: add doc_src_examples test
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Miura <[email protected]>
  • Loading branch information
miurahr committed May 31, 2020
1 parent 358819e commit 0d77a13
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
39 changes: 39 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
37 changes: 37 additions & 0 deletions ci/steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
##----------------------------------------------------
Expand Down Expand Up @@ -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'

0 comments on commit 0d77a13

Please sign in to comment.