Split cmake and compile into separate pipeline steps
authorKevin Ottens <kevin.ottens@nextcloud.com>
Thu, 6 Aug 2020 08:47:09 +0000 (10:47 +0200)
committerKevin Ottens (Rebase PR Action) <er-vin@users.noreply.github.com>
Wed, 12 Aug 2020 06:45:13 +0000 (06:45 +0000)
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
.drone.yml

index 21fcc64380776e819014b433144d51e0e18b0159..9c479d696a20283dfab2291e31b1c0c1e4cee493 100644 (file)
@@ -2,7 +2,7 @@ kind: pipeline
 name: qt-5.12
 
 steps:
-- name: build
+- name: cmake
   image: nextcloudci/client-5.12:client-5.12-10
   volumes:
     - name: build
@@ -10,6 +10,13 @@ steps:
   commands:
     - cd /drone/build
     - cmake -DCMAKE_C_COMPILER=gcc-10 -DCMAKE_CXX_COMPILER=g++-10 -DCMAKE_BUILD_TYPE=Debug -DNO_SHIBBOLETH=1 -DBUILD_UPDATER=ON -DUNIT_TESTING=1 -DSANITIZE_ADDRESS=ON ../src
+- name: compile
+  image: nextcloudci/client-5.12:client-5.12-10
+  volumes:
+    - name: build
+      path: /drone/build
+  commands:
+    - cd /drone/build
     - make -j$(nproc)
 - name: test
   image: nextcloudci/client-5.12:client-5.12-10
@@ -38,7 +45,7 @@ kind: pipeline
 name: qt-5.12-clang
 
 steps:
-- name: build
+- name: cmake
   image: nextcloudci/client-5.12:client-5.12-10
   volumes:
     - name: build
@@ -46,6 +53,13 @@ steps:
   commands:
     - cd /drone/build
     - cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON DCMAKE_C_COMPILER=clang-10 -DCMAKE_CXX_COMPILER=clang++-10 -DCMAKE_BUILD_TYPE=Debug -DNO_SHIBBOLETH=1 -DBUILD_UPDATER=ON -DUNIT_TESTING=1 -DSANITIZE_ADDRESS=ON ../src
+- name: compile
+  image: nextcloudci/client-5.12:client-5.12-10
+  volumes:
+    - name: build
+      path: /drone/build
+  commands:
+    - cd /drone/build
     - make -j$(nproc)
 - name: test
   image: nextcloudci/client-5.12:client-5.12-10