Commit Graph

54 Commits

Author SHA1 Message Date
Federico Ceratto a94ee96561 Support native packages (Closes #1) 2018-09-25 13:59:02 +02:00
Hans-Christoph Steiner 305bd2e66d uscan needs gnupg2 and libwww-perl to function 2018-09-25 13:09:32 +02:00
Hans-Christoph Steiner 33ee16058f apt_get_auto_install function to install packages then mark as auto 2018-09-25 13:09:32 +02:00
Hans-Christoph Steiner b3af073a08 if package has no pristine-tar branch, fallback to uscan 2018-09-25 13:09:32 +02:00
Hans-Christoph Steiner efb5121a4b aptly: set up to work with any release's GnuPG config
https://github.com/aptly-dev/aptly/issues/657
https://github.com/aptly-dev/aptly/issues/699
2018-09-25 13:09:32 +02:00
Hans-Christoph Steiner 3f6983651a Merge branch 'patch-1' into 'master'
Fix test in .gitlab-ci.yml

See merge request eighthave/ci-image-git-buildpackage!1
2018-09-25 11:03:59 +00:00
Artem Leshchev 543768db7f Fix test in .gitlab-ci.yml 2018-07-11 21:32:58 +00:00
Hans-Christoph Steiner 6e021bd3a8 mark lintian and depends as "auto" for easy removal before tests. 2018-06-26 09:56:49 +02:00
Hans-Christoph Steiner fdcdbea4f3 aptly needs gnupg 2018-06-26 09:55:35 +02:00
Hans-Christoph Steiner 5442608424 delete any possible remnants from previous runs 2018-06-25 15:45:01 +02:00
Hans-Christoph Steiner d0a33ae7f5 mark packages installed here as 'auto' so they can be easily removed
This makes for clean autopkgtest runs.
2018-06-25 15:45:00 +02:00
Hans-Christoph Steiner 7a51128ce7 include autodep8 in image, it'll be commonly used 2018-06-22 08:57:47 +02:00
Hans-Christoph Steiner b5f77cd13f copy packages into place to be saved as an "artifact" 2018-06-20 22:54:44 +02:00
Hans-Christoph Steiner 2caa367232 split out functionality from entrypoint into individual scripts 2018-06-20 22:54:41 +02:00
Hans-Christoph Steiner 213709b138 test: run bash syntax checker on all scripts 2018-06-20 22:53:42 +02:00
Hans-Christoph Steiner a5850ff189 break out autopkgtest into a standalone script 2018-06-20 22:53:40 +02:00
Hans-Christoph Steiner a25a9565ac move lintian runs to script called gitlab-ci-lintian 2018-06-20 21:44:34 +02:00
Hans-Christoph Steiner 494870826c add script for publishing to an apt repo using aptly 2018-06-20 21:44:34 +02:00
Hans-Christoph Steiner 2e4fcac191 set APT_GET_OPTIONS for all scripts 2018-06-20 21:44:32 +02:00
Hans-Christoph Steiner 61a5b0173f require GitLab CI session to run these scripts
These scripts assume things that you only get while running in a CI
Docker container, like root access and state that is reset everytime.
2018-06-20 21:44:15 +02:00
Hans-Christoph Steiner 6c596bd7b9 provide scripts for enabling sid or experimental 2018-06-14 22:38:10 +02:00
Hans-Christoph Steiner 6039fc59c8 apt preferences to install from sid/experimental only when required 2018-06-14 22:37:29 +02:00
Hans-Christoph Steiner 400da12f90 support adding an extra apt source from the build job 2018-06-14 22:37:29 +02:00
Hans-Christoph Steiner 3fa250a25b add APT_GET_OPTIONS to let jobs specific command line flags
This is for things like adding --allow-unauthenticated when using CI aptly
repos.
2018-06-14 14:59:39 +02:00
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