Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Ottens <kevin.ottens@nextcloud.com>2020-08-06 01:20:59 +0300
committerKevin Ottens (Rebase PR Action) <er-vin@users.noreply.github.com>2020-08-12 09:45:12 +0300
commit1e8340cd48f0f4e2cee5cbbdabc7796d1b44905d (patch)
treec18b1e71e9c571beb88ee2cc1f83fa7e5d2ceac6 /.drone.yml
parent9016ffe4b796fa192d1eaec7f27817275da09234 (diff)
Move the build in a volume to be reused between steps
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml28
1 files changed, 21 insertions, 7 deletions
diff --git a/.drone.yml b/.drone.yml
index 82666efec..d6e5ff3ee 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -4,18 +4,25 @@ name: qt-5.12
steps:
- name: build and test
image: nextcloudci/client-5.12:client-5.12-10
+ volumes:
+ - name: build
+ path: /drone/build
commands:
# Build client
- /bin/bash -c "
export CC=gcc-10 &&
export CXX=g++-10 &&
- mkdir build &&
- cd build &&
- cmake -D NO_SHIBBOLETH=1 -DBUILD_UPDATER=ON -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=1 -DSANITIZE_ADDRESS=ON ../ &&
+ cd /drone/build &&
+ cmake -DNO_SHIBBOLETH=1 -DBUILD_UPDATER=ON -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=1 -DSANITIZE_ADDRESS=ON ../src &&
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"
+
+volumes:
+- name: build
+ temp: {}
+
trigger:
branch:
- master
@@ -30,20 +37,27 @@ name: qt-5.12-clang
steps:
- name: build and test
image: nextcloudci/client-5.12:client-5.12-10
+ volumes:
+ - name: build
+ path: /drone/build
commands:
# Build client
- /bin/bash -c "
export CC=clang-10 &&
export CXX=clang++-10 &&
- 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 ../ &&
+ cd /drone/build &&
+ cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DNO_SHIBBOLETH=1 -DBUILD_UPDATER=ON -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=1 -DSANITIZE_ADDRESS=ON ../src &&
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"
# Static analysis with clang-tidy
- - "! run-clang-tidy-10 -p build -quiet | grep -A 5 ': error:'"
+ - "! run-clang-tidy-10 -p /drone/build -quiet | grep -A 5 ': error:'"
+
+volumes:
+- name: build
+ temp: {}
+
trigger:
branch:
- master