Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
bvictor
ABMEv
Commits
1c6399aa
Commit
1c6399aa
authored
Oct 09, 2020
by
Victor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding test to gitlab-ci
parent
1a7a9026
Pipeline
#74899
failed with stage
in 57 minutes and 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
13 deletions
+40
-13
.gitlab-ci.yml
.gitlab-ci.yml
+40
-13
No files found.
.gitlab-ci.yml
View file @
1c6399aa
pages
:
.test_template
:
&test_definition
image
:
julia:1.4
# Uncomment below if you would like to run the tests on specific references
stage
:
deploy
# only, such as the branches `master`, `development`, etc.
# only:
# - master
# - development
script
:
script
:
-
apt-get update -qq && apt-get install -y git
# needed by Documenter
# Let's run the tests. Substitute `coverage = false` below, if you do not
-
julia -e 'using Pkg; Pkg.add(PackageSpec(path =pwd())); Pkg.build("ABMEv");'
# rebuild Julia (can be put somewhere else I'm sure
# want coverage results.
-
julia -e 'using Pkg; import ABMEv; Pkg.add("Documenter")'
# install Documenter
-
julia -e 'using Pkg; Pkg.add(PackageSpec(path =pwd())); Pkg.build("ABMEv"); Pkg.test("ABMEv"; coverage =
true
)'
-
julia --color=yes docs/make.jl
# make documentation
# Comment out below if you do not want coverage results.
-
mv docs/build public
# move to the directory picked up by Gitlab pages
-
julia -e 'using Pkg; Pkg.add("Coverage");
artifacts
:
import ABMEv; cd(joinpath(dirname(pathof(ABMEv)), ".."));
paths
:
using Coverage; cl, tl = get_summary(process_folder());
-
public
println("(", cl/tl*100, "%) covered")'
only
:
-
master
# Name a test and select an appropriate image.
# images comes from Docker hub
test:0.7:
image
:
julia:0.7
<<
:
*test_definition
test:1.0:
image
:
julia:1.0
<<
:
*test_definition
## Below commented because gitlab.ethz.ch has disabled Pages feature
# pages:
# image: julia:1.4
# stage: deploy
# script:
# - apt-get update -qq && apt-get install -y git # needed by Documenter
# - julia -e 'using Pkg; Pkg.add(PackageSpec(path =pwd())); Pkg.build("ABMEv");' # rebuild Julia (can be put somewhere else I'm sure
# - julia -e 'using Pkg; import ABMEv; Pkg.add("Documenter")' # install Documenter
# - julia --color=yes docs/make.jl # make documentation
# - mv docs/build public # move to the directory picked up by Gitlab pages
# artifacts:
# paths:
# - public
# only:
# - master
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment