1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
image: debian:sid
variables:
# adjust to your source package
PKG: ruby-shindo
stages:
- build
- autopkgtest
package_build:
stage: build
script:
- echo "deb-src http://deb.debian.org/debian sid main" >> /etc/apt/sources.list && apt update -qq && apt build-dep ./ -y -qq
- apt install -y -qq dpkg-dev && dpkg-buildpackage -us -uc -A && mkdir build; cd ../; ls -al && mv ./${PKG}_*.deb ./${PKG}_*.changes ${PKG}/build/
artifacts:
paths:
- build/*.deb
- build/*.changes
#piuparts:
# stage: test
# script:
# - apt update -qq && apt install -y -qq piuparts
# - piuparts --mirror=http://deb.debian.org/debian --logfile=../piuparts.log --fail-on-broken-symlinks build/*.changes
# dependencies:
# - package_build
autopkgtest:
stage: autopkgtest
script:
- apt update -qq && apt install -y -qq autopkgtest
- autopkgtest build/*.changes -- null
dependencies:
- package_build
|