Newer
Older
# This is a sample build configuration for Python.
# Check our guides at https://confluence.atlassian.com/x/x4UWN for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: qgis/qgis
pipelines:
default:
- step:
services:
- docker
caches:
- docker
- pip
script: # Modify the commands below to build your repository.
- apt-get update
- export PYTHONPATH="${PYTHONPATH}:$(pwd)"
- python3 -m pip install -r requirements_dev.txt
- python3 scripts/setup_repository.py
#- python3 -m coverage run -m unittest discover -s tests
#- python3 -m coverage report
# build and upload plugin to download section
- python3 scripts/create_plugin.py -z timeseriesviewerplugin.$(BITBUCKET_BRANCH).lastbuild.zip
#- find deploy -name "timeseriesviewerplugin*zip" -exec cp -t deploy2 {} +
#- find deploy -name "timeseriesviewerplugin*zip" -exec curl -X POST "https://${BB_AUTH_STRING}@api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"target/output.zip"
definitions:
caches:
qgisresourcecache: /opt/atlassian/pipelines/agent/build/qgisresources