# HG changeset patch # User Andrey Skvortsov # Date 1505494429 -10800 # Node ID 70768bd1dab33ec06c5637e540f5b50c1b15bdca # Parent 3f0a552549d17a8b23855337becf26092bc91906 use pytest for testing diff -r 3f0a552549d1 -r 70768bd1dab3 bitbucket-pipelines.yml --- a/bitbucket-pipelines.yml Fri Sep 15 19:51:31 2017 +0300 +++ b/bitbucket-pipelines.yml Fri Sep 15 19:53:49 2017 +0300 @@ -5,13 +5,18 @@ checks: # The name that is displayed in the list in the Bitbucket Cloud GUI - step: script: # Modify the commands below to build your repository. - - python --version + - /usr/bin/python --version - ./tests/tools/check_source.sh - - /usr/bin/python ./tests/tools/test_application.py + - 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. - - python --version + - /usr/bin/python --version - ./tests/tools/check_source.sh - - /usr/bin/python ./tests/tools/test_application.py + - Xvfb :42 -screen 0 1280x1024x24 & + - DISPLAY=:42 pytest --timeout=10 ./tests/tools + - pkill -9 Xvfb +