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