File: .gitlab-ci.yml

package info (click to toggle)
archvsync 20180513
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 244 kB
  • sloc: sh: 883; makefile: 80
file content (53 lines) | stat: -rw-r--r-- 1,244 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
package:
  image: debian:sid
  script:
    - apt-get update
    - apt-get build-dep -y ./
    - dpkg-buildpackage -us -uc

.test simple: &TEST-SIMPLE
  variables:
    LOGNAME: root
  script:
    - cd tests && bats scripts/default
  artifacts:
    paths:
      - tests/log
      - tests/output
    when: always

.test debian: &TEST-DEBIAN
  before_script:
    - apt-get update > /dev/null
    - DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends bats curl git rsync stunnel > /dev/null

.test debian busybox: &TEST-DEBIAN-BUSYBOX
  before_script:
    - apt-get update > /dev/null
    - DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends bats busybox curl git rsync stunnel > /dev/null
    - busybox --install -s /usr/local/bin

.test redhat: &TEST-REDHAT
  before_script:
    - yum install -y epel-release > /dev/null
    - yum install -y bats curl git rsync stunnel > /dev/null

test stretch:
  <<: *TEST-DEBIAN
  <<: *TEST-SIMPLE
  image: debian:stretch

test basic:
  <<: *TEST-DEBIAN-BUSYBOX
  <<: *TEST-SIMPLE
  image: debian:stretch

test centos6:
  <<: *TEST-REDHAT
  <<: *TEST-SIMPLE
  image: centos:centos6

test centos7:
  <<: *TEST-REDHAT
  <<: *TEST-SIMPLE
  image: centos:centos7