Added gitlab runner script.

Added missing header.
This commit is contained in:
2018-06-23 17:11:32 +01:00
parent 566bf94225
commit f370305984
3 changed files with 22 additions and 1 deletions

20
.gitlab-ci.yml Normal file
View File

@@ -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

View File

@@ -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") set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
project(SDB C) project(SDB C)

View File

@@ -5,6 +5,7 @@
#include <malloc.h> #include <malloc.h>
#include <string.h> #include <string.h>
#include <assert.h> #include <assert.h>
#include <stdio.h>
#include "bplus_tree.h" #include "bplus_tree.h"
#define APPEND_STR(str, size, _) { \ #define APPEND_STR(str, size, _) { \