From 6b8c9948761b4051b853c66ca2c639e770aee3c3 Mon Sep 17 00:00:00 2001 From: David James Sherman Date: Tue, 30 May 2017 16:36:10 +0000 Subject: [PATCH] Add .gitlab-ci.yml --- .gitlab-ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..725dfcb --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,22 @@ +image: gcc + +# build using Makefile +build: + stage: build + before_script: + - apt update && apt -y install make autoconf + script: + - make advent + artifacts: + paths: + - advent + # cache outputs to reduce the build time + cache: + paths: + - "*.o" + +# run tests using the binary built before +test: + stage: test + script: + - make check -- 2.31.1