gitlab-ci: split up gitlab-ci file
[metze/samba/wip.git] / .gitlab-ci.yml
1 # see https://docs.gitlab.com/ce/ci/yaml/README.html for all available options
2
3 image: registry.gitlab.com/samba-team/samba:latest
4
5 variables:
6   GIT_STRATEGY: fetch
7   GIT_DEPTH: "3"
8
9 before_script:
10   - echo "Build starting (preparing swap)..."
11   - if [ $(df -m / --output=avail | tail -n1) -gt 10240 ]; then
12       sudo dd if=/dev/zero of=/samba-swap bs=1M count=6144;
13       sudo mkswap /samba-swap;
14       sudo swapon /samba-swap;
15     fi
16
17 build_samba_none_env:
18   stage: build
19   tags:
20     - docker
21     - shared
22   script:
23     # this one takes about 1 hours to finish
24     - python script/autobuild.py samba-none-env    --verbose --tail --testbase /tmp/samba-testbase
25
26 build_samba_nopython:
27   stage: build
28   tags:
29     - docker
30     - shared
31   script:
32     - python script/autobuild.py samba-nopython   --verbose --tail --testbase /tmp/samba-testbase
33
34 build_samba_systemkrb5:
35   stage: build
36   tags:
37     - docker
38     - shared
39   script:
40     - python script/autobuild.py samba-systemkrb5 --verbose --tail --testbase /tmp/samba-testbase
41
42 build_samba_xc:
43   stage: build
44   tags:
45     - docker
46     - shared
47   script:
48     - python script/autobuild.py samba-xc         --verbose --tail --testbase /tmp/samba-testbase
49
50 build_samba_o3:
51   stage: build
52   tags:
53     - docker
54     - shared
55   script:
56     - python script/autobuild.py samba-o3         --verbose --tail --testbase /tmp/samba-testbase
57
58 build_samba_libs:
59   stage: build
60   tags:
61     - docker
62     - shared
63   script:
64     - python script/autobuild.py samba-libs       --verbose --tail --testbase /tmp/samba-testbase
65
66 build_samba_static:
67   stage: build
68   tags:
69     - docker
70     - shared
71   script:
72     - python script/autobuild.py samba-static     --verbose --tail --testbase /tmp/samba-testbase
73
74 build_ctdb:
75   stage: build
76   tags:
77     - docker
78     - shared
79   script:
80     - python script/autobuild.py samba-ctdb       --verbose --tail --testbase /tmp/samba-testbase
81
82 build_samba_ctdb:
83   stage: build
84   tags:
85     - docker
86     - shared
87   script:
88     - python script/autobuild.py ctdb             --verbose --tail --testbase /tmp/samba-testbase
89
90 build_others:
91   stage: build
92   tags:
93     - docker
94     - shared
95   script:
96     - python script/autobuild.py ldb              --verbose --tail --testbase /tmp/samba-testbase
97     - python script/autobuild.py pidl             --verbose --tail --testbase /tmp/samba-testbase
98     - python script/autobuild.py replace          --verbose --tail --testbase /tmp/samba-testbase
99     - python script/autobuild.py talloc           --verbose --tail --testbase /tmp/samba-testbase
100     - python script/autobuild.py tdb              --verbose --tail --testbase /tmp/samba-testbase
101     - python script/autobuild.py tevent           --verbose --tail --testbase /tmp/samba-testbase
102
103 after_script:
104   - echo "Build finished!"