diff options
author | Kevin Ottens <kevin.ottens@nextcloud.com> | 2020-08-06 01:14:27 +0300 |
---|---|---|
committer | Kevin Ottens (Rebase PR Action) <er-vin@users.noreply.github.com> | 2020-08-12 09:45:12 +0300 |
commit | be6a9dab01189e9f0124f4df632dbb770b5c73bf (patch) | |
tree | d5f706c9431ae394b0214aad11ee2750bd04bcc5 /.drone.yml | |
parent | d264f7078beabbf1469514f7395854caee1eadf5 (diff) |
Switch to the newer base CI image
We can now spare building QtKeychain over and over shortening a bit the
build. We also update to latest gcc and clang.
Note that I didn't switch the AppImage pipeline to the newer image to
keep the binary compatibility promise required by linuxdeployqt.
Probably would make sense to do a specific image for AppImage with some
other of the cleanups I did there (in particular to avoid building
qtkeychain every time).
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
Diffstat (limited to '.drone.yml')
-rw-r--r-- | .drone.yml | 50 |
1 files changed, 7 insertions, 43 deletions
diff --git a/.drone.yml b/.drone.yml index f00e6e23c..f2a4b98fc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,30 +3,12 @@ name: qt-5.12 steps: - name: build and test - image: nextcloudci/client-5.12:client-5.12-9 + image: nextcloudci/client-5.12:client-5.12-10 commands: - # Install QtKeyChain - - /bin/bash -c " - export CC=gcc-7 && - export CXX=g++-7 && - export QT_BASE_DIR=/opt/qt5.12.9 && - export QTDIR=\$QT_BASE_DIR && - export PATH=\$QT_BASE_DIR/bin:\$PATH && - export LD_LIBRARY_PATH=\$QT_BASE_DIR/lib/x86_64-linux-gnu:\$QT_BASE_DIR/lib:/usr/local/lib:\$LD_LIBRARY_PATH && - export PKG_CONFIG_PATH=\$QT_BASE_DIR/lib/pkgconfig:\$PKG_CONFIG_PATH && - cd /tmp && - git clone https://github.com/frankosterfeld/qtkeychain.git && - cd qtkeychain && - git checkout v0.9.1 && - mkdir build && - cd build && - cmake ../ && - make -j$(nproc) && - make install" # Build client - /bin/bash -c " - export CC=gcc-7 && - export CXX=g++-7 && + export CC=gcc-10 && + export CXX=g++-10 && export QT_BASE_DIR=/opt/qt5.12.9 && export QTDIR=\$QT_BASE_DIR && export PATH=\$QT_BASE_DIR/bin:\$PATH && @@ -52,30 +34,12 @@ name: qt-5.12-clang steps: - name: build and test - image: nextcloudci/client-5.12:client-5.12-9 + image: nextcloudci/client-5.12:client-5.12-10 commands: - # Install QtKeyChain - - /bin/bash -c " - export CC=clang-6.0 && - export CXX=clang++-6.0 && - export QT_BASE_DIR=/opt/qt5.12.9 && - export QTDIR=\$QT_BASE_DIR && - export PATH=\$QT_BASE_DIR/bin:\$PATH && - export LD_LIBRARY_PATH=\$QT_BASE_DIR/lib/x86_64-linux-gnu:\$QT_BASE_DIR/lib:/usr/local/lib:\$LD_LIBRARY_PATH && - export PKG_CONFIG_PATH=\$QT_BASE_DIR/lib/pkgconfig:\$PKG_CONFIG_PATH && - cd /tmp && - git clone https://github.com/frankosterfeld/qtkeychain.git && - cd qtkeychain && - git checkout v0.9.1 && - mkdir build && - cd build && - cmake ../ && - make -j$(nproc) && - make install" # Build client - /bin/bash -c " - export CC=clang-6.0 && - export CXX=clang++-6.0 && + export CC=clang-10 && + export CXX=clang++-10 && export QT_BASE_DIR=/opt/qt5.12.9 && export QTDIR=\$QT_BASE_DIR && export PATH=\$QT_BASE_DIR/bin:\$PATH && @@ -89,7 +53,7 @@ steps: chown -R test:test . && su -c 'ASAN_OPTIONS=detect_leaks=0 ctest --output-on-failure' test" # Static analysis with clang-tidy - - "! run-clang-tidy-6.0 -p build -quiet | grep -A 5 ': error:'" + - "! run-clang-tidy-10 -p build -quiet | grep -A 5 ': error:'" trigger: branch: - master |