printing: return the same error code as windows does on upload failures
[Samba.git] / .gitlab-ci.yml
blobcde8341d0f7dbf1977b8ea3199338eb5e374d5e4
1 # see https://docs.gitlab.com/ce/ci/yaml/README.html for all available options
3 image: registry.gitlab.com/samba-team/samba:latest
5 variables:
6   GIT_STRATEGY: fetch
7   GIT_DEPTH: "3"
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
17 build_samba:
18   stage: build
19   tags:
20     - docker
21     - private
22   script:
23     # this one takes about 4 hours to finish
24     - python script/autobuild.py samba            --verbose --tail --testbase /tmp/samba-testbase
26 build_samba_nt4:
27   stage: build
28   tags:
29     - docker
30     - private
31   script:
32     # this one takes about 1 hours to finish
33     - python script/autobuild.py samba-nt4        --verbose --tail --testbase /tmp/samba-testbase
35 build_samba_fileserver:
36   stage: build
37   tags:
38     - docker
39     - private
40   script:
41     # this one takes about 1 hours to finish
42     - python script/autobuild.py samba-fileserver --verbose --tail --testbase /tmp/samba-testbase
44 build_samba_ad_dc:
45   stage: build
46   tags:
47     - docker
48     - private
49   script:
50     # this one takes about 1 hours to finish
51     - python script/autobuild.py samba-ad-dc     --verbose --tail --testbase /tmp/samba-testbase
53 build_samba_ad_dc_2:
54   stage: build
55   tags:
56     - docker
57     - private
58   script:
59     # this one takes about 1 hours to finish
60     - python script/autobuild.py samba-ad-dc-2     --verbose --tail --testbase /tmp/samba-testbase
62 build_samba_none_env:
63   stage: build
64   tags:
65     - docker
66     - shared
67   script:
68     # this one takes about 1 hours to finish
69     - python script/autobuild.py samba-none-env    --verbose --tail --testbase /tmp/samba-testbase
71 build_samba_nopython:
72   stage: build
73   tags:
74     - docker
75     - shared
76   script:
77     - python script/autobuild.py samba-nopython   --verbose --tail --testbase /tmp/samba-testbase
79 build_samba_systemkrb5:
80   stage: build
81   tags:
82     - docker
83     - shared
84   script:
85     - python script/autobuild.py samba-systemkrb5 --verbose --tail --testbase /tmp/samba-testbase
87 build_samba_xc:
88   stage: build
89   tags:
90     - docker
91     - shared
92   script:
93     - python script/autobuild.py samba-xc         --verbose --tail --testbase /tmp/samba-testbase
95 build_samba_o3:
96   stage: build
97   tags:
98     - docker
99     - shared
100   script:
101     - python script/autobuild.py samba-o3         --verbose --tail --testbase /tmp/samba-testbase
103 build_samba_libs:
104   stage: build
105   tags:
106     - docker
107     - shared
108   script:
109     - python script/autobuild.py samba-libs       --verbose --tail --testbase /tmp/samba-testbase
111 build_samba_static:
112   stage: build
113   tags:
114     - docker
115     - shared
116   script:
117     - python script/autobuild.py samba-static     --verbose --tail --testbase /tmp/samba-testbase
119 build_ctdb:
120   stage: build
121   tags:
122     - docker
123     - shared
124   script:
125     - python script/autobuild.py samba-ctdb       --verbose --tail --testbase /tmp/samba-testbase
127 build_samba_ctdb:
128   stage: build
129   tags:
130     - docker
131     - shared
132   script:
133     - python script/autobuild.py ctdb             --verbose --tail --testbase /tmp/samba-testbase
135 build_others:
136   stage: build
137   tags:
138     - docker
139     - shared
140   script:
141     - python script/autobuild.py ldb              --verbose --tail --testbase /tmp/samba-testbase
142     - python script/autobuild.py pidl             --verbose --tail --testbase /tmp/samba-testbase
143     - python script/autobuild.py replace          --verbose --tail --testbase /tmp/samba-testbase
144     - python script/autobuild.py talloc           --verbose --tail --testbase /tmp/samba-testbase
145     - python script/autobuild.py tdb              --verbose --tail --testbase /tmp/samba-testbase
146     - python script/autobuild.py tevent           --verbose --tail --testbase /tmp/samba-testbase
148 after_script:
149   - echo "Build finished!"