python-mylib/.woodpecker.yml
Benjamin Renard e3931e50da
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
CI: disable recommends package installation and make wget less verbose
2022-04-27 17:29:13 +02:00

33 lines
1.3 KiB
YAML

pipeline:
test:
image: debian
commands:
- apt update
- apt -y upgrade
- apt install -y --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
- 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
- unzip -d /opt /opt/instantclient-basic-linux.x64-21.4.0.0.0dbru.zip
- echo /opt/instantclient_* > /etc/ld.so.conf.d/oracle-instantclient.conf
- ldconfig
- python3 -m venv venv
- source venv/bin/activate
- python3 -m pip install -e ".[dev]"
- python3 -m pytest tests
build:
image: debian
commands:
- apt update
- apt -y upgrade
- apt -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
- ./build.sh
- rm -fr deb_dist/python3-mylib-*
publish:
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
base_url: https://gitea.zionetrix.net
files: dist/* deb_dist/*
checksum:
- md5
- sha512