autobuild: Run all "ad_dc" environment tests in samba-ad-dc
[amitay/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   script:
22     # this one takes about 4 hours to finish
23     - python script/autobuild.py samba            --verbose --tail --testbase /tmp/samba-testbase
24
25 build_samba_nt4:
26   stage: build
27   tags:
28     - autobuild
29   script:
30     # this one takes about 1 hours to finish
31     - python script/autobuild.py samba-nt4        --verbose --tail --testbase /tmp/samba-testbase
32
33 build_samba_ad_dc:
34   stage: build
35   tags:
36     - autobuild
37   script:
38     # this one takes about 1 hours to finish
39     - python script/autobuild.py samba-ad-dc     --verbose --tail --testbase /tmp/samba-testbase
40
41 build_samba_none_env:
42   stage: build
43   tags:
44     - autobuild
45   script:
46     # this one takes about 1 hours to finish
47     - python script/autobuild.py samba-none-env    --verbose --tail --testbase /tmp/samba-testbase
48
49 build_samba_others:
50   stage: build
51   tags:
52     - docker
53   script:
54     - python script/autobuild.py samba-nopython   --verbose --tail --testbase /tmp/samba-testbase
55     - python script/autobuild.py samba-systemkrb5 --verbose --tail --testbase /tmp/samba-testbase
56     - python script/autobuild.py samba-xc         --verbose --tail --testbase /tmp/samba-testbase
57     - python script/autobuild.py samba-o3         --verbose --tail --testbase /tmp/samba-testbase
58     - python script/autobuild.py samba-libs       --verbose --tail --testbase /tmp/samba-testbase
59     - python script/autobuild.py samba-static     --verbose --tail --testbase /tmp/samba-testbase
60
61 build_ctdb:
62   stage: build
63   tags:
64     - docker
65   script:
66     - python script/autobuild.py samba-ctdb       --verbose --tail --testbase /tmp/samba-testbase
67     - python script/autobuild.py ctdb             --verbose --tail --testbase /tmp/samba-testbase
68
69 build_others:
70   stage: build
71   tags:
72     - docker
73   script:
74     - python script/autobuild.py ldb              --verbose --tail --testbase /tmp/samba-testbase
75     - python script/autobuild.py pidl             --verbose --tail --testbase /tmp/samba-testbase
76     - python script/autobuild.py replace          --verbose --tail --testbase /tmp/samba-testbase
77     - python script/autobuild.py talloc           --verbose --tail --testbase /tmp/samba-testbase
78     - python script/autobuild.py tdb              --verbose --tail --testbase /tmp/samba-testbase
79     - python script/autobuild.py tevent           --verbose --tail --testbase /tmp/samba-testbase
80
81 after_script:
82   - echo "Build finished!"