Add run test to make sure program actually runs
This commit is contained in:
parent
a7ffc45718
commit
229271fe0f
|
@ -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
|
|
@ -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;
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue