Parallelize the CI build
authorKevin Ottens <kevin.ottens@nextcloud.com>
Wed, 5 Aug 2020 22:01:12 +0000 (00:01 +0200)
committerKevin Ottens (Rebase PR Action) <er-vin@users.noreply.github.com>
Wed, 12 Aug 2020 06:45:12 +0000 (06:45 +0000)
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
.drone.yml

index e7c43bb1e76a11c41e6c9c6d85d07d2098a5c272..f00e6e23c2531ada0ba9e297dc24a51dbaec8c6f 100644 (file)
@@ -21,7 +21,7 @@ steps:
       mkdir build &&
       cd build &&
       cmake ../ &&
-      make &&
+      make -j$(nproc) &&
       make install"
     # Build client
     - /bin/bash -c "
@@ -35,7 +35,7 @@ steps:
       mkdir build &&
       cd build &&
       cmake -D NO_SHIBBOLETH=1 -DBUILD_UPDATER=ON -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=1 -DSANITIZE_ADDRESS=ON ../ &&
-      make &&
+      make -j$(nproc) &&
       useradd -m -s /bin/bash test &&
       chown -R test:test . &&
       su -c 'ASAN_OPTIONS=detect_leaks=0 ctest --output-on-failure' test"
@@ -70,7 +70,7 @@ steps:
       mkdir build &&
       cd build &&
       cmake ../ &&
-      make &&
+      make -j$(nproc) &&
       make install"
     # Build client
     - /bin/bash -c "
@@ -84,7 +84,7 @@ steps:
       mkdir build &&
       cd build &&
       cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DNO_SHIBBOLETH=1 -DBUILD_UPDATER=ON -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=1 -DSANITIZE_ADDRESS=ON ../ &&
-      make &&
+      make -j$(nproc) &&
       useradd -m -s /bin/bash test &&
       chown -R test:test . &&
       su -c 'ASAN_OPTIONS=detect_leaks=0 ctest --output-on-failure' test"