mirror of
https://gitlab.cern.ch/wotsubo/PSBoardDataBase.git
synced 2025-06-08 05:55:42 +09:00
new: CI
This commit is contained in:
parent
ea7e87f36f
commit
6060e26e90
1 changed files with 43 additions and 0 deletions
43
.gitlab-ci.yml
Normal file
43
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,43 @@
|
|||
.script:
|
||||
script:
|
||||
- |
|
||||
julia --project=@. -e '
|
||||
using Pkg
|
||||
Pkg.build()
|
||||
Pkg.test(coverage=true)'
|
||||
.coverage:
|
||||
coverage: /Test coverage (\d+\.\d+%)/
|
||||
after_script:
|
||||
- |
|
||||
julia -e '
|
||||
using Pkg
|
||||
Pkg.add("Coverage")
|
||||
using Coverage
|
||||
c, t = get_summary(process_folder())
|
||||
using Printf
|
||||
@printf "Test coverage %.2f%%\n" 100c / t'
|
||||
Julia 1.10:
|
||||
image: julia:1.10
|
||||
extends:
|
||||
- .script
|
||||
- .coverage
|
||||
pages:
|
||||
image: julia:1.10
|
||||
stage: deploy
|
||||
script:
|
||||
- |
|
||||
julia --project=docs -e '
|
||||
using Pkg
|
||||
Pkg.develop(PackageSpec(path=pwd()))
|
||||
Pkg.instantiate()
|
||||
using Documenter: doctest
|
||||
using PSBoardDataBase
|
||||
doctest(PSBoardDataBase)
|
||||
include("docs/make.jl")'
|
||||
- mkdir -p public
|
||||
- mv docs/build public/dev
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
only:
|
||||
- main
|
Loading…
Add table
Reference in a new issue