gitlab-ci: set docker image and change tag
[bbaumbach/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 before_script:
6   - echo "Build starting (preparing swap)..."
7   - if [ $(df -m / --output=avail | tail -n1) -gt 10240 ]; then
8       sudo dd if=/dev/zero of=/samba-swap bs=1M count=6144;
9       sudo mkswap /samba-swap;
10       sudo swapon /samba-swap;
11     fi
12
13 build_samba:
14   stage: build
15   tags:
16     - docker
17   script:
18     # this one takes about 4 hours to finish
19     - python script/autobuild.py samba            --verbose --tail --testbase /tmp/samba-testbase
20
21 build_samba_none_env:
22   stage: build
23   tags:
24     - autobuild
25   script:
26     # this one takes about 1 hours to finish
27     - python script/autobuild.py samba-none-env    --verbose --tail --testbase /tmp/samba-testbase
28
29 build_samba_others:
30   stage: build
31   tags:
32     - docker
33   script:
34     - python script/autobuild.py samba-nopython   --verbose --tail --testbase /tmp/samba-testbase
35     - python script/autobuild.py samba-systemkrb5 --verbose --tail --testbase /tmp/samba-testbase
36     - python script/autobuild.py samba-xc         --verbose --tail --testbase /tmp/samba-testbase
37     - python script/autobuild.py samba-o3         --verbose --tail --testbase /tmp/samba-testbase
38     - python script/autobuild.py samba-libs       --verbose --tail --testbase /tmp/samba-testbase
39     - python script/autobuild.py samba-static     --verbose --tail --testbase /tmp/samba-testbase
40
41 build_ctdb:
42   stage: build
43   tags:
44     - docker
45   script:
46     - python script/autobuild.py samba-ctdb       --verbose --tail --testbase /tmp/samba-testbase
47     - python script/autobuild.py ctdb             --verbose --tail --testbase /tmp/samba-testbase
48
49 build_others:
50   stage: build
51   tags:
52     - docker
53   script:
54     - python script/autobuild.py ldb              --verbose --tail --testbase /tmp/samba-testbase
55     - python script/autobuild.py pidl             --verbose --tail --testbase /tmp/samba-testbase
56     - python script/autobuild.py replace          --verbose --tail --testbase /tmp/samba-testbase
57     - python script/autobuild.py talloc           --verbose --tail --testbase /tmp/samba-testbase
58     - python script/autobuild.py tdb              --verbose --tail --testbase /tmp/samba-testbase
59     - python script/autobuild.py tevent           --verbose --tail --testbase /tmp/samba-testbase
60
61 after_script:
62   - echo "Build finished!"