Adding drone builds
This commit is contained in:
parent
e8885b01e3
commit
734ae5509f
49
.drone.yml
Normal file
49
.drone.yml
Normal 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
6
Dockerfile
Normal 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
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user