Browse Source

Add a small script to test Gitlab CI

 + If this is working, it may be a solution to use Gitlab CI.
Leo 9 years ago
parent
commit
49ba4b1252
2 changed files with 21 additions and 0 deletions
  1. 4 0
      .gitlab-ci.yml
  2. 17 0
      gitlab-ci.sh

+ 4 - 0
.gitlab-ci.yml

@@ -9,3 +9,7 @@ ocaml_sys:
 # OCaml version 4.02
 # OCaml version 4.02
 ocaml_402:
 ocaml_402:
   script: "opam init --comp 4.02.3;eval `opam config env`;./configure --enable-tests;make test;opam pin add oclaunch ."
   script: "opam init --comp 4.02.3;eval `opam config env`;./configure --enable-tests;make test;opam pin add oclaunch ."
+
+# A script to test
+ocaml_script:
+  script: "./gitlab-ci.sh"

+ 17 - 0
gitlab-ci.sh

@@ -0,0 +1,17 @@
+#!/bin/sh
+
+# Inspired by https://github.com/ocaml/ocaml-ci-scripts
+
+# Installing opam
+opam init --comp="4.02.2"
+
+eval `opam config env`
+
+opam --version
+opam --git-version
+ocaml -version
+
+# Building OcLaunch and running tests
+./configure --enable-tests
+make
+./test.native