Skip to content
Snippets Groups Projects
bitbucket-pipelines.yml 1.44 KiB
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.
          - python3 -m pip install -r requirements.txt
          - python3 -m pip install nose2
Benjamin Jakimow's avatar
Benjamin Jakimow committed
          - apt-get -y install git-lfs
          - apt-get -y install xvfb
Benjamin Jakimow's avatar
Benjamin Jakimow committed
          - Xvfb :1 -screen 0 1024x768x16 &> xvfb.log  &
          - ps aux | grep X
          - DISPLAY=:1.0
          - export DISPLAY
Benjamin Jakimow's avatar
Benjamin Jakimow committed
          - mkdir test-reports
Benjamin Jakimow's avatar
Benjamin Jakimow committed
          - git lfs install
Benjamin Jakimow's avatar
Benjamin Jakimow committed
          - git lfs fetch
Benjamin Jakimow's avatar
Benjamin Jakimow committed
          - git lfs pull
          - git lfs checkout
Benjamin Jakimow's avatar
Benjamin Jakimow committed
          #- python3 make/setuprepository.py
Benjamin Jakimow's avatar
Benjamin Jakimow committed
          #- python3 -m nose2 discover tests "test_*.py" > test-reports/test-report.txt
Benjamin Jakimow's avatar
Benjamin Jakimow committed
          #- QT_QPA_PLATFORM=offscreen
          #- export QT_QPA_PLATFORM

Benjamin Jakimow's avatar
Benjamin Jakimow committed
          - CI=True
          - export CI
Benjamin Jakimow's avatar
Benjamin Jakimow committed
          - chmod +x runtests.sh
Benjamin Jakimow's avatar
Benjamin Jakimow committed
          - ./runtests.sh
Benjamin Jakimow's avatar
Benjamin Jakimow committed
          #- python3 tests/test_init.py
          #- CI=True
          #- export CI
Benjamin Jakimow's avatar
Benjamin Jakimow committed
          #- python3 -m nose2 discover tests "test_*.py" > test-reports/test-report.txt