Updated "About Samba" Info in README
[gd/samba-autobuild/.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 after_script:
18   - tar -xf logs.tar.gz system-info.txt -O
19
20 .shared_template: &shared_template
21   stage: build
22   tags:
23     - docker
24     - shared
25
26 build_samba_none_env:
27   <<: *shared_template
28   script:
29     # this one takes about 1 hours to finish
30     - python script/autobuild.py samba-none-env    --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
31
32 build_samba_nopython:
33   <<: *shared_template
34   script:
35     - python script/autobuild.py samba-nopython   --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
36
37 build_samba_systemkrb5:
38   <<: *shared_template
39   script:
40     - python script/autobuild.py samba-systemkrb5 --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
41
42 build_samba_xc:
43   <<: *shared_template
44   script:
45     - python script/autobuild.py samba-xc         --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
46
47 build_samba_o3:
48   <<: *shared_template
49   script:
50     - python script/autobuild.py samba-o3         --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
51
52 build_samba_ad_dc_2:
53   <<: *shared_template
54   script:
55     # this one takes about 1 hours to finish
56     - python script/autobuild.py samba-ad-dc-2     --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
57
58 build_samba_libs:
59   <<: *shared_template
60   script:
61     - python script/autobuild.py samba-libs       --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
62
63 build_samba_libs_py3:
64   <<: *shared_template
65   script:
66     - python script/autobuild.py samba-libs-py3   --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
67
68 build_samba_static:
69   <<: *shared_template
70   script:
71     - python script/autobuild.py samba-static     --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
72
73 build_ctdb:
74   <<: *shared_template
75   script:
76     - python script/autobuild.py ctdb       --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
77
78 build_samba_ctdb:
79   <<: *shared_template
80   script:
81     - python script/autobuild.py samba-ctdb             --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
82
83 build_others:
84   <<: *shared_template
85   script:
86     - python script/autobuild.py ldb              --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
87     - python script/autobuild.py pidl             --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
88     - python script/autobuild.py replace          --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
89     - python script/autobuild.py talloc           --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
90     - python script/autobuild.py tdb              --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
91     - python script/autobuild.py tevent           --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
92
93 build_samba_buildpy3_only:
94   <<: *shared_template
95   script:
96     - python3 script/autobuild.py samba-buildpy3-only             --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
97
98 build_samba_purepy3-none_env:
99   <<: *shared_template
100   script:
101     - python3 script/autobuild.py samba-purepy3-none-env           --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
102
103 build_samba_purepy3-ad-dc-2:
104   <<: *shared_template
105   script:
106     - python3 script/autobuild.py samba-purepy3-ad-dc-2           --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase