Commit Graph

70 Commits

Author SHA1 Message Date
Louis-Philippe Véronneau 2dd560d329
make uscan_download true by default and inverse the logic 2019-07-19 13:54:06 -04:00
Louis-Philippe Véronneau 9c3eb3e4c2
don't mix tabs and spaces 2019-07-19 13:52:43 -04:00
Hans-Christoph Steiner 9387318146 improved check for working pristine-tar related to #901952
Only downgrade tar if pristine-tar does not work and tar is 1.30.  Otherwise
use uscan.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=901952
2019-07-03 15:59:42 +02:00
Hans-Christoph Steiner fcfd93f7cd standardize whitespace in scripts 2019-07-03 15:46:22 +02:00
Hans-Christoph Steiner f13b5521f9 Merge branch 'master' into 'master'
don't use '--skip-signature' when calling uscan since bug #926429 brakes the download function

See merge request salsa-ci-team/ci-image-git-buildpackage!6
2019-07-03 13:29:51 +00:00
Louis-Philippe Véronneau c0a806f303
don't use '--skip-signature' when calling uscan since bug #926429 brakes the download function 2019-04-25 12:33:19 -04:00
Hans-Christoph Steiner 8bc079693d Merge branch 'fix-failed-to-fetch-gitlab-runner-helper-image' into 'master'
fix failure to fetch gitlab-runner-helper docker image

See merge request salsa-ci-team/ci-image-git-buildpackage!4
2019-01-21 10:04:24 +00:00
Hans-Christoph Steiner 405dbd28f7 Merge branch 'reduce-docker-image-layers' into 'master'
Reduce docker image layers

See merge request salsa-ci-team/ci-image-git-buildpackage!5
2019-01-21 10:03:46 +00:00
Hans-Christoph Steiner d170a2b6c2 Merge branch 'use-pristine-tar' into 'master'
Tell gbp to use pristine-tar if it exists

See merge request salsa-ci-team/ci-image-git-buildpackage!2
2019-01-21 09:58:16 +00:00
You-Sheng Yang d5662634ef use LABEL instead of deprecated MAINTAINER directive 2018-11-13 14:35:24 +08:00
You-Sheng Yang 6ae3bc0b84 reduce built docker image layers 2018-11-13 14:35:13 +08:00
You-Sheng Yang 67af34af8c fix failure to fetch gitlab-runner-helper docker image 2018-11-13 13:40:51 +08:00
Colin Watson 84e2a28ad5 Tell gbp to use pristine-tar if it exists
This makes it possible to use gitlab-ci-git-buildpackage on repositories
whose upstream tags don't conform to the default layout expected by gbp
buildpackage, provided that they have a useful pristine-tar branch.
2018-11-05 23:38:21 +00:00
Hans-Christoph Steiner 720cf74574 gitlab-ci-add-pages-repo script to add generated apt repos 2018-09-26 16:05:56 +02:00
Hans-Christoph Steiner 3ace0c6e64 downgrade tar to v1.29 if v1.30 is installed
tar v1.30 breaks pristine-tar's ability to work with commits created
by older versions of tar
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=901952
2018-09-26 10:44:09 +02:00
Hans-Christoph Steiner a4e6fc9bd8 disable checking test success til it works 2018-09-25 14:09:38 +02:00
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