Produce artifacts in GitLab CI.

parent 83181200
Pipeline #59268994 passed with stages
in 31 minutes and 39 seconds
image: debian:stable
variables:
GIT_STRATEGY: fetch
GIT_SUBMODULE_STRATEGY: recursive
GIT_DEPTH: "3"
before_script:
- apt-get update -qq && apt-get install -y -qq build-essential nasm qemu-system-x86 python3 gcc-multilib git
- git submodule update --init --recursive
- cd http && python3 -m http.server 8080 &
- cat /proc/cpuinfo
- cat /proc/meminfo
stages:
- build
......@@ -12,32 +16,28 @@ stages:
build:
stage: build
script:
- make
- apt-get update -qq && apt-get install -y -qq build-essential nasm python3
- bash test/build_all_variants.sh
- ls -l build/asmg.x86.exe build/asmg_dbg.x86.exe
artifacts:
paths:
- artifacts
tests:
stage: test
script:
- rm -fr build
- sed -i -e 's|const RUN_MM0 1|const RUN_MM0 0|' asmg/main.g
- sed -i -e 's|const RUN_TINYCC 1|const RUN_TINYCC 0|' asmg/main.g
- make
- "(qemu-system-i386 -hda build/boot_asmg.x86 -serial stdio -device isa-debug-exit -display none -m 256M || true) | ./test/decode_tests.py"
- apt-get update -qq && apt-get install -y -qq python3 qemu-system-x86
- "(qemu-system-i386 -hda artifacts/tests/boot_asmg.x86 -serial stdio -device isa-debug-exit -display none -m 256M || true) | ./test/decode_tests.py"
mm0:
stage: test
script:
- rm -fr build
- sed -i -e 's|const TEST_ALL 1|const TEST_ALL 0|' asmg/main.g
- sed -i -e 's|const RUN_TINYCC 1|const RUN_TINYCC 0|' asmg/main.g
- make
- "(qemu-system-i386 -hda build/boot_asmg.x86 -serial stdio -device isa-debug-exit -display none -m 256M || true) | ./test/decode_tests.py just_malloc"
- apt-get update -qq && apt-get install -y -qq python3 qemu-system-x86
- "(qemu-system-i386 -hda artifacts/mm0/boot_asmg.x86 -serial stdio -device isa-debug-exit -display none -m 256M || true) | ./test/decode_tests.py just_malloc"
tinycc:
stage: test
script:
- rm -fr build
- sed -i -e 's|const TEST_ALL 1|const TEST_ALL 0|' asmg/main.g
- sed -i -e 's|const RUN_MM0 1|const RUN_MM0 0|' asmg/main.g
- make
- "(qemu-system-i386 -hda build/boot_asmg.x86 -serial stdio -device isa-debug-exit -display none -m 256M || true) | ./test/decode_tests.py just_malloc"
- apt-get update -qq && 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 -serial stdio -device isa-debug-exit -display none -m 256M || true) | ./test/decode_tests.py just_malloc"
#!/bin/bash
mkdir artifacts
mkdir artifacts/tests
mkdir artifacts/mm0
mkdir artifacts/tinycc
mkdir artifacts/full
rm -fr build
sed -i -e 's|const TEST_ALL .|const TEST_ALL 1|' asmg/main.g
sed -i -e 's|const RUN_MM0 .|const RUN_MM0 0|' asmg/main.g
sed -i -e 's|const RUN_TINYCC .|const RUN_TINYCC 0|' asmg/main.g
make
cp build/boot_asmg.x86 build/boot_asmg_dbg.x86 artifacts/tests
rm -fr build
sed -i -e 's|const TEST_ALL .|const TEST_ALL 0|' asmg/main.g
sed -i -e 's|const RUN_MM0 .|const RUN_MM0 1|' asmg/main.g
sed -i -e 's|const RUN_TINYCC .|const RUN_TINYCC 0|' asmg/main.g
make
cp build/boot_asmg.x86 build/boot_asmg_dbg.x86 artifacts/mm0
rm -fr build
sed -i -e 's|const TEST_ALL .|const TEST_ALL 0|' asmg/main.g
sed -i -e 's|const RUN_MM0 .|const RUN_MM0 0|' asmg/main.g
sed -i -e 's|const RUN_TINYCC .|const RUN_TINYCC 1|' asmg/main.g
make
cp build/boot_asmg.x86 build/boot_asmg_dbg.x86 artifacts/tinycc
rm -fr build
sed -i -e 's|const TEST_ALL .|const TEST_ALL 1|' asmg/main.g
sed -i -e 's|const RUN_MM0 .|const RUN_MM0 1|' asmg/main.g
sed -i -e 's|const RUN_TINYCC .|const RUN_TINYCC 1|' asmg/main.g
make
cp build/boot_asmg.x86 build/boot_asmg_dbg.x86 artifacts/full
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