Add test job to CI

This commit is contained in:
Luke Benstead 2023-09-11 17:25:47 +01:00
parent 61e5a7a2a6
commit 951ece6d19
2 changed files with 17 additions and 1 deletions

View File

@ -1,5 +1,6 @@
stages: stages:
- build - build
- test
build:sh4-gcc: build:sh4-gcc:
stage: build stage: build
@ -17,7 +18,7 @@ build:sh4-gcc:
build:x86-gcc: build:x86-gcc:
stage: build stage: build
image: fedora:34 image: fedora:38
before_script: before_script:
- sudo dnf install -y cmake gcc gcc-c++ SDL2-devel glibc-devel pkgconf-pkg-config glibc-devel.i686 SDL2-devel.i686 - sudo dnf install -y cmake gcc gcc-c++ SDL2-devel glibc-devel pkgconf-pkg-config glibc-devel.i686 SDL2-devel.i686
script: script:
@ -25,3 +26,18 @@ build:x86-gcc:
- cd builddir - cd builddir
- cmake -DCMAKE_BUILD_TYPE=Release .. - cmake -DCMAKE_BUILD_TYPE=Release ..
- make - make
artifacts:
paths:
- builddir/tests/gldc_tests
test:x86-gcc:
stage: build
image: fedora:38
before_script:
- sudo dnf install -y cmake gcc gcc-c++ SDL2-devel glibc-devel pkgconf-pkg-config glibc-devel.i686 SDL2-devel.i686
script:
- cd builddir/tests/
- SDL_VIDEODRIVER=dummy ./gldc_tests --junit-xml=report.xml
artifacts:
reports:
junit: builddir/tests/report.xml

Binary file not shown.

Before

Width:  |  Height:  |  Size: 522 B

After

Width:  |  Height:  |  Size: 192 KiB