summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 8fc9af85e5ce61b16766a772d6a337073ea03e6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# To build packages locally using docker and gitlab-ci-multi-runner please follow
# https://github.com/pixelated/pixelated-user-agent/wiki/Debian-package#build-debian-packages-locally

stages:
  - package

package:
  stage: package
  image: "0xacab.org:4567/pixelated/pixelated-user-agent/buildpackage:latest"
  artifacts:
    paths:
    - '*_*.xz'
    - '*_*.dsc'
    - '*_amd64.changes'
    - '*.deb'
    - 'results/*'
    - '*.log'
  script:
    - build-build-package
    # Test the package with lintian. Don't fail on warnings/errors.
    - sh -c 'build-test-lintian || :'
    - ls -la
    # When running locally with `gitlab-runner exec` copy artifacts to mounted
    # docker volume
    - sh -c '( [ -d /tmp/docker_volume ] && cp -r /builds/project-0 /tmp/docker_volume ) || :'