Skip to content

Commit

Permalink
add steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Jul 2, 2019
1 parent b38c974 commit 88d26f3
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 5 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -52,4 +52,5 @@ install:
script:
# - docker exec -it qgis-testing-environment sh -c "cd /${PLUGIN_NAME} && qgis_testrunner.sh tests.test_Plugin"
- docker exec -it qgis-testing-environment sh -c "cd /${PLUGIN_NAME} && ls -a"
- docker exec -it qgis-testing-environment sh -c "cd /${PLUGIN_NAME} && python3 tools/plugin_packager.py"

47 changes: 42 additions & 5 deletions azure-pipelines.yml
@@ -1,10 +1,47 @@
# Lint, test and package a plugin for QGIS
# https://docs.microsoft.com/en-us/azure/devops/pipelines/process/container-phases?view=azure-devops&tabs=yaml

pool:
vmImage: 'ubuntu-16.04'
variables:
QGIS_VERSION_TAG: release-3_4
QGIS_IMAGE: qgis/qgis
PLUGIN_NAME: Isogeo

container: qgis/qgis:release-3_4

steps:
- script: docker run -d --name qgis-testing-environment -v ${TRAVIS_BUILD_DIR}:/${PLUGIN_NAME} -e DISPLAY=:99 ${IMAGE}:${QGIS_VERSION_TAG}
jobs:

# LINT AND FORMATTING CODE
- job: 'Lint'
dependsOn: 'Test'
pool:
vmImage: "vs2017-win2016"

steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'
architecture: 'x64'
addToPath: true

- script: |
python -m pip install -U pip
python -m pip install -U black
displayName: 'Install black'
- script: python -m black --target-version=py37 .\modules
displayName: 'Apply black code formatting'


# UNIT TESTS
- job: 'Test'
dependsOn: 'Lint'
pool:
vmImage: 'ubuntu-16.04'

container:
image: qgis/qgis:release-3_4
options: --name qgis-testing-environment -v ${TRAVIS_BUILD_DIR}:/${PLUGIN_NAME} -e DISPLAY=:99

steps:
- script: sh -c "qgis_setup.sh ${PLUGIN_NAME}"

displayName: 'Install plugin'

0 comments on commit 88d26f3

Please sign in to comment.