git » chasquid » commit f4b41b6

gitlab-ci.yml: Add a configuration file for GitLab CI

author Alberto Bertogli
2018-11-29 02:27:03 UTC
committer Alberto Bertogli
2018-11-30 10:03:48 UTC
parent dd7cfaebf2d503d8aa6df969d166cba8b665b790

gitlab-ci.yml: Add a configuration file for GitLab CI

This patch adds a configuration file for the GitLab CI environment, to
run the integration tests with docker.

.gitlab-ci.yml +14 -0

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..8be0f5e
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,14 @@
+
+stages:
+  - test
+
+integration_test:
+  stage: test
+  image: docker:stable
+  services:
+    - docker:dind
+  script:
+    - docker info
+    - docker build -t chasquid-test -f test/Dockerfile .
+    - docker run chasquid-test  env
+    - docker run chasquid-test  make test