2019-04-12 12:14:05 +03:00
|
|
|
kind: pipeline
|
|
|
|
name: qt-5.12
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build and test
|
2020-08-06 01:14:27 +03:00
|
|
|
image: nextcloudci/client-5.12:client-5.12-10
|
2019-04-12 12:14:05 +03:00
|
|
|
commands:
|
|
|
|
# Build client
|
|
|
|
- /bin/bash -c "
|
2020-08-06 01:14:27 +03:00
|
|
|
export CC=gcc-10 &&
|
|
|
|
export CXX=g++-10 &&
|
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 ../ &&
|
2020-08-06 01:01:12 +03:00
|
|
|
make -j$(nproc) &&
|
2019-04-12 12:14:05 +03:00
|
|
|
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-08-06 01:14:27 +03:00
|
|
|
image: nextcloudci/client-5.12:client-5.12-10
|
2019-04-12 12:14:05 +03:00
|
|
|
commands:
|
|
|
|
# Build client
|
|
|
|
- /bin/bash -c "
|
2020-08-06 01:14:27 +03:00
|
|
|
export CC=clang-10 &&
|
|
|
|
export CXX=clang++-10 &&
|
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 ../ &&
|
2020-08-06 01:01:12 +03:00
|
|
|
make -j$(nproc) &&
|
2019-04-12 12:14:05 +03:00
|
|
|
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
|
2020-08-06 01:14:27 +03:00
|
|
|
- "! run-clang-tidy-10 -p build -quiet | grep -A 5 ': error:'"
|
2019-04-12 12:14:05 +03:00
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
- push
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: AppImage
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
2020-07-22 04:28:06 +03:00
|
|
|
image: nextcloudci/client-5.12:client-5.12-9
|
2020-07-19 08:51:24 +03:00
|
|
|
environment:
|
|
|
|
CI_UPLOAD_GIT_TOKEN:
|
|
|
|
from_secret: CI_UPLOAD_GIT_TOKEN
|
|
|
|
CI_UPLOAD_GIT_USERNAME:
|
|
|
|
from_secret: CI_UPLOAD_GIT_USERNAME
|
2019-04-12 12:14:05 +03:00
|
|
|
commands:
|
|
|
|
- /bin/bash -c "./admin/linux/build-appimage.sh"
|
2020-07-19 08:51:24 +03:00
|
|
|
- /bin/bash -c "./admin/linux/upload-appimage.sh" || echo "Upload failed, however this is an optional step."
|
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
|