2019-04-12 12:14:05 +03:00
|
|
|
kind: pipeline
|
|
|
|
name: qt-5.12
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build and test
|
2020-05-27 17:43:24 +03:00
|
|
|
image: nextcloudci/client-5.12:client-5.12-7
|
2019-04-12 12:14:05 +03:00
|
|
|
commands:
|
|
|
|
# Install QtKeyChain
|
|
|
|
- /bin/bash -c "
|
|
|
|
export CC=gcc-7 &&
|
|
|
|
export CXX=g++-7 &&
|
2020-05-27 17:43:24 +03:00
|
|
|
export QT_BASE_DIR=/opt/qt5.12.8 &&
|
2019-11-17 03:59:04 +03:00
|
|
|
export QTDIR=\$QT_BASE_DIR &&
|
|
|
|
export PATH=\$QT_BASE_DIR/bin:\$PATH &&
|
2019-11-17 04:56:53 +03:00
|
|
|
export LD_LIBRARY_PATH=\$QT_BASE_DIR/lib/x86_64-linux-gnu:\$QT_BASE_DIR/lib:/usr/local/lib:\$LD_LIBRARY_PATH &&
|
2019-11-17 03:59:04 +03:00
|
|
|
export PKG_CONFIG_PATH=\$QT_BASE_DIR/lib/pkgconfig:\$PKG_CONFIG_PATH &&
|
2019-04-12 12:14:05 +03:00
|
|
|
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 &&
|
2020-05-27 17:43:24 +03:00
|
|
|
export QT_BASE_DIR=/opt/qt5.12.8 &&
|
2019-11-17 03:59:04 +03:00
|
|
|
export QTDIR=\$QT_BASE_DIR &&
|
|
|
|
export PATH=\$QT_BASE_DIR/bin:\$PATH &&
|
2019-11-17 04:56:53 +03:00
|
|
|
export LD_LIBRARY_PATH=\$QT_BASE_DIR/lib/x86_64-linux-gnu:\$QT_BASE_DIR/lib:/usr/local/lib:\$LD_LIBRARY_PATH &&
|
2019-11-17 03:59:04 +03:00
|
|
|
export PKG_CONFIG_PATH=\$QT_BASE_DIR/lib/pkgconfig:\$PKG_CONFIG_PATH &&
|
2019-04-12 12:14:05 +03:00
|
|
|
mkdir build &&
|
|
|
|
cd build &&
|
2020-03-09 03:48:07 +03:00
|
|
|
cmake -D NO_SHIBBOLETH=1 -DBUILD_UPDATER=ON -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=1 -DSANITIZE_ADDRESS=ON ../ &&
|
2019-04-12 12:14:05 +03:00
|
|
|
make &&
|
|
|
|
useradd -m -s /bin/bash test &&
|
|
|
|
chown -R test:test . &&
|
2019-10-22 00:01:22 +03:00
|
|
|
su -c 'ASAN_OPTIONS=detect_leaks=0 ctest --output-on-failure' test"
|
2019-04-12 12:14:05 +03:00
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
- push
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: qt-5.12-clang
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build and test
|
2020-05-27 17:43:24 +03:00
|
|
|
image: nextcloudci/client-5.12:client-5.12-7
|
2019-04-12 12:14:05 +03:00
|
|
|
commands:
|
|
|
|
# Install QtKeyChain
|
|
|
|
- /bin/bash -c "
|
|
|
|
export CC=clang-6.0 &&
|
|
|
|
export CXX=clang++-6.0 &&
|
2020-05-27 17:43:24 +03:00
|
|
|
export QT_BASE_DIR=/opt/qt5.12.8 &&
|
2019-11-17 03:59:04 +03:00
|
|
|
export QTDIR=\$QT_BASE_DIR &&
|
|
|
|
export PATH=\$QT_BASE_DIR/bin:\$PATH &&
|
2019-11-17 04:56:53 +03:00
|
|
|
export LD_LIBRARY_PATH=\$QT_BASE_DIR/lib/x86_64-linux-gnu:\$QT_BASE_DIR/lib:/usr/local/lib:\$LD_LIBRARY_PATH &&
|
2019-11-17 03:59:04 +03:00
|
|
|
export PKG_CONFIG_PATH=\$QT_BASE_DIR/lib/pkgconfig:\$PKG_CONFIG_PATH &&
|
2019-04-12 12:14:05 +03:00
|
|
|
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 &&
|
2020-05-27 17:43:24 +03:00
|
|
|
export QT_BASE_DIR=/opt/qt5.12.8 &&
|
2019-11-17 03:59:04 +03:00
|
|
|
export QTDIR=\$QT_BASE_DIR &&
|
|
|
|
export PATH=\$QT_BASE_DIR/bin:\$PATH &&
|
2019-11-17 04:56:53 +03:00
|
|
|
export LD_LIBRARY_PATH=\$QT_BASE_DIR/lib/x86_64-linux-gnu:\$QT_BASE_DIR/lib:/usr/local/lib:\$LD_LIBRARY_PATH &&
|
2019-11-17 03:59:04 +03:00
|
|
|
export PKG_CONFIG_PATH=\$QT_BASE_DIR/lib/pkgconfig:\$PKG_CONFIG_PATH &&
|
2019-04-12 12:14:05 +03:00
|
|
|
mkdir build &&
|
|
|
|
cd build &&
|
2020-05-27 19:44:25 +03:00
|
|
|
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DNO_SHIBBOLETH=1 -DBUILD_UPDATER=ON -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=1 -DSANITIZE_ADDRESS=ON ../ &&
|
2019-04-12 12:14:05 +03:00
|
|
|
make &&
|
|
|
|
useradd -m -s /bin/bash test &&
|
|
|
|
chown -R test:test . &&
|
2019-10-22 00:01:22 +03:00
|
|
|
su -c 'ASAN_OPTIONS=detect_leaks=0 ctest --output-on-failure' test"
|
2020-05-27 19:44:25 +03:00
|
|
|
# Static analysis with clang-tidy
|
|
|
|
- /bin/bash -c "
|
|
|
|
ln -s build/compile_commands.json . &&
|
|
|
|
run-clang-tidy-6.0"
|
2019-04-12 12:14:05 +03:00
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
- push
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: AppImage
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
2020-05-27 17:43:24 +03:00
|
|
|
image: nextcloudci/client-5.12:client-5.12-7
|
2019-04-12 12:14:05 +03:00
|
|
|
commands:
|
|
|
|
- /bin/bash -c "./admin/linux/build-appimage.sh"
|
2019-11-16 23:36:59 +03:00
|
|
|
- /bin/bash -c "./admin/linux/upload-appimage.sh"
|
2019-04-12 12:14:05 +03:00
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
- push
|
2019-04-27 11:46:58 +03:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: Debian
|
2019-04-12 12:14:05 +03:00
|
|
|
|
2019-04-27 11:46:58 +03:00
|
|
|
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
|
2019-04-12 12:14:05 +03:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: Documentation
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: nextcloudci/documentation:documentation-5
|
|
|
|
commands:
|
|
|
|
- cd doc
|
|
|
|
- make html
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
- push
|