Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-julialib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-julialib
Commits
c3254eee
Commit
c3254eee
authored
3 years ago
by
florian
Browse files
Options
Downloads
Patches
Plain Diff
TST: Add dummy pipeline script from gitlab examples
parent
b409e86a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#9501
failed
3 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
.gitlab-ci.yml
+80
-0
80 additions, 0 deletions
.gitlab-ci.yml
with
81 additions
and
0 deletions
.gitignore
+
1
−
0
View file @
c3254eee
*~
/deps/build.log
/docs/build/
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
0 → 100644
+
80
−
0
View file @
c3254eee
# Taken an adapted from gitlab's example repos:
# https://gitlab.com/gitlab-examples/julia
# An example .gitlab-ci.yml file to test (and optionally report the
# coverage results of) your [Julia][1] packages. Please refer to the
# [documentation][2] for more information about package development in
# Julia.
#
# Here, it is assumed that your Julia package is named
# `MyPackage`. Change it to whatever name you have given to your
# package.
#
# [1]: http://julialang.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
# Uncomment below if you would like to run the tests on specific
# references only, such as the branches `master`, `development`,
# etc.
# only:
# - master
# - development
script
:
# Let's run the tests. Substitute `coverage = false` below, if you
# do not want coverage results.
-
julia -e 'using Pkg; Pkg.clone(pwd());
Pkg.build("CaosDB");
Pkg.test("CaosDB"; coverage =
true
)'
# Comment out below if you do not want coverage results. -
julia -e 'using Pkg; Pkg.add("Coverage");
import CaosDB;
cd(joinpath(dirname(pathof(CaosDB)), ".."));
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.7
:
image
:
julia:0.7
<<
:
*test_definition
test:1.0
:
image
:
julia:1.0
<<
:
*test_definition
test:1.6
:
image
:
julia:1.6
<<
:
*test_definition
# REMARK: Do not forget to enable the coverage feature for your
# project, if you are using code coverage reporting above. This can be
# done by
#
# - Navigating to the `CI/CD Pipelines` settings of your project,
# - Copying and pasting the default `Simplecov` regex example
# provided, i.e., `\(\d+.\d+\%\) covered` in the `test coverage
# parsing` textfield.
# Example documentation deployment
pages
:
image
:
julia:0.7
stage
:
deploy
script
:
-
apt-get update -qq && apt-get install -y git
# needed by Documenter
-
julia -e 'using Pkg; Pkg.clone(pwd()); Pkg.build("CaosDB");'
# rebuild Julia (can be put somewhere else I'm sure)
-
julia -e 'using Pkg; import CaosDB; 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
:
-
main
# 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]: https://hub.docker.com/_/julia/
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment