Commit d5b02846 authored by Dmitry Smirnov's avatar Dmitry Smirnov

CI: initial commit + test for #916415

parent f022f4df
---
variables:
GIT_DEPTH: 128
PB_RESULT: '${CI_PROJECT_DIR}/../${CI_PROJECT_NAME}_${CI_BUILD_REF}_${CI_JOB_NAME}_${CI_JOB_ID}'
LINTIAN_CMD: eval lintian --no-tag-display-limit --info --display-info --color=auto --display-experimental --pedantic "${PB_RESULT}"/*.changes
# AUTOPKGTEST_CMD: eval autopkgtest --apt-upgrade --user debci --output-dir "${PB_RESULT}"/debci -- lxc --sudo autopkgtest-unstable-amd64
AUTOPKGTEST_CMD: eval autopkgtest --apt-upgrade --user sbuild --output-dir "${PB_RESULT}"/debci -- schroot unstable-amd64-sbuild
ORIGTAR_CMD: origtargz --tar-only
# PDEBUILD_CMD: eval pdebuild --use-pdebuild-internal --pbuildersatisfydepends "/usr/lib/pbuilder/pbuilder-satisfydepends-classic" --buildresult "${PB_RESULT}" --debbuildopts -sa
PDEBUILD_CMD: eval pdebuild --use-pdebuild-internal --buildresult "${PB_RESULT}" --debbuildopts -sa
EATMYDATA: "yes"
AUTOCLEANAPTCACHE: "yes"
USE_PDEBUILD_INTERNAL: "yes"
.origtargz:
script: &origtargz |
${ORIGTAR_CMD}
# rm -rf .git
# debian/unpack-components.sh
.pre_build:
script: &pre_build |
uname -a
date
env
pwd
mkdir -v -p "${PB_RESULT}"
stages:
- check
- build
dpkg-control:
stage: check
tags:
- cme
dependencies: []
allow_failure: false
script:
- wrap-and-sort --keep-first --trailing-comma # terrible way to fix "Cannot parse: ''" in "cme check dpkg-control".
- cme check dpkg-control
dpkg-copyright:
stage: check
tags:
- cme
dependencies: []
allow_failure: false
script: |
cme check dpkg-copyright
yamllint:
stage: check
tags:
- yamllint
dependencies: []
allow_failure: false
script: |
yamllint -c debian/.yamllint debian/.*.yml
## Build
testing_unstable-amd64:
stage: build
tags:
- pbuilder
- amd64
dependencies: []
allow_failure: false
before_script:
- *pre_build
script:
- *origtargz
- ${PDEBUILD_CMD} --architecture amd64 -- --basetgz /var/cache/pbuilder/testing_unstable-amd64.tgz
- ${LINTIAN_CMD}
unstable-i386:
stage: build
tags:
- pbuilder
- amd64
dependencies: []
allow_failure: false
before_script:
- *pre_build
script:
- *origtargz
- ${PDEBUILD_CMD} --architecture i386 -- --basetgz /var/cache/pbuilder/unstable-i386.tgz
unstable-amd64:
stage: build
tags:
- pbuilder
- amd64
dependencies: []
allow_failure: false
before_script:
- *pre_build
script:
- *origtargz
- ${PDEBUILD_CMD} --architecture amd64 -- --basetgz /var/cache/pbuilder/unstable-amd64.tgz
- ${LINTIAN_CMD}
stretch-amd64:
stage: build
tags:
- pbuilder
- amd64
dependencies: []
allow_failure: false
before_script:
- *pre_build
script:
- *origtargz
- ${PDEBUILD_CMD} --architecture amd64 -- --basetgz /var/cache/pbuilder/stretch-amd64.tgz
---
extends: default
rules:
line-length:
level: warning
max: 120
braces:
level: warning
max-spaces-inside: 8
trailing-spaces:
level: warning
colons:
level: warning
max-spaces-after: 16
empty-lines:
level: warning
......@@ -5,6 +5,8 @@ Maintainer: Dmitry Smirnov <onlyjob@debian.org>
Build-Depends: debhelper (>= 9)
# git is needed by get-orig-source
,git
# tests:
,coreutils
Standards-Version: 3.9.8
Homepage: https://github.com/Feh/nocache
Vcs-Browser: https://salsa.debian.org/debian/nocache
......
......@@ -15,6 +15,8 @@ override_dh_auto_install:
override_dh_auto_test:
# -NOCACHE_NR_FADVISE=2 dh_auto_test -v
## #916415
timeout 5 ./nocache apt show nowcache
## http://wiki.debian.org/onlyjob/get-orig-source
PKD = $(abspath $(dir $(MAKEFILE_LIST)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment