terravisor/.gitlab-ci.yml

35 lines
713 B
YAML
Raw Normal View History

2024-08-12 16:11:18 -04:00
image: jmchr/opengl-test-env:latest
# Define the stages of your pipeline
2024-08-10 23:24:51 -04:00
stages:
- build
2024-08-19 08:38:22 -04:00
- test
2024-08-10 23:24:51 -04:00
variables:
VCPKG_ROOT: "/vcpkg"
build:
stage: build
2024-08-10 23:35:01 -04:00
script:
# 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
- cmake -B build -S . -G Ninja -DCMAKE_TOOLCHAIN_FILE=$VCPKG_TOOLCHAIN
- cmake --build build
2024-08-19 09:30:41 -04:00
artifacts:
paths:
- build/
expire_in: 1 hour
run_tests:
stage: test
2024-08-19 09:38:54 -04:00
dependencies:
- build
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 09:38:54 -04:00
- cd build
- timeout 30s ./TerraVisor