File: .gitlab-ci.yml

package info (click to toggle)
libdr-tarantool-perl 0.45-2
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 700 kB
  • ctags: 519
  • sloc: perl: 8,181; ansic: 2,398; makefile: 25; sh: 3
file content (65 lines) | stat: -rw-r--r-- 2,986 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# test:
#   script:
#     - apt-get update
#     - ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i ../issh gitlabuploader@debian.nowtaxi.ru pwd

before_script:

  - rm -f ../*.changes
  - sed -E -i 's/httpredir.debian.org/ftp.de.debian.org/g' /etc/apt/sources.list

  - apt-get update
  - apt-get install --yes --no-install-recommends build-essential equivs devscripts git-buildpackage ca-certificates pristine-tar git dpkg-dev coreutils ssh dput
  - DEBIAN_FRONTEND=noninteractive mk-build-deps --install --remove --tool 'apt-get --no-install-recommends --yes' debian/control
  - git describe
  - echo $UPLOAD_SSH_KEY | base64 -d > ../issh
  - chmod 0600 ../issh
  
  - echo '[nowtaxi-jessie]' > ../dput.cf
  - echo login = gitlabuploader >> ../dput.cf
  - echo fqdn = debian.nowtaxi.ru >> ../dput.cf
  - echo method = scp >> ../dput.cf
  - echo incoming = /srv/debian.incomming/jessie >> ../dput.cf
  - echo ssh_config_options = UserKnownHostsFile=/dev/null >> ../dput.cf
  - echo '     StrictHostKeyChecking=no' >> ../dput.cf
  - echo '     IdentityFile=../issh'  >> ../dput.cf
  
  - echo '[nowtaxi-wheezy]' >> ../dput.cf
  - echo login = gitlabuploader >> ../dput.cf
  - echo fqdn = debian.nowtaxi.ru >> ../dput.cf
  - echo method = scp >> ../dput.cf
  - echo incoming = /srv/debian.incomming/wheezy >> ../dput.cf
  - echo ssh_config_options = UserKnownHostsFile=/dev/null >> ../dput.cf
  - echo '     StrictHostKeyChecking=no' >> ../dput.cf
  - echo '     IdentityFile=../issh'  >> ../dput.cf
  
  - echo '[nowtaxi-stretch]' >> ../dput.cf
  - echo login = gitlabuploader >> ../dput.cf
  - echo fqdn = debian.nowtaxi.ru >> ../dput.cf
  - echo method = scp >> ../dput.cf
  - echo incoming = /srv/debian.incomming/stretch >> ../dput.cf
  - echo ssh_config_options = UserKnownHostsFile=/dev/null >> ../dput.cf
  - echo '     StrictHostKeyChecking=no' >> ../dput.cf
  - echo '     IdentityFile=../issh'  >> ../dput.cf

wheezy_deb:
  image: debian:wheezy
  script:
    - dch --newversion `git describe|sed -E 's#.*/##'|sed -E 's/-([0-9]+)-(.{8})$/+\1.\2/'`~wheezy --force-distribution --distribution nowtaxi-wheezy 'Autobuilt by git commit' 
    - dpkg-parsechangelog
    - apt-get -qq --yes install devscripts dpkg-dev git-buildpackage
    - git-buildpackage --git-ignore-branch --git-builder='debuild -i -I -uc -us -sa' --git-ignore-new
    - cat ../*.changes
    - dput --debug -u -c ../dput.cf nowtaxi-wheezy ../*.changes


jessie_deb:
  image: debian:jessie
  script:
    - dch --newversion `git describe|sed -E 's#.*/##'|sed -E 's/-([0-9]+)-(.{8})$/+\1.\2/'`~jessie --force-distribution --distribution nowtaxi-jessie 'Autobuilt by git commit'
    - dpkg-parsechangelog
    - apt-get -qq --yes install devscripts dpkg-dev git-buildpackage
    - git-buildpackage --git-ignore-branch --git-builder='debuild -i -I -uc -us -sa' --git-ignore-new
    - cat ../*.changes
    - ping -c 2 debian.nowtaxi.ru
    - dput --debug -u -c ../dput.cf nowtaxi-jessie ../*.changes