autobuild: Run all envs that depend on ad_dc in the ad_dc job
[samba.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:
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
25
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
34
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
43
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
52
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
61
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
70
71 build_samba_others:
72   stage: build
73   tags:
74     - docker
75     - shared
76   script:
77     - python script/autobuild.py samba-nopython   --verbose --tail --testbase /tmp/samba-testbase
78     - python script/autobuild.py samba-systemkrb5 --verbose --tail --testbase /tmp/samba-testbase
79     - python script/autobuild.py samba-xc         --verbose --tail --testbase /tmp/samba-testbase
80     - python script/autobuild.py samba-o3         --verbose --tail --testbase /tmp/samba-testbase
81     - python script/autobuild.py samba-libs       --verbose --tail --testbase /tmp/samba-testbase
82     - python script/autobuild.py samba-static     --verbose --tail --testbase /tmp/samba-testbase
83
84 build_ctdb:
85   stage: build
86   tags:
87     - docker
88     - shared
89   script:
90     - python script/autobuild.py samba-ctdb       --verbose --tail --testbase /tmp/samba-testbase
91     - python script/autobuild.py ctdb             --verbose --tail --testbase /tmp/samba-testbase
92
93 build_others:
94   stage: build
95   tags:
96     - docker
97     - shared
98   script:
99     - python script/autobuild.py ldb              --verbose --tail --testbase /tmp/samba-testbase
100     - python script/autobuild.py pidl             --verbose --tail --testbase /tmp/samba-testbase
101     - python script/autobuild.py replace          --verbose --tail --testbase /tmp/samba-testbase
102     - python script/autobuild.py talloc           --verbose --tail --testbase /tmp/samba-testbase
103     - python script/autobuild.py tdb              --verbose --tail --testbase /tmp/samba-testbase
104     - python script/autobuild.py tevent           --verbose --tail --testbase /tmp/samba-testbase
105
106 after_script:
107   - echo "Build finished!"