Add gitlab CI script

Change-Id: I7bf6c957a33e0da711d1d5c69303ef567f578bff
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..4f573fe
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,20 @@
+.test_template: &test_definition
+  # Uncomment below (and adjust as needed) to run the tests for specific references
+  # only, such as the default branch, a `development` branch, and so on:
+  # rules:
+  #   - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
+  #   - if: $CI_COMMIT_BRANCH == "development"
+  script:
+    # Let's run the tests. Substitute `coverage = false` below, if you do not
+    # want coverage results.
+    - julia -e 'using Pkg; Pkg.clone(pwd()); Pkg.build("DerekoVecs"); Pkg.test("DerekoVecs"; coverage = true)'
+    # Comment out below if you do not want coverage results.
+    - julia -e 'using Pkg; Pkg.add("Coverage");
+      import DerekoVecs; cd(joinpath(dirname(pathof(DerekoVecs)), ".."));
+      using Coverage; cl, tl = get_summary(process_folder());
+      println("(", cl/tl*100, "%) covered")'
+
+test:
+  image: julia:latest
+  <<: *test_definition
+