From 9c59b1cbd6a4d0929e2dff8947e4ebe314d5c241 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E5=AE=BD=E5=AE=BD?= Date: Fri, 7 Aug 2020 03:51:04 +0000 Subject: [PATCH] Fix cicd gitlab --- .gitlab-ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 000000000..b9000ca3a --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,36 @@ +stages: + - prepare + - build + - unittest + - benchmark + +config: + stage: prepare + script: + - cd /data01/builds && rm -rf terarkdb && git clone git@code.byted.org:storage/terarkdb.git + - echo $CI_COMMIT_SHA && cd terarkdb && git checkout $CI_COMMIT_SHA + - git submodule update --init --recursive + - mkdir build && cd build && cmake ../ -DCMAKE_BUILD_TYPE=Debug + tags: + - terark + +build: + stage: build + script: + - cd /data01/builds/terarkdb/build && make -j $(nproc) + tags: + - terark + +unittest: + stage: unittest + script: + - cd /data01/builds/terarkdb/ && ./run_all_ut_tests.py + tags: + - terark + +# benchmark: +# stage: benchmark +# script: +# - cd /data01/builds/terarkdb/ && ls +# tags: +# - terarkdb -- GitLab