.gitlab-ci.yml 4.09 KB
Newer Older
1
image: fedora:32
2

3
before_script:
4
5
 - dnf update -y
 - dnf install -y make python
6
7
8

build-aarch64:
 script:
9
 - dnf install -y qemu-system-aarch64 gcc-aarch64-linux-gnu
10
11
 - ./configure --arch=aarch64 --cross-prefix=aarch64-linux-gnu-
 - make -j2
12
 - ACCEL=tcg MAX_SMP=8 ./run_tests.sh
13
     selftest-setup selftest-vectors-kernel selftest-vectors-user selftest-smp
14
15
     pci-test pmu-cycle-counter pmu-event-counter-config pmu-sw-incr gicv2-ipi
     gicv2-mmio gicv3-ipi gicv2-active gicv3-active psci timer cache
16
17
18
19
20
     | tee results.txt
 - if grep -q FAIL results.txt ; then exit 1 ; fi

build-arm:
 script:
Andrew Jones's avatar
Andrew Jones committed
21
 - dnf install -y qemu-system-arm gcc-arm-linux-gnu
22
23
24
 - mkdir build
 - cd build
 - ../configure --arch=arm --cross-prefix=arm-linux-gnu-
25
 - make -j2
26
 - ACCEL=tcg MAX_SMP=8 ./run_tests.sh
27
     selftest-setup selftest-vectors-kernel selftest-vectors-user selftest-smp
28
29
     pci-test pmu-cycle-counter gicv2-ipi gicv2-mmio gicv3-ipi gicv2-active
     gicv3-active psci
30
31
32
33
34
     | tee results.txt
 - if grep -q FAIL results.txt ; then exit 1 ; fi

build-ppc64be:
 script:
35
 - dnf install -y qemu-system-ppc gcc-powerpc64-linux-gnu
36
37
38
 - mkdir build
 - cd build
 - ../configure --arch=ppc64 --endian=big --cross-prefix=powerpc64-linux-gnu-
39
40
41
42
43
44
45
46
47
 - make -j2
 - ACCEL=tcg ./run_tests.sh
     selftest-setup spapr_hcall rtas-get-time-of-day rtas-get-time-of-day-base
     rtas-set-time-of-day emulator
     | tee results.txt
 - if grep -q FAIL results.txt ; then exit 1 ; fi

build-ppc64le:
 script:
48
 - dnf install -y qemu-system-ppc gcc-powerpc64-linux-gnu
49
50
51
52
53
54
55
56
57
58
 - ./configure --arch=ppc64 --endian=little --cross-prefix=powerpc64-linux-gnu-
 - make -j2
 - ACCEL=tcg ./run_tests.sh
     selftest-setup spapr_hcall rtas-get-time-of-day rtas-get-time-of-day-base
     rtas-set-time-of-day emulator
     | tee results.txt
 - if grep -q FAIL results.txt ; then exit 1 ; fi

build-s390x:
 script:
59
 - dnf install -y qemu-system-s390x gcc-s390x-linux-gnu
60
61
 - ./configure --arch=s390x --cross-prefix=s390x-linux-gnu-
 - make -j2
62
 - ACCEL=tcg ./run_tests.sh
63
64
     selftest-setup intercept emulator sieve skey diag10 diag308 vector diag288
     stsi sclp-1g sclp-3g
65
66
     | tee results.txt
 - if grep -q FAIL results.txt ; then exit 1 ; fi
67
68
69

build-x86_64:
 script:
70
 - dnf install -y qemu-system-x86 gcc
71
72
73
 - ./configure --arch=x86_64
 - make -j2
 - ACCEL=tcg ./run_tests.sh
74
     ioapic-split smptest smptest3 vmexit_cpuid vmexit_mov_from_cr8
75
76
     vmexit_mov_to_cr8 vmexit_inl_pmtimer  vmexit_ipi vmexit_ipi_halt
     vmexit_ple_round_robin vmexit_tscdeadline vmexit_tscdeadline_immed
77
     eventinj msr port80 setjmp sieve syscall tsc rmap_chain umip intel_iommu
78
79
80
81
82
     | tee results.txt
 - if grep -q FAIL results.txt ; then exit 1 ; fi

build-i386:
 script:
83
 - dnf install -y qemu-system-x86 gcc
84
85
86
 - mkdir build
 - cd build
 - ../configure --arch=i386
87
88
 - make -j2
 - ACCEL=tcg ./run_tests.sh
89
90
91
92
     cmpxchg8b vmexit_cpuid vmexit_mov_from_cr8 vmexit_mov_to_cr8
     vmexit_inl_pmtimer vmexit_ipi vmexit_ipi_halt vmexit_ple_round_robin
     vmexit_tscdeadline vmexit_tscdeadline_immed eventinj port80 setjmp sieve
     tsc taskswitch umip
93
94
     | tee results.txt
 - if grep -q FAIL results.txt ; then exit 1 ; fi
95
96
97
98
99
100
101

build-clang:
 script:
 - dnf install -y qemu-system-x86 clang
 - ./configure --arch=x86_64 --cc=clang
 - make -j2
 - ACCEL=tcg ./run_tests.sh
102
     ioapic-split smptest smptest3 vmexit_cpuid vmexit_mov_from_cr8
103
104
105
106
107
     vmexit_mov_to_cr8 vmexit_inl_pmtimer  vmexit_ipi vmexit_ipi_halt
     vmexit_ple_round_robin vmexit_tscdeadline vmexit_tscdeadline_immed
     eventinj msr port80 setjmp syscall tsc rmap_chain umip intel_iommu
     | tee results.txt
 - grep -q PASS results.txt && ! grep -q FAIL results.txt
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124

build-centos7:
 image: centos:7
 before_script:
 - yum update -y
 - yum install -y make python qemu-kvm gcc
 script:
 - mkdir build
 - cd build
 - ../configure --arch=x86_64 --disable-pretty-print-stacks
 - make -j2
 - ACCEL=tcg ./run_tests.sh
     msr vmexit_cpuid vmexit_mov_from_cr8 vmexit_mov_to_cr8 vmexit_inl_pmtimer
     vmexit_ple_round_robin vmexit_tscdeadline vmexit_tscdeadline_immed port80
     setjmp sieve tsc rmap_chain umip
     | tee results.txt
 - grep -q PASS results.txt && ! grep -q FAIL results.txt