gitlab-ci: Create swap space to work around the 2G image
[kai/samba-autobuild/.git] / .gitlab-ci.yml
1 # see https://docs.gitlab.com/ce/ci/yaml/README.html for all available options
2
3 before_script:
4   - echo "Build starting (preparing swap)..."
5   - if [ $(df -m / --output=avail | tail -n1) -gt 10240 ]; then
6       sudo dd if=/dev/zero of=/samba-swap bs=1M count=6144;
7       sudo mkswap /samba-swap;
8       sudo swapon /samba-swap;
9     fi
10
11 build_samba:
12   stage: build
13   tags:
14     - autobuild
15   script:
16     # this one takes about 4 hours to finish
17     - python script/autobuild.py samba            --verbose --tail --testbase /tmp/samba-testbase
18
19 build_samba_none_env:
20   stage: build
21   tags:
22     - autobuild
23   script:
24     # this one takes about 1 hours to finish
25     - python script/autobuild.py samba-none-env    --verbose --tail --testbase /tmp/samba-testbase
26
27 build_samba_others:
28   stage: build
29   tags:
30     - autobuild
31   script:
32     - python script/autobuild.py samba-nopython   --verbose --tail --testbase /tmp/samba-testbase
33     - python script/autobuild.py samba-systemkrb5 --verbose --tail --testbase /tmp/samba-testbase
34     - python script/autobuild.py samba-xc         --verbose --tail --testbase /tmp/samba-testbase
35     - python script/autobuild.py samba-o3         --verbose --tail --testbase /tmp/samba-testbase
36     - python script/autobuild.py samba-libs       --verbose --tail --testbase /tmp/samba-testbase
37     - python script/autobuild.py samba-static     --verbose --tail --testbase /tmp/samba-testbase
38
39 build_ctdb:
40   stage: build
41   tags:
42     - autobuild
43   script:
44     - python script/autobuild.py samba-ctdb       --verbose --tail --testbase /tmp/samba-testbase
45     - python script/autobuild.py ctdb             --verbose --tail --testbase /tmp/samba-testbase
46
47 build_others:
48   stage: build
49   tags:
50     - autobuild
51   script:
52     - python script/autobuild.py ldb              --verbose --tail --testbase /tmp/samba-testbase
53     - python script/autobuild.py pidl             --verbose --tail --testbase /tmp/samba-testbase
54     - python script/autobuild.py replace          --verbose --tail --testbase /tmp/samba-testbase
55     - python script/autobuild.py talloc           --verbose --tail --testbase /tmp/samba-testbase
56     - python script/autobuild.py tdb              --verbose --tail --testbase /tmp/samba-testbase
57     - python script/autobuild.py tevent           --verbose --tail --testbase /tmp/samba-testbase
58
59 after_script:
60   - echo "Build finished!"