Add run test to make sure program actually runs

This commit is contained in:
Jack Christensen 2024-08-19 08:36:42 -04:00
parent a7ffc45718
commit 229271fe0f
3 changed files with 9 additions and 4 deletions

View File

@ -13,4 +13,12 @@ build:
# Set the VCPKG_TOOLCHAIN environment variable # Set the VCPKG_TOOLCHAIN environment variable
- export VCPKG_TOOLCHAIN=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake - export VCPKG_TOOLCHAIN=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake
- cmake -B build -S . -G Ninja -DCMAKE_TOOLCHAIN_FILE=$VCPKG_TOOLCHAIN - cmake -B build -S . -G Ninja -DCMAKE_TOOLCHAIN_FILE=$VCPKG_TOOLCHAIN
- cmake --build build - cmake --build build
run_tests:
stage: test
script:
- cd build
- timeout 30s ./TerraVisor
only:
main

View File

@ -1,7 +1,6 @@
#include <glm/glm.hpp> #include <glm/glm.hpp>
#include "callbacks.h" #include "callbacks.h"
//#include "platform_utils.h"
namespace Callbacks { namespace Callbacks {
Scene* scene_ = nullptr; Scene* scene_ = nullptr;

View File

@ -72,8 +72,6 @@ Scene::~Scene() {
void Scene::Init() { void Scene::Init() {
glewInit(); glewInit();
// GL_DEPTH_TEST causes artifacts in meshes made up of multiple triangles
// disabling for now
glEnable(GL_DEPTH_TEST); glEnable(GL_DEPTH_TEST);
glEnable(GL_CULL_FACE); glEnable(GL_CULL_FACE);