Enable KVM in GitLab CI.

parent 0ac8e04c
image: debian:stable
image: debian:unstable
variables:
GIT_STRATEGY: fetch
GIT_STRATEGY: clone
GIT_SUBMODULE_STRATEGY: recursive
GIT_DEPTH: "3"
before_script:
- cat /proc/cpuinfo
- cat /proc/meminfo
- apt-get update -qq
- apt-get install -y -qq eatmydata
stages:
- build
......@@ -16,7 +18,7 @@ stages:
build:
stage: build
script:
- apt-get update -qq && apt-get install -y -qq build-essential nasm python3 qemu-utils
- eatmydata apt-get install -y -qq make nasm python3 qemu-utils
- bash test/build_all_variants.sh
- ls -l build/asmg.x86.exe build/asmg_dbg.x86.exe
artifacts:
......@@ -26,18 +28,18 @@ build:
tests:
stage: test
script:
- apt-get update -qq && apt-get install -y -qq python3 qemu-system-x86
- "(qemu-system-i386 -hda artifacts/tests/boot_asmg.x86.qcow2 -serial stdio -device isa-debug-exit -display none -m 256M || true) | ./test/decode_tests.py"
- eatmydata apt-get install -y -qq python3 qemu-system-x86
- "(echo -n | qemu-system-i386 -hda artifacts/tests/boot_asmg.x86.qcow2 -serial stdio -device isa-debug-exit -display none -m 256M -enable-kvm -cpu host || true) | ./test/decode_tests.py"
mm0:
stage: test
script:
- apt-get update -qq && apt-get install -y -qq python3 qemu-system-x86
- "(qemu-system-i386 -hda artifacts/mm0/boot_asmg.x86.qcow2 -serial stdio -device isa-debug-exit -display none -m 256M || true) | ./test/decode_tests.py just_malloc"
- eatmydata apt-get install -y -qq python3 qemu-system-x86
- "(echo -n | qemu-system-i386 -hda artifacts/mm0/boot_asmg.x86.qcow2 -serial stdio -device isa-debug-exit -display none -m 256M -enable-kvm -cpu host || true) | ./test/decode_tests.py just_malloc"
tinycc:
stage: test
script:
- apt-get update -qq && apt-get install -y -qq python3 qemu-system-x86
- eatmydata apt-get install -y -qq python3 qemu-system-x86
- cd http && python3 -m http.server 8080 &
- "(qemu-system-i386 -hda artifacts/tinycc/boot_asmg.x86.qcow2 -serial stdio -device isa-debug-exit -display none -m 256M || true) | ./test/decode_tests.py just_malloc"
- "(echo -n | qemu-system-i386 -hda artifacts/tinycc/boot_asmg.x86.qcow2 -serial stdio -device isa-debug-exit -display none -m 256M -enable-kvm -cpu host || true) | ./test/decode_tests.py just_malloc"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment