2022-04-27 23:04:17 +02:00
|
|
|
clone:
|
|
|
|
git:
|
|
|
|
image: woodpeckerci/plugin-git
|
|
|
|
tags: true
|
|
|
|
|
2022-04-27 17:14:38 +02:00
|
|
|
pipeline:
|
2022-04-27 17:12:00 +02:00
|
|
|
test:
|
|
|
|
image: debian
|
|
|
|
commands:
|
2022-04-27 18:56:03 +02:00
|
|
|
- DEBIAN_FRONTEND=noninteractive apt-get -qq update < /dev/null > /dev/null
|
|
|
|
- DEBIAN_FRONTEND=noninteractive apt-get -y -qq upgrade < /dev/null > /dev/null
|
|
|
|
- DEBIAN_FRONTEND=noninteractive apt-get -qq -y install --no-install-recommends python3-all python3-dev python3-pip python3-venv build-essential pkg-config libsystemd-dev libldap2-dev libsasl2-dev libpq-dev libmariadb-dev wget unzip < /dev/null > /dev/null
|
2022-04-27 17:29:13 +02:00
|
|
|
- wget --no-verbose -O /opt/instantclient-basic-linux.x64-21.4.0.0.0dbru.zip https://download.oracle.com/otn_software/linux/instantclient/214000/instantclient-basic-linux.x64-21.4.0.0.0dbru.zip
|
2022-04-27 18:56:03 +02:00
|
|
|
- unzip -qq -d /opt /opt/instantclient-basic-linux.x64-21.4.0.0.0dbru.zip
|
2022-04-27 17:12:00 +02:00
|
|
|
- echo /opt/instantclient_* > /etc/ld.so.conf.d/oracle-instantclient.conf
|
|
|
|
- ldconfig
|
2022-04-27 18:56:03 +02:00
|
|
|
- ./tests.sh --quiet
|
2022-04-28 00:36:11 +02:00
|
|
|
|
2022-04-27 17:12:00 +02:00
|
|
|
build:
|
|
|
|
image: debian
|
2022-04-27 20:20:52 +02:00
|
|
|
when:
|
2022-04-28 00:01:54 +02:00
|
|
|
event: tag
|
|
|
|
branch: master
|
2022-04-27 17:12:00 +02:00
|
|
|
commands:
|
2022-04-27 18:56:03 +02:00
|
|
|
- DEBIAN_FRONTEND=noninteractive apt-get -qq update < /dev/null > /dev/null
|
|
|
|
- DEBIAN_FRONTEND=noninteractive apt-get -y -qq upgrade < /dev/null > /dev/null
|
|
|
|
- DEBIAN_FRONTEND=noninteractive apt-get -qq -y install --no-install-recommends git sed python3-all python3-dev python3-pip python3-venv dpkg-dev build-essential debhelper dh-python bash-completion lsb-release < /dev/null > /dev/null
|
|
|
|
- ./build.sh --quiet
|
2022-04-27 23:59:23 +02:00
|
|
|
- rm -fr deb_dist/mylib-*
|
2022-04-28 00:36:11 +02:00
|
|
|
|
|
|
|
publish-dryrun:
|
|
|
|
image: debian
|
|
|
|
when:
|
|
|
|
event: tag
|
|
|
|
branch: master
|
|
|
|
commands:
|
|
|
|
- ls dist/*
|
|
|
|
- ls deb_dist/*
|
|
|
|
|
2022-04-27 17:12:00 +02:00
|
|
|
publish:
|
|
|
|
image: plugins/gitea-release
|
2022-04-27 20:20:52 +02:00
|
|
|
when:
|
2022-04-28 00:01:54 +02:00
|
|
|
event: tag
|
|
|
|
branch: master
|
2022-04-27 17:12:00 +02:00
|
|
|
settings:
|
|
|
|
api_key:
|
|
|
|
from_secret: gitea_token
|
|
|
|
base_url: https://gitea.zionetrix.net
|
2022-04-27 22:57:38 +02:00
|
|
|
files:
|
|
|
|
- dist/*
|
|
|
|
- deb_dist/*
|
2022-04-27 17:12:00 +02:00
|
|
|
checksum:
|
|
|
|
- md5
|
|
|
|
- sha512
|