diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000000000000000000000000000000000000..6ccaf81b86bc607e79301acf8dc99ab0a402ea50
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,12 @@
+before_script:
+  - apt-get update -qq && apt-get install -y wget bzip2 make gcc gcc-multilib time bc git
+  - wget -nv https://common-lisp.net/project/cmucl/downloads/snapshots/2017/04/cmucl-2017-04-x86-linux.tar.bz2
+  - wget -nv https://common-lisp.net/project/cmucl/downloads/snapshots/2017/04/cmucl-2017-04-x86-linux.extra.tar.bz2
+  - mkdir snapshot
+  - (cd snapshot; tar xjf ../cmucl-2017-04-x86-linux.tar.bz2; tar xjf ../cmucl-2017-04-x86-linux.extra.tar.bz2)
+
+test:
+  script:
+    - bin/build.sh -B boot-2017-04-1 -C "" -o ./snapshot/bin/lisp
+    - bin/make-dist.sh -I dist-linux linux-4
+    - bin/run-tests.sh -l dist-linux/bin/lisp 2>&1 | tee test.log
diff --git a/README.md b/README.md
index 5c6c28570c670f3fa7199b32538114002c922380..8a3d0097485bba64ced282f3d247157ee729b64b 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,5 @@
+[![pipeline status](https://gitlab.common-lisp.net/cmucl/cmucl/badges/rtoy-gitlab-ci/pipeline.svg)](https://gitlab.common-lisp.net/cmucl/cmucl/commits/rtoy-gitlab-ci)
+
 CMUCL is a free, high performance implementation of the Common Lisp
 programming language which runs on most major Unix platforms. It
 mainly conforms to the ANSI Common Lisp standard. CMUCL provides a
@@ -50,6 +52,4 @@ Here is a summary of its main features:
   maintained and improved by a team of volunteers collaborating over
   the Internet.
 
-For the latest news and other information, see [the wiki](https://gitlab.common-lisp.net/cmucl/cmucl/wikis/home).
-
-[![pipeline status](https://gitlab.common-lisp.net/cmucl/cmucl/badges/master/pipeline.svg)](https://gitlab.common-lisp.net/cmucl/cmucl/commits/master)
\ No newline at end of file
+For the latest news and other information, see [the wiki](https://gitlab.common-lisp.net/cmucl/cmucl/wikis/home).
\ No newline at end of file