CI: update configuration
variables:
+ aqt_version: 0.3.1
qtversion: 5.12.1
- pydepends: requests six
+ pydepends: requests six flake8 wheel twine
jobs:
- job: Ubuntu_1604_py3
@@ -14,7 +15,6 @@ jobs:
architecture: 'x64'
- script: |
python -m pip install $(pydepends)
- python -m pip install flake8 twine wheel
flake8 aqt bin
displayName: 'Run lint tests'
- script: |
@@ -23,14 +23,22 @@ jobs:
- task: PythonScript@0
inputs:
scriptSource: filePath
- scriptPath: $(Build.SourcesDirectory)/aqt
+ scriptPath: $(Build.SourcesDirectory)/setup.py
+ arguments: sdist bdist_wheel
+ workingDirectory: $(Build.SourcesDirectory)
+ displayName: build package
+ - script: pip install $(Build.SourcesDirectory)/dist/aqtinstall-$(aqt_version)-py2.py3-none-any.whl
+ displayName: install package
+ - task: PythonScript@0
+ inputs:
+ scriptSource: filePath
+ scriptPath: $(Build.SourcesDirectory)/bin/aqt
arguments: install $(qtversion) linux desktop
workingDirectory: $(Build.BinariesDirectory)
displayName: install qt
- script: |
$(Build.BinariesDirectory)/Qt$(qtversion)/$(qtversion)/gcc_64/bin/qmake $(Build.SourcesDirectory)/tests
make
- - script: python setup.py sdist bdist_wheel
- job: Ubuntu_1604_py2
pool:
@@ -47,7 +55,16 @@ jobs:
- task: PythonScript@0
inputs:
scriptSource: filePath
- scriptPath: $(Build.SourcesDirectory)/aqt
+ scriptPath: $(Build.SourcesDirectory)/setup.py
+ arguments: sdist bdist_wheel
+ workingDirectory: $(Build.SourcesDirectory)
+ displayName: build package
+ - script: pip install $(Build.SourcesDirectory)/dist/aqtinstall-$(aqt_version)-py2.py3-none-any.whl
+ displayName: install package
+ - task: PythonScript@0
+ inputs:
+ scriptSource: filePath
+ scriptPath: $(Build.SourcesDirectory)/bin/aqt
arguments: install $(qtversion) linux desktop
workingDirectory: $(Build.BinariesDirectory)
displayName: install qt
@@ -70,7 +87,16 @@ jobs:
- task: PythonScript@0
inputs:
scriptSource: filePath
- scriptPath: $(Build.SourcesDirectory)/aqt
+ scriptPath: $(Build.SourcesDirectory)/setup.py
+ arguments: sdist bdist_wheel
+ workingDirectory: $(Build.SourcesDirectory)
+ displayName: build package
+ - script: pip install $(Build.SourcesDirectory)/dist/aqtinstall-$(aqt_version)-py2.py3-none-any.whl
+ displayName: install package
+ - task: PythonScript@0
+ inputs:
+ scriptSource: filePath
+ scriptPath: $(Build.SourcesDirectory)/bin/aqt
arguments: install $(qtversion) mac desktop
workingDirectory: $(Build.BinariesDirectory)
displayName: install qt
@@ -93,9 +119,17 @@ jobs:
- task: PythonScript@0
inputs:
scriptSource: filePath
- scriptPath: $(Build.SourcesDirectory)/aqtinst
+ scriptPath: $(Build.SourcesDirectory)/setup.py
+ arguments: sdist bdist_wheel
+ workingDirectory: $(Build.SourcesDirectory)
+ displayName: build package
+ - script: pip install $(Build.SourcesDirectory)/dist/aqtinstall-$(aqt_version)-py2.py3-none-any.whl
+ displayName: install package
+ - task: PythonScript@0
+ inputs:
+ scriptSource: filePath
+ scriptPath: $(Build.SourcesDirectory)/bin/aqt
arguments: $(qtversion) windows desktop win64_msvc2017_64
workingDirectory: $(Build.BinariesDirectory)
displayName: install qt
- script: ls -lR $(Build.BinariesDirectory)
-
