Commit 9b6d8dea authored by Kim Nguyễn's avatar Kim Nguyễn
Browse files

Add a script to generate CI configuration file.

parent 3a9efbf2
stages:
- compile
- test
......@@ -15,94 +16,94 @@ stages:
script:
- opam pin -y cduce-types .
- opam pin -y cduce .
compile_4.07.1:
image: ocaml-cduce:4.07.1
<<: *compile_template
compile_4.08.1:
image: ocaml-cduce:4.08.1
<<: *compile_template
compile_4.09.1:
image: ocaml-cduce:4.09.1
<<: *compile_template
compile_4.10.2:
image: ocaml-cduce:4.10.2
<<: *compile_template
compile_4.11.2:
image: ocaml-cduce:4.11.2
<<: *compile_template
compile_4.12.0:
image: ocaml-cduce:4.12.0
<<: *compile_template
test_4.07.1:
image: ocaml-cduce:4.07.1
<<: *test_template
test_4.08.1:
image: ocaml-cduce:4.08.1
<<: *test_template
test_4.09.1:
image: ocaml-cduce:4.09.1
<<: *test_template
test_4.10.2:
image: ocaml-cduce:4.10.2
<<: *test_template
test_4.11.2:
image: ocaml-cduce:4.11.2
<<: *test_template
test_4.12.0:
image: ocaml-cduce:4.12.0
<<: *test_template
needs:[ "compile_4.07.1" ]
package_4.07.1:
image: ocaml-cduce:4.07.1
<<: *package_template
needs:[ "test_4.07.1" ]
compile_4.08.1:
image: ocaml-cduce:4.08.1
<<: *compile_template
test_4.08.1:
image: ocaml-cduce:4.08.1
<<: *test_template
needs:[ "compile_4.08.1" ]
package_4.08.1:
image: ocaml-cduce:4.08.1
<<: *package_template
needs:[ "test_4.08.1" ]
compile_4.09.1:
image: ocaml-cduce:4.09.1
<<: *compile_template
test_4.09.1:
image: ocaml-cduce:4.09.1
<<: *test_template
needs:[ "compile_4.09.1" ]
package_4.09.1:
image: ocaml-cduce:4.09.1
<<: *package_template
needs:[ "test_4.09.1" ]
compile_4.10.2:
image: ocaml-cduce:4.10.2
<<: *compile_template
test_4.10.2:
image: ocaml-cduce:4.10.2
<<: *test_template
needs:[ "compile_4.10.2" ]
package_4.10.2:
image: ocaml-cduce:4.10.2
<<: *package_template
needs:[ "test_4.10.2" ]
compile_4.11.2:
image: ocaml-cduce:4.11.2
<<: *compile_template
test_4.11.2:
image: ocaml-cduce:4.11.2
<<: *test_template
needs:[ "compile_4.11.2" ]
package_4.11.2:
image: ocaml-cduce:4.11.2
<<: *package_template
needs:[ "test_4.11.2" ]
compile_4.12.0:
image: ocaml-cduce:4.12.0
<<: *compile_template
test_4.12.0:
image: ocaml-cduce:4.12.0
<<: *test_template
needs:[ "compile_4.12.0" ]
package_4.12.0:
image: ocaml-cduce:4.12.0
<<: *package_template
needs:[ "test_4.12.0" ]
#!/bin/sh
echo "
stages:
- compile
- test
- package
.compile_template: &compile_template
script:
- dune build @binary
.test_template: &test_template
script:
- dune build @runtest
.package_template: &package_template
script:
- opam pin -y cduce-types .
- opam pin -y cduce .
"
for v in 4.07.1 4.08.1 4.09.1 4.10.2 4.11.2 4.12.0
do
p=""
for s in compile test package
do
echo "${s}_${v}:"
echo " image: ocaml-cduce:${v}"
echo " <<: *${s}_template"
echo -n "$p"
echo
p=" needs:[ \"${s}_${v}\" ]
"
done
echo
done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment