mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 06:25:56 +03:00
fce0a50e37
Drone pipeline qt-5.12 failed because the unit tests didn't find OpenSSL. Signed-off-by: Michael Schuster <michael@schuster.ms>
383 lines
9.5 KiB
YAML
383 lines
9.5 KiB
YAML
kind: pipeline
|
|
name: qt-5.7
|
|
|
|
steps:
|
|
- name: build and test
|
|
image: nextcloudci/client-5.7:client-5.7-4
|
|
commands:
|
|
# Install QtKeyChain
|
|
- /bin/bash -c "
|
|
source /opt/qt57/bin/qt57-env.sh &&
|
|
cd /tmp &&
|
|
git clone https://github.com/frankosterfeld/qtkeychain.git &&
|
|
cd qtkeychain &&
|
|
git checkout v0.9.1 &&
|
|
mkdir build &&
|
|
cd build &&
|
|
cmake ../ &&
|
|
make &&
|
|
make install"
|
|
# Build client
|
|
- /bin/bash -c "
|
|
source /opt/qt57/bin/qt57-env.sh &&
|
|
mkdir build &&
|
|
cd build &&
|
|
cmake -D NO_SHIBBOLETH=1 -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=1 -DSANITIZE_ADDRESS=ON ../ &&
|
|
make &&
|
|
useradd -m -s /bin/bash test &&
|
|
chown -R test:test . &&
|
|
su -c 'ASAN_OPTIONS=detect_leaks=0 ctest --output-on-failure' test"
|
|
trigger:
|
|
branch:
|
|
- master
|
|
event:
|
|
- pull_request
|
|
- push
|
|
|
|
---
|
|
kind: pipeline
|
|
name: qt-5.8
|
|
|
|
steps:
|
|
- name: build and test
|
|
image: nextcloudci/client-5.8:client-5.8-4
|
|
commands:
|
|
# Install QtKeyChain
|
|
- /bin/bash -c "
|
|
source /opt/qt58/bin/qt58-env.sh &&
|
|
cd /tmp &&
|
|
git clone https://github.com/frankosterfeld/qtkeychain.git &&
|
|
cd qtkeychain &&
|
|
git checkout v0.9.1 &&
|
|
mkdir build &&
|
|
cd build &&
|
|
cmake ../ &&
|
|
make &&
|
|
make install"
|
|
# Build client
|
|
- /bin/bash -c "
|
|
source /opt/qt58/bin/qt58-env.sh &&
|
|
mkdir build &&
|
|
cd build &&
|
|
cmake -D NO_SHIBBOLETH=1 -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=1 -DSANITIZE_ADDRESS=ON ../ &&
|
|
make &&
|
|
useradd -m -s /bin/bash test &&
|
|
chown -R test:test . &&
|
|
su -c 'ASAN_OPTIONS=detect_leaks=0 ctest --output-on-failure' test"
|
|
trigger:
|
|
branch:
|
|
- master
|
|
event:
|
|
- pull_request
|
|
- push
|
|
|
|
---
|
|
kind: pipeline
|
|
name: qt-5.9
|
|
|
|
steps:
|
|
- name: build and test
|
|
image: nextcloudci/client-5.9:client-5.9-5
|
|
commands:
|
|
# Install QtKeyChain
|
|
- /bin/bash -c "
|
|
source /opt/qt59/bin/qt59-env.sh &&
|
|
cd /tmp &&
|
|
git clone https://github.com/frankosterfeld/qtkeychain.git &&
|
|
cd qtkeychain &&
|
|
git checkout v0.9.1 &&
|
|
mkdir build &&
|
|
cd build &&
|
|
cmake ../ &&
|
|
make &&
|
|
make install"
|
|
# Build client
|
|
- /bin/bash -c "
|
|
source /opt/qt59/bin/qt59-env.sh &&
|
|
mkdir build &&
|
|
cd build &&
|
|
cmake -D NO_SHIBBOLETH=1 -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=1 -DSANITIZE_ADDRESS=ON ../ &&
|
|
make &&
|
|
useradd -m -s /bin/bash test &&
|
|
chown -R test:test . &&
|
|
su -c 'ASAN_OPTIONS=detect_leaks=0 ctest --output-on-failure' test"
|
|
trigger:
|
|
branch:
|
|
- master
|
|
event:
|
|
- pull_request
|
|
- push
|
|
|
|
---
|
|
kind: pipeline
|
|
name: qt-5.10
|
|
|
|
steps:
|
|
- name: build and test
|
|
image: nextcloudci/client-5.10:client-5.10-3
|
|
commands:
|
|
# Install QtKeyChain
|
|
- /bin/bash -c "
|
|
export CC=gcc-7 &&
|
|
export CXX=g++-7 &&
|
|
source /opt/qt510/bin/qt510-env.sh &&
|
|
cd /tmp &&
|
|
git clone https://github.com/frankosterfeld/qtkeychain.git &&
|
|
cd qtkeychain &&
|
|
git checkout v0.9.1 &&
|
|
mkdir build &&
|
|
cd build &&
|
|
cmake ../ &&
|
|
make &&
|
|
make install"
|
|
# Build client
|
|
- /bin/bash -c "
|
|
export CC=gcc-7 &&
|
|
export CXX=g++-7 &&
|
|
source /opt/qt510/bin/qt510-env.sh &&
|
|
mkdir build &&
|
|
cd build &&
|
|
cmake -D NO_SHIBBOLETH=1 -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=1 -DSANITIZE_ADDRESS=ON ../ &&
|
|
make &&
|
|
useradd -m -s /bin/bash test &&
|
|
chown -R test:test . &&
|
|
su -c 'ASAN_OPTIONS=detect_leaks=0 ctest --output-on-failure' test"
|
|
trigger:
|
|
branch:
|
|
- master
|
|
event:
|
|
- pull_request
|
|
- push
|
|
|
|
---
|
|
kind: pipeline
|
|
name: qt-5.11
|
|
|
|
steps:
|
|
- name: build and test
|
|
image: nextcloudci/client-5.11:client-5.11-3
|
|
commands:
|
|
# Install QtKeyChain
|
|
- /bin/bash -c "
|
|
export CC=gcc-7 &&
|
|
export CXX=g++-7 &&
|
|
source /opt/qt511/bin/qt511-env.sh &&
|
|
cd /tmp &&
|
|
git clone https://github.com/frankosterfeld/qtkeychain.git &&
|
|
cd qtkeychain &&
|
|
git checkout v0.9.1 &&
|
|
mkdir build &&
|
|
cd build &&
|
|
cmake ../ &&
|
|
make &&
|
|
make install"
|
|
# Build client
|
|
- /bin/bash -c "
|
|
export CC=gcc-7 &&
|
|
export CXX=g++-7 &&
|
|
source /opt/qt511/bin/qt511-env.sh &&
|
|
mkdir build &&
|
|
cd build &&
|
|
cmake -D NO_SHIBBOLETH=1 -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=1 -DSANITIZE_ADDRESS=ON ../ &&
|
|
make &&
|
|
useradd -m -s /bin/bash test &&
|
|
chown -R test:test . &&
|
|
su -c 'ASAN_OPTIONS=detect_leaks=0 ctest --output-on-failure' test"
|
|
trigger:
|
|
branch:
|
|
- master
|
|
event:
|
|
- pull_request
|
|
- push
|
|
|
|
---
|
|
kind: pipeline
|
|
name: qt-5.11-clang
|
|
|
|
steps:
|
|
- name: build and test
|
|
image: nextcloudci/client-5.11:client-5.11-3
|
|
commands:
|
|
# Install QtKeyChain
|
|
- /bin/bash -c "
|
|
export CC=clang-6.0 &&
|
|
export CXX=clang++-6.0 &&
|
|
source /opt/qt511/bin/qt511-env.sh &&
|
|
cd /tmp &&
|
|
git clone https://github.com/frankosterfeld/qtkeychain.git &&
|
|
cd qtkeychain &&
|
|
git checkout v0.9.1 &&
|
|
mkdir build &&
|
|
cd build &&
|
|
cmake ../ &&
|
|
make &&
|
|
make install"
|
|
# Build client
|
|
- /bin/bash -c "
|
|
export CC=clang-6.0 &&
|
|
export CXX=clang++-6.0 &&
|
|
source /opt/qt511/bin/qt511-env.sh &&
|
|
mkdir build &&
|
|
cd build &&
|
|
cmake -D NO_SHIBBOLETH=1 -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=1 -DSANITIZE_ADDRESS=ON ../ &&
|
|
make &&
|
|
useradd -m -s /bin/bash test &&
|
|
chown -R test:test . &&
|
|
su -c 'ASAN_OPTIONS=detect_leaks=0 ctest --output-on-failure' test"
|
|
trigger:
|
|
branch:
|
|
- master
|
|
event:
|
|
- pull_request
|
|
- push
|
|
|
|
---
|
|
kind: pipeline
|
|
name: qt-5.12
|
|
|
|
steps:
|
|
- name: build and test
|
|
image: nextcloudci/client-5.12:client-5.12-5
|
|
commands:
|
|
# Install QtKeyChain
|
|
- /bin/bash -c "
|
|
export CC=gcc-7 &&
|
|
export CXX=g++-7 &&
|
|
export QT_BASE_DIR=/opt/qt5.12.5 &&
|
|
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 &&
|
|
make install"
|
|
# Build client
|
|
- /bin/bash -c "
|
|
export CC=gcc-7 &&
|
|
export CXX=g++-7 &&
|
|
export QT_BASE_DIR=/opt/qt5.12.5 &&
|
|
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 &&
|
|
mkdir build &&
|
|
cd build &&
|
|
cmake -D NO_SHIBBOLETH=1 -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=1 -DSANITIZE_ADDRESS=ON ../ &&
|
|
make &&
|
|
useradd -m -s /bin/bash test &&
|
|
chown -R test:test . &&
|
|
su -c 'ASAN_OPTIONS=detect_leaks=0 ctest --output-on-failure' test"
|
|
trigger:
|
|
branch:
|
|
- master
|
|
event:
|
|
- pull_request
|
|
- push
|
|
|
|
---
|
|
kind: pipeline
|
|
name: qt-5.12-clang
|
|
|
|
steps:
|
|
- name: build and test
|
|
image: nextcloudci/client-5.12:client-5.12-5
|
|
commands:
|
|
# Install QtKeyChain
|
|
- /bin/bash -c "
|
|
export CC=clang-6.0 &&
|
|
export CXX=clang++-6.0 &&
|
|
export QT_BASE_DIR=/opt/qt5.12.5 &&
|
|
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 &&
|
|
make install"
|
|
# Build client
|
|
- /bin/bash -c "
|
|
export CC=clang-6.0 &&
|
|
export CXX=clang++-6.0 &&
|
|
export QT_BASE_DIR=/opt/qt5.12.5 &&
|
|
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 &&
|
|
mkdir build &&
|
|
cd build &&
|
|
cmake -D NO_SHIBBOLETH=1 -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=1 -DSANITIZE_ADDRESS=ON ../ &&
|
|
make &&
|
|
useradd -m -s /bin/bash test &&
|
|
chown -R test:test . &&
|
|
su -c 'ASAN_OPTIONS=detect_leaks=0 ctest --output-on-failure' test"
|
|
trigger:
|
|
branch:
|
|
- master
|
|
event:
|
|
- pull_request
|
|
- push
|
|
|
|
---
|
|
kind: pipeline
|
|
name: AppImage
|
|
|
|
steps:
|
|
- name: build
|
|
image: nextcloudci/client-5.12:client-5.12-5
|
|
commands:
|
|
- /bin/bash -c "./admin/linux/build-appimage.sh"
|
|
- /bin/bash -c "./admin/linux/upload-appimage.sh"
|
|
trigger:
|
|
branch:
|
|
- master
|
|
event:
|
|
- pull_request
|
|
- push
|
|
---
|
|
kind: pipeline
|
|
name: Debian
|
|
|
|
steps:
|
|
- name: build
|
|
image: nextcloudci/client-debian-ci:client-debian-ci-2
|
|
commands:
|
|
- /bin/bash -c "./admin/linux/debian/drone-build.sh"
|
|
environment:
|
|
DEBIAN_SECRET_KEY:
|
|
from_secret: DEBIAN_SECRET_KEY
|
|
DEBIAN_SECRET_IV:
|
|
from_secret: DEBIAN_SECRET_IV
|
|
trigger:
|
|
branch:
|
|
- master
|
|
event:
|
|
- pull_request
|
|
- push
|
|
---
|
|
kind: pipeline
|
|
name: Documentation
|
|
|
|
steps:
|
|
- name: build
|
|
image: nextcloudci/documentation:documentation-5
|
|
commands:
|
|
- cd doc
|
|
- make html
|
|
trigger:
|
|
branch:
|
|
- master
|
|
event:
|
|
- pull_request
|
|
- push
|