Add .gitlab-ci.yml
authorDavid James Sherman <davidjsherman@free.fr>
Tue, 30 May 2017 16:36:10 +0000 (16:36 +0000)
committerDavid James Sherman <davidjsherman@free.fr>
Tue, 30 May 2017 16:36:10 +0000 (16:36 +0000)
.gitlab-ci.yml [new file with mode: 0644]

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644 (file)
index 0000000..725dfcb
--- /dev/null
@@ -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