Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Julia Docker Client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FACT
FACT Utils
Julia Docker Client
Commits
5021f28c
Commit
5021f28c
authored
6 months ago
by
Riccardo Boero
Browse files
Options
Downloads
Patches
Plain Diff
Integration of test into CI/CD worflow
parent
07be2c6e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+20
-1
20 additions, 1 deletion
.gitlab-ci.yml
with
20 additions
and
1 deletion
.gitlab-ci.yml
+
20
−
1
View file @
5021f28c
image
:
julia:latest
image
:
julia:latest
stages
:
stages
:
-
test
# New stage for running tests
-
documentation
-
documentation
-
deploy
-
deploy
# Test stage for running unit tests with Docker
test
:
stage
:
test
services
:
-
docker:dind
# Docker-in-Docker service to allow Docker commands in your job
variables
:
JULIA_PROJECT
:
"
."
# Ensure that Julia uses the project environment
before_script
:
-
julia -e 'using Pkg; Pkg.instantiate()'
# Install required packages
script
:
-
julia --project=. -e 'using Test; include("test/runtest.jl")'
# Run the tests
only
:
-
main
tags
:
-
docker
# Optional: tag for specific runners that support Docker
# Documentation stage
build documentation
:
build documentation
:
stage
:
documentation
stage
:
documentation
script
:
script
:
...
@@ -16,6 +34,7 @@ build documentation:
...
@@ -16,6 +34,7 @@ build documentation:
only
:
only
:
-
main
-
main
# Deploy stage for GitLab Pages
pages
:
pages
:
stage
:
deploy
stage
:
deploy
script
:
script
:
...
@@ -24,4 +43,4 @@ pages:
...
@@ -24,4 +43,4 @@ pages:
paths
:
paths
:
-
public
-
public
only
:
only
:
-
main
-
main
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