
Allows for Julia code to not require the use of semi-colon which is matches how most users will write Julia code. An additional benefit is that it allows for use of single line comments.
32 lines
565 B
YAML
32 lines
565 B
YAML
.definitions:
|
|
script: &script
|
|
script:
|
|
- |
|
|
julia --project=@. -e '
|
|
using Pkg
|
|
Pkg.build()
|
|
Pkg.test()'
|
|
Julia 0.6:
|
|
image: julia:0.6
|
|
<<: *script
|
|
Julia 1.2:
|
|
image: julia:1.2
|
|
<<: *script
|
|
pages:
|
|
image: julia:1.2
|
|
stage: deploy
|
|
script:
|
|
- |
|
|
julia --project=docs -e '
|
|
using Pkg
|
|
Pkg.develop(PackageSpec(path=pwd()))
|
|
Pkg.instantiate()
|
|
include("docs/make.jl")'
|
|
- mkdir -p public
|
|
- mv docs/build public/dev
|
|
artifacts:
|
|
paths:
|
|
- public
|
|
only:
|
|
- master
|