.gitlab-ci.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. image: giomasce/testenv
  2. variables:
  3. GIT_STRATEGY: clone
  4. GIT_SUBMODULE_STRATEGY: recursive
  5. GIT_DEPTH: "3"
  6. before_script:
  7. - cat /proc/cpuinfo
  8. - cat /proc/meminfo
  9. - apt-get update
  10. - apt-get install -y --no-upgrade eatmydata
  11. stages:
  12. - build
  13. - test
  14. build:
  15. stage: build
  16. script:
  17. - eatmydata apt-get install -y --no-upgrade make nasm python3 qemu-utils
  18. - bash test/build_all_variants.sh
  19. - ls -l build/asmg.x86.exe build/asmg_dbg.x86.exe
  20. artifacts:
  21. paths:
  22. - artifacts
  23. tags:
  24. - docker
  25. tests:
  26. stage: test
  27. script:
  28. - eatmydata apt-get install -y --no-upgrade python3 qemu-system-x86
  29. - "qemu-system-i386 -hda artifacts/tests/boot_asmg.x86.qcow2 -serial file:/dev/stdout -display none -m 256M -enable-kvm | ./test/decode_tests.py"
  30. tags:
  31. - privileged
  32. mm0:
  33. stage: test
  34. script:
  35. - eatmydata apt-get install -y --no-upgrade python3 qemu-system-x86
  36. - "qemu-system-i386 -hda artifacts/mm0/boot_asmg.x86.qcow2 -serial file:/dev/stdout -display none -m 256M -enable-kvm | ./test/decode_tests.py just_malloc"
  37. allow_failure: true
  38. tags:
  39. - privileged
  40. ipxe:
  41. stage: test
  42. script:
  43. - eatmydata apt-get install -y --no-upgrade python3 qemu-system-x86
  44. - cd http && python3 -m http.server 8080 &
  45. - "qemu-system-i386 -hda artifacts/ipxe/boot_asmg.x86.qcow2 -serial file:/dev/stdout -display none -m 256M -enable-kvm | ./test/decode_tests.py just_malloc"
  46. tags:
  47. - privileged
  48. single_cream:
  49. stage: test
  50. script:
  51. - eatmydata apt-get install -y --no-upgrade python3 qemu-system-x86
  52. - "qemu-system-i386 -hda artifacts/single_cream/boot_asmg.x86.qcow2 -serial file:/dev/stdout -display none -m 256M -enable-kvm | ./test/decode_tests.py just_malloc"
  53. allow_failure: true
  54. tags:
  55. - privileged
  56. mm0_c:
  57. stage: test
  58. script:
  59. - eatmydata apt-get install -y --no-upgrade python3 qemu-system-x86
  60. - "qemu-system-i386 -hda artifacts/mm0_c/boot_asmg.x86.qcow2 -serial file:/dev/stdout -display none -m 256M -enable-kvm | ./test/decode_tests.py just_malloc"
  61. tags:
  62. - privileged