Commit Graph

30 Commits

Author SHA1 Message Date
Hans-Christoph Steiner f84c7aaec1 clean/reset git repo before switching branches and building 2018-06-04 20:16:19 +02:00
Hans-Christoph Steiner 1312254a5d automatically run autopkgtest when the package includes them 2018-06-04 20:16:19 +02:00
Hans-Christoph Steiner 58285e0e1b add pinned sid and experimental, for packages not in testing 2018-05-28 14:13:47 +02:00
Hans-Christoph Steiner e2c8c58363 allow setting release to sid using DEBIAN_RELEASE env var 2018-05-24 21:49:30 +02:00
Hans-Christoph Steiner 03c69d512c include autopkgtest/build-essential to speed up and save bandwidth
This Docker image will be cached locally on the runners and often reused.
2018-05-23 21:15:47 +02:00
Hans-Christoph Steiner 09d87e7784 run lintian by default after successful builds 2018-05-23 20:09:39 +02:00
Hans-Christoph Steiner 17cff41d73 switch to non "slim" base image to preserve all files for testing
This strips all sorts of required things, like /usr/share/lintian, and
seems to strip other things in /usr/share.

* https://github.com/debuerreotype/debuerreotype/blob/master/scripts/.slimify-excludes
* https://github.com/tianon/docker-brew-debian/issues/48
2018-05-23 19:18:58 +02:00
Hans-Christoph Steiner 2a6fe47e38 skip Build-Depends scraping if apt-get is new enough
Starting in apt v1.1, `apt-get build-dep` accepts a path to a source package
as an argument, instead of just a package name.
2018-05-23 14:51:33 +02:00
Hans-Christoph Steiner 930b79366a gitlab-ci: ignore failing docker run test result
This lets this pipeline publish the 'latest' tag, even though the 'test'
job is failing.  It seems that gitlab needs changes to support using
CI_CONFIG_PATH here.
2018-05-22 22:42:54 +02:00
Hans-Christoph Steiner ff2c6e99a8 run bash syntax checker on ENTRYPOINT script 2018-05-22 22:35:43 +02:00
Hans-Christoph Steiner adc1471c5a include ca-certificates packages so HTTPS connections verify 2018-05-22 22:35:43 +02:00
Hans-Christoph Steiner 5b370ec68d prefer `apt-get build-dep` if the current Debian version works 2018-05-22 22:35:43 +02:00
Hans-Christoph Steiner 38ad096a13 force pristine-tar branch to latest version from origin 2018-05-22 22:35:43 +02:00
Hans-Christoph Steiner 188035f0e3 test: do actual run using gitlab-runner
https://gitlab.com/gitlab-org/gitlab-runner/issues/2438#note_34431388
2018-05-22 22:35:43 +02:00
Hans-Christoph Steiner 2693459488 small cleanups 2018-05-22 22:35:43 +02:00
Hans-Christoph Steiner 4cd308deaa use lockfile to prevent running gitlab-ci commands twice
Workaround for this bug:
https://gitlab.com/gitlab-org/gitlab-runner/issues/1380#note_48552305
2018-05-22 22:35:41 +02:00
Hans-Christoph Steiner cbb63b4343 support building merge request branches
CI_COMMIT_TAG is only present when building a tag, in which case the var
CI_COMMIT_REF_NAME is set to the tag name rather than the branch name.  gbp
does not build from tags, only branches.
2018-05-22 22:35:00 +02:00
Hans-Christoph Steiner aaefe38f84 auto-run git-buildpackage setup for all gitlab-ci scripts
the script: section will be run after gbp completes
2018-05-22 22:35:00 +02:00
Hans-Christoph Steiner 71d583ae8e properly parse Build-Depends: with | in it 2018-05-18 12:09:08 +02:00
Hans-Christoph Steiner 85af406fbf gitlab-ci: switch to using registry env vars 2018-05-16 16:47:29 +02:00
Hans-Christoph Steiner 6099e4363b print info and continue if cannot setup pristine-tar 2018-05-15 15:17:20 +02:00
Hans-Christoph Steiner 7a8d481dea ensure pristine-tar branch exists before running gbp 2018-05-15 14:38:10 +02:00
Hans-Christoph Steiner 71a5dcfe3c do not remove docs/etc so it is an accurate test env 2018-02-23 15:17:17 +01:00
Hans-Christoph Steiner 792922b378 include workaround to using openjdk-8-jre-headless on slim images
#863199
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863199
2018-02-22 23:19:18 +01:00
Hans-Christoph Steiner 21cd8dd366 quiet apt-get log output a bit 2018-02-22 22:06:16 +01:00
Hans-Christoph Steiner 85a831cefc switch from sid to testing to avoid random failures 2018-02-16 14:17:11 +01:00
Hans-Christoph Steiner 0c02510d94 run script with whole git-buildpackage process 2018-01-09 18:28:44 +01:00
Hans-Christoph Steiner 70e480390b first stab at docker image build process 2018-01-08 21:54:08 +01:00
Hans-Christoph Steiner c62e2042b7 add README 2018-01-08 17:43:05 +01:00
Hans-Christoph Steiner 52329fa6fe add license 2018-01-08 17:41:39 +01:00