bitbucket-pipelines.yml
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Fri, 15 Sep 2017 19:53:49 +0300
changeset 1810 70768bd1dab3
parent 1796 4f7a0c40a7c3
child 1820 76f5eba31afd
permissions -rw-r--r--
use pytest for testing
image: skvorl/beremiz-requirements

pipelines:
  custom: # Pipelines that are triggered manually
    checks: # The name that is displayed in the list in the Bitbucket Cloud GUI
        - step:
            script: # Modify the commands below to build your repository.
              - /usr/bin/python --version
              - ./tests/tools/check_source.sh
              - Xvfb :42 -screen 0 1280x1024x24 &
              - DISPLAY=:42 pytest --timeout=10 ./tests/tools
              - pkill -9 Xvfb

  default:
    - step:
        script: # Modify the commands below to build your repository.
          - /usr/bin/python --version
          - ./tests/tools/check_source.sh
          - Xvfb :42 -screen 0 1280x1024x24 &
          - DISPLAY=:42 pytest --timeout=10 ./tests/tools
          - pkill -9 Xvfb