File: .gitlab-ci.yml

package info (click to toggle)
praelector 0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 7,364 kB
  • sloc: cpp: 9,647; xml: 73; makefile: 12; sh: 1
file content (34 lines) | stat: -rw-r--r-- 842 bytes parent folder | download
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
26
27
28
29
30
31
32
33
34
image: registry.salsa.debian.org/salsa-ci-team/ci-image-git-buildpackage:latest

# Is performed before the scripts in the stages step
before_script:  
  - source /etc/profile

# Defines stages which are to be executed
stages:  
  - build

# Stage "build"
run-build:  
  stage: build
  script:
    - gitlab-ci-enable-sid
    - apt-get -qy update
    - apt-get -qy dist-upgrade
    - git clean -fdx
    - git reset --hard
    - git fetch --all
    - git checkout master
    - apt-get -qy -o APT::Get::Build-Dep-Automatic=yes build-dep /builds/georgesk/praelector
    - gbp buildpackage -us -uc
    - mkdir build
    - mv ../*.deb ../*debian* ../*.dsc ../*.changes ../*.build* build/

  # This stage is only executed for new tags
  only:
    - tags

  # The files which are to be made available in GitLab
  artifacts:
    paths:
      - build/*