terravisor/.gitlab-ci.yml

24 lines
499 B
YAML

image: jmchr/opengl-test-env:latest
# Define the stages of your pipeline
stages:
- build
- test
variables:
VCPKG_ROOT: "/vcpkg"
build:
stage: build
script:
# Set the VCPKG_TOOLCHAIN environment variable
- export VCPKG_TOOLCHAIN=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake
- cmake -B build -S . -G Ninja -DCMAKE_TOOLCHAIN_FILE=$VCPKG_TOOLCHAIN
- cmake --build build
run_tests:
stage: test
script:
- cd ..
- chmod +x terravisor
- timeout 30s ./terravisor