Separate application tests and code-style checking in different steps in bitbucket-pipelines
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Tue, 21 Aug 2018 13:05:23 +0300
changeset 2295 dda34e671700
parent 2294 da288f63612f
child 2296 a2ab363f9e90
Separate application tests and code-style checking in different steps in bitbucket-pipelines
bitbucket-pipelines.yml
--- a/bitbucket-pipelines.yml	Mon Aug 20 17:11:20 2018 +0300
+++ b/bitbucket-pipelines.yml	Tue Aug 21 13:05:23 2018 +0300
@@ -1,20 +1,18 @@
 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
+  default:
+    - parallel:
         - step:
-            script: # Modify the commands below to build your repository.
+            name: Codestyle checks
+            script:
               - ln -s /CanFestival-3 $BITBUCKET_CLONE_DIR/../CanFestival-3
               - /usr/bin/python --version
               - ./tests/tools/check_source.sh
+        - step:
+            name: Application tests
+            max-time: 10
+            script:
+              - ln -s /CanFestival-3 $BITBUCKET_CLONE_DIR/../CanFestival-3
               - ./tests/tools/run_python_tests.sh
-
-
-  default:
-    - step:
-        script: # Modify the commands below to build your repository.
-          - ln -s /CanFestival-3 $BITBUCKET_CLONE_DIR/../CanFestival-3
-          - /usr/bin/python --version
-          - ./tests/tools/check_source.sh
-          - ./tests/tools/run_python_tests.sh
+    
\ No newline at end of file