terravisor/.gitlab-ci.yml

38 lines
788 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
- ls /vcpkg/installed
- ls /vcpkg/installed/x64-linux/
- ls /vcpkg/installed/x64-linux/share
- ls /vcpkg/installed/x64-linux/share/lib
- mkdir -p build
- cmake -B build -S . -G Ninja -DCMAKE_TOOLCHAIN_FILE=$VCPKG_TOOLCHAIN
- cmake --build build
artifacts:
paths:
- build/
expire_in: 1 hour
run_tests:
stage: test
dependencies:
- build
script:
- ls -R
- cd build
- ls -l
- chmod +x TerraVisor
- timeout 30s ./TerraVisor