.gitlab-ci*.yml: remove build_ prefixes
[amitay/samba.git] / .gitlab-ci.yml
1 # see https://docs.gitlab.com/ce/ci/yaml/README.html for all available options
2
3
4 variables:
5   SAMBA_BUILD_IMAGES_PROJECT: samba-team/samba
6   SAMBA_BUILD: latest
7   GIT_STRATEGY: fetch
8   GIT_DEPTH: "3"
9
10 .shared_template: &shared_template
11   image: $CI_REGISTRY/$SAMBA_BUILD_IMAGES_PROJECT:$SAMBA_BUILD
12   stage: build
13   tags:
14     - docker
15     - shared
16   before_script:
17     - uname -a
18     - lsb_release -a
19     - echo "Build starting (preparing swap)..."
20     - if [ $(df -m / --output=avail | tail -n1) -gt 10240 ]; then
21         sudo dd if=/dev/zero of=/samba-swap bs=1M count=6144;
22         sudo mkswap /samba-swap;
23         sudo swapon /samba-swap;
24       fi
25     - mount
26     - df -h
27     - free -h
28   artifacts:
29     expire_in: 1 week
30     when: on_failure
31     paths:
32       - "*.stdout"
33       - "*.stderr"
34       - system-info.txt
35       - /tmp/samba-testbase/*/*/bin/config.log
36
37 samba_none_env:
38   <<: *shared_template
39   script:
40     # this one takes about 1 hours to finish
41     - script/autobuild.py samba-none-env    --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
42
43 samba_none_env_py2:
44   <<: *shared_template
45   script:
46     # this one takes about 1 hours to finish
47     - script/autobuild.py samba-none-env-py2    --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
48
49 samba_nopython:
50   <<: *shared_template
51   script:
52     - script/autobuild.py samba-nopython   --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
53
54 samba_systemkrb5:
55   <<: *shared_template
56   script:
57     - script/autobuild.py samba-systemkrb5 --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
58
59 samba_xc:
60   <<: *shared_template
61   script:
62     - script/autobuild.py samba-xc         --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
63
64 samba_o3:
65   <<: *shared_template
66   script:
67     - script/autobuild.py samba-o3         --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
68
69 samba_ad_dc_2:
70   <<: *shared_template
71   script:
72     # this one takes about 1 hours to finish
73     - script/autobuild.py samba-ad-dc-2     --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
74
75 samba_ad_dc_backup:
76   <<: *shared_template
77   script:
78     - script/autobuild.py samba-ad-dc-backup    --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
79
80 samba_ad_dc_2_py2:
81   <<: *shared_template
82   script:
83     # this one takes about 1 hours to finish
84     - script/autobuild.py samba-ad-dc-2-py2     --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
85
86 samba_libs:
87   <<: *shared_template
88   script:
89     - script/autobuild.py samba-libs       --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
90
91 samba_libs_py2:
92   <<: *shared_template
93   script:
94     - script/autobuild.py samba-libs-py2       --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
95
96 samba_static:
97   <<: *shared_template
98   script:
99     - script/autobuild.py samba-static     --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
100
101 ctdb:
102   <<: *shared_template
103   script:
104     - script/autobuild.py ctdb       --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
105
106 samba_ctdb:
107   <<: *shared_template
108   script:
109     - script/autobuild.py samba-ctdb             --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
110
111 others:
112   <<: *shared_template
113   script:
114     - script/autobuild.py ldb              --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
115     - script/autobuild.py pidl             --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
116     - script/autobuild.py replace          --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
117     - script/autobuild.py talloc           --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
118     - script/autobuild.py tdb              --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
119     - script/autobuild.py tevent           --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
120
121 samba_buildpy2_only:
122   <<: *shared_template
123   script:
124     - python script/autobuild.py samba-buildpy2-only             --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
125
126 samba_ad_dc_ntvfs:
127   <<: *shared_template
128   script:
129     # this one takes about 100 mins to finish
130     - script/autobuild.py samba-ad-dc-ntvfs --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
131
132 samba_ad_dc_ntvfs_py2:
133   <<: *shared_template
134   script:
135     - script/autobuild.py samba-ad-dc-ntvfs-py2 --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase