diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000000000000000000000000000000000000..0e5a933f671453020ee51e09535a0c43fbb820fc
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,12 @@
+image: python:latest
+
+stages:          # List of stages for jobs, and their order of execution
+  - build
+
+
+build-job:       # This job runs in the build stage, which runs first.
+  stage: build
+  script:
+    - echo "Compiling the code..."
+    - make build
+    - echo "Compile complete."
diff --git a/Makefile b/Makefile
index 46dce0a9e9b55bc1a8ddb15efcc2a4791e4d5f82..1989d8f41a6a44bb13b0680f1fd54aaaf347aa7e 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,8 @@
 VERSION:
 	echo version=\'$(shell git describe --tags | sed 's/\(.*\)-.*/\1/')\' > FofbTool/_version.py
 
+build: VERSION
+	python setup.py sdist
 
 clean:
 	rm -f FofbTool/_version.py