2024-08-12 16:11:18 -04:00
|
|
|
image: jmchr/opengl-test-env:latest
|
|
|
|
|
2024-08-11 12:14:19 -04:00
|
|
|
# Define the stages of your pipeline
|
2024-08-10 23:24:51 -04:00
|
|
|
stages:
|
2024-08-12 16:07:57 -04:00
|
|
|
- build
|
2024-08-19 08:38:22 -04:00
|
|
|
- test
|
2024-08-10 23:24:51 -04:00
|
|
|
|
2024-08-12 16:07:57 -04:00
|
|
|
variables:
|
|
|
|
VCPKG_ROOT: "/vcpkg"
|
|
|
|
|
|
|
|
build:
|
|
|
|
stage: build
|
2024-08-10 23:35:01 -04:00
|
|
|
script:
|
2024-08-12 16:07:57 -04:00
|
|
|
# Set the VCPKG_TOOLCHAIN environment variable
|
|
|
|
- export VCPKG_TOOLCHAIN=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake
|
2024-08-19 09:34:36 -04:00
|
|
|
- mkdir -p build
|
2024-08-23 21:58:56 -04:00
|
|
|
- cmake -B build -S . -G Ninja --preset debug
|
2024-08-19 08:36:42 -04:00
|
|
|
- cmake --build build
|
2024-08-19 09:30:41 -04:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- build/
|
|
|
|
expire_in: 1 hour
|
2024-08-19 08:36:42 -04:00
|
|
|
|
|
|
|
run_tests:
|
|
|
|
stage: test
|
2024-08-19 09:38:54 -04:00
|
|
|
dependencies:
|
|
|
|
- build
|
2024-08-19 08:36:42 -04:00
|
|
|
script:
|
2024-08-19 10:16:27 -04:00
|
|
|
- apt-get update && apt-get install -y xvfb
|
|
|
|
- Xvfb :99 -screen 0 1024x768x24 &
|
2024-08-19 10:24:27 -04:00
|
|
|
- sleep 5
|
2024-08-19 10:16:27 -04:00
|
|
|
- export DISPLAY=:99
|
2024-08-19 10:43:07 -04:00
|
|
|
- export TEST_MODE=1
|
2024-08-19 09:38:54 -04:00
|
|
|
- cd build
|
2024-08-19 10:43:07 -04:00
|
|
|
- ./TerraVisor
|