pep8
[pixelated-user-agent.git] / .gitlab-ci.yml
1 # To build packages locally using docker and gitlab-ci-multi-runner please follow
2 # https://github.com/pixelated/pixelated-user-agent/wiki/Debian-package#build-debian-packages-locally
3
4 stages:
5   - package
6
7 package:
8   stage: package
9   image: "0xacab.org:4567/pixelated/pixelated-user-agent/buildpackage:latest"
10   artifacts:
11     paths:
12     - '*_*.xz'
13     - '*_*.dsc'
14     - '*_amd64.changes'
15     - '*.deb'
16     - 'results/*'
17     - '*.log'
18   script:
19     - build-build-package
20     # Test the package with lintian. Don't fail on warnings/errors.
21     - sh -c 'build-test-lintian || :'
22     - ls -la
23     # When running locally with `gitlab-runner exec` copy artifacts to mounted
24     # docker volume
25     - sh -c '( [ -d /tmp/docker_volume ] && cp -r /builds/project-0 /tmp/docker_volume ) || :'