Commit 8a187c34 authored by Benoit Pasquier's avatar Benoit Pasquier

Update Julia.gitlab-ci.yml with version that worked

parent e07f5fd1
......@@ -6,7 +6,7 @@
# whatever name you have given to your package.
#
# [1]: http://julialang.org/
# [2]: http://julia.readthedocs.org/
# [2]: https://docs.julialang.org/en/v1/manual/documentation/index.html
# Below is the template to run your tests in Julia
.test_template: &test_definition
......@@ -18,30 +18,26 @@
script:
# Let's run the tests. Substitute `coverage = false` below, if you do not
# want coverage results.
- /opt/julia/bin/julia -e 'Pkg.clone(pwd()); Pkg.test("MyPackage",
coverage = true)'
- julia -e 'using Pkg; Pkg.clone(pwd()); Pkg.build("MyPackage"); Pkg.test("MyPackage"; coverage = true)'
# Comment out below if you do not want coverage results.
- /opt/julia/bin/julia -e 'Pkg.add("Coverage"); cd(Pkg.dir("MyPackage"));
- julia -e 'using Pkg; Pkg.add("Coverage");
import"MyPackage"; cd(joinpath(dirname(pathof"MyPackage"), ".."));
using Coverage; cl, tl = get_summary(process_folder());
println("(", cl/tl*100, "%) covered")'
# Name a test and select an appropriate image.
# images comes from Docker hub
test:0.6.4: # images comes from Docker hub
image: julia:0.6.4
<<: *test_definition
test:0.7: # images comes from Docker hub
test:0.7:
image: julia:0.7
<<: *test_definition
test:1.0: # images comes from Docker hub
test:1.0:
image: julia:1.0
<<: *test_definition
# Maybe you would like to test your package against the development branch:
#test:0.5.0-dev:
# image: julialang/julia:v0.5.0-dev
# test:1.1-dev (not sure there is such an image in docker, so not tested yet):
# image: julia:v1.1-dev
# # ... allowing for failures, since we are testing against the development
# # branch:
# allow_failure: true
......@@ -54,10 +50,10 @@ test:1.0: # images comes from Docker hub
# - Copying and pasting the default `Simplecov` regex example provided, i.e.,
# `\(\d+.\d+\%\) covered` in the `test coverage parsing` textfield.
#
# WARNING: This template is using the `julialang/julia` images from [Docker
# WARNING: This template is using the `julia` images from [Docker
# Hub][3]. One can use custom Julia images and/or the official ones found
# in the same place. However, care must be taken to correctly locate the binary
# file (`/opt/julia/bin/julia` above), which is usually given on the image's
# description page.
#
# [3]: http://hub.docker.com/
# [3]: https://hub.docker.com/_/julia/
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