From f3703059847ebecc40344c79883643bbbe3f360b Mon Sep 17 00:00:00 2001 From: Sam Stevens Date: Sat, 23 Jun 2018 17:11:32 +0100 Subject: [PATCH] Added gitlab runner script. Added missing header. --- .gitlab-ci.yml | 20 ++++++++++++++++++++ CMakeLists.txt | 2 +- src/bplus_tree.c | 1 + 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..c70ce8b --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,20 @@ +image: alpine:latest + +before_script: + - apk -q update + - apk -q add build-base cmake check-dev git + +stages: + - build + - test + +job_build: + stage: build + script: + - cmake . + - make + +job_test: + stage: test + script: + - check_SDB \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index a7909e8..fea69c6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.10) +cmake_minimum_required(VERSION 3.9) set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") project(SDB C) diff --git a/src/bplus_tree.c b/src/bplus_tree.c index 2e97b1a..8f5ca84 100644 --- a/src/bplus_tree.c +++ b/src/bplus_tree.c @@ -5,6 +5,7 @@ #include #include #include +#include #include "bplus_tree.h" #define APPEND_STR(str, size, _) { \