From e289f881875370a21d5eea25ecfee9c8dc4af9ba Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Tue, 26 Mar 2019 11:25:49 +0000 Subject: [PATCH] Add .gitlab-ci.yml --- .gitlab-ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 000000000..899c337be --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,20 @@ +# use the official gcc image, based on debian +# can use verions as well, like gcc:5.2 +# see https://hub.docker.com/_/gcc/ +image: gcc + +build: + stage: build + before_script: + - apt update && apt -y install make + script: + - make -C tests + cache: + paths: + - "tests/*.o" + - "tests/test-*" + +test: + stage: test + script: + - make -C tests check