fen_strings #1

Merged
djweber12 merged 6 commits from fen_strings into master 2024-10-04 21:42:35 -04:00
4 changed files with 59 additions and 14 deletions
Showing only changes of commit 734ae5509f - Show all commits

49
.drone.yml Normal file
View File

@ -0,0 +1,49 @@
kind: pipeline
type: docker
name: chessboard
trigger:
branch:
- main
event:
- push
steps:
- name: build
image: git.pipsquire.com/djweber12/Chess_Board_Sim:latest
commands:
- cmake -S . -B build
- cmake --build build
---
kind: pipeline
type: docker
name: chessboard_builder
trigger:
branch:
- main
event:
- push
steps:
- name: docker
image: plugins/docker
settings:
repo: git.pipsquire.com/djweber12/Chess_Board_Sim
registry: git.pipsquire.com
username:
from_secret: docker_username
password:
from_secret: docker_password
#
# - name: test
# image: foo:latest
# commands:
# - cmake -s . -b build
# - cmake --build build
#
# volumes:
# - name: dockersock

6
Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM ubuntu:22.04
run apt-get update && \
apt-get install -y libsdl2-dev libsdl2-2.0-0 cmake g++ && \
apt-get clean

View File

@ -33,18 +33,18 @@ foreach (_headerFile ${headers})
endforeach()
add_executable(
hello_test
chess_test
# ${cpp_sources}
${test_sources}
${c_sources}
)
target_include_directories(hello_test PRIVATE ${include_dirs})
target_include_directories(chess_test PRIVATE ${include_dirs})
target_link_libraries(
hello_test
chess_test
GTest::gtest_main
SDL2::SDL2
)
include(GoogleTest)
gtest_discover_tests(hello_test)
gtest_discover_tests(chess_test)

View File

@ -1,10 +0,0 @@
#include <gtest/gtest.h>
// Demonstrate some basic assertions.
TEST(HelloTest, BasicAssertions) {
// Expect two strings not to be equal.
EXPECT_STRNE("hello", "world");
// Expect equality.
EXPECT_EQ(7 * 6, 42);
}