Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
miurahr committed Mar 12, 2020
2 parents f397483 + 5bcbaf2 commit 82f97f7
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 5 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ recursive-include aqt *.ini
recursive-include aqt *.json
recursive-include aqt *.yml
recursive-include ci *.7z
recursive-include ci *.ini
recursive-include ci *.py
recursive-include ci *.yml
recursive-include docs *.bat
Expand Down
7 changes: 7 additions & 0 deletions ci/settings.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[DEFAULTS]

[aqt]
concurrency: 2

[mirrors]
blacklist: ['http://mirrors.ustc.edu.cn', 'http://mirrors.tuna.tsinghua.edu.cn', 'http://mirrors.geekpie.club']
39 changes: 34 additions & 5 deletions ci/steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,49 @@ steps:
# Run Aqt
##----------------------------------------------------
- script: python -m aqt install --outputdir $(Build.BinariesDirectory)/Qt $(QT_VERSION) $(HOST) $(TARGET) $(ARCH)
## we insert sleep in random duration < 30sec to reduce
## download server load.
- bash: |
number=$RANDOM
let "number %= 30"
sleep $number
python -m aqt install --outputdir $(Build.BinariesDirectory)/Qt $(QT_VERSION) $(HOST) $(TARGET) $(ARCH)
workingDirectory: $(Build.BinariesDirectory)
env:
AQT_CONFIG: $(Build.SourcesDirectory)/ci/settings.ini
condition: and(not(variables['QT_BASE_MIRROR']), not(variables['TOOL_NAME']), not(variables['EXTERNAL']), eq(variables['MODULE'], ''))
displayName: Run Aqt (No Base URL Set)
- script: python -m aqt install --outputdir $(Build.BinariesDirectory)/Qt $(QT_VERSION) $(HOST) $(TARGET) $(ARCH) -b $(QT_BASE_MIRROR)
condition: and(variables['QT_BASE_MIRROR'], not(variables['TOOL_NAME']), not(variables['EXTERNAL']), eq(variables['MODULE'], ''))
- bash: |
number=$RANDOM
let "number %= 30"
- bash: |
number=$RANDOM
let "number %= 30"
sleep $number
python -m aqt install --outputdir $(Build.BinariesDirectory)/Qt $(QT_VERSION) $(HOST) $(TARGET) $(ARCH) -b $(QT_BASE_MIRROR)
workingDirectory: $(Build.BinariesDirectory)
env:
AQT_CONFIG: $(Build.SourcesDirectory)/ci/settings.ini
condition: and(variables['QT_BASE_MIRROR'], not(variables['TOOL_NAME']), not(variables['EXTERNAL']), eq(variables['MODULE'], ''))
displayName: Run Aqt (Base URL Set)
- script: python -m aqt install --outputdir $(Build.BinariesDirectory)/Qt $(QT_VERSION) $(HOST) $(TARGET) $(ARCH) -m $(MODULE)
- bash: |
number=$RANDOM
let "number %= 30"
sleep $number
python -m aqt install --outputdir $(Build.BinariesDirectory)/Qt $(QT_VERSION) $(HOST) $(TARGET) $(ARCH) -m $(MODULE)
workingDirectory: $(Build.BinariesDirectory)
env:
AQT_CONFIG: $(Build.SourcesDirectory)/ci/settings.ini
condition: and(not(variables['TOOL_NAME']), not(variables['EXTERNAL']), ne(variables['MODULE'], ''))
displayName: Run Aqt (With modules)
- script: python -m aqt install --outputdir $(Build.BinariesDirectory)/Qt $(QT_VERSION) $(HOST) $(TARGET) $(ARCH) -E "$(EXTERNAL)"
- bash: |
number=$RANDOM
let "number %= 30"
sleep $number
python -m aqt install --outputdir $(Build.BinariesDirectory)/Qt $(QT_VERSION) $(HOST) $(TARGET) $(ARCH) -E "$(EXTERNAL)"
workingDirectory: $(Build.BinariesDirectory)
env:
AQT_CONFIG: $(Build.SourcesDirectory)/ci/settings.ini
condition: and(not(variables['TOOL_NAME']), variables['EXTERNAL'])
displayName: Run Aqt (With external 7zip)
Expand Down

0 comments on commit 82f97f7

Please sign in to comment.