Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
Microbenchmarks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mattia Mancini
Microbenchmarks
Commits
47ef3995
Commit
47ef3995
authored
May 10, 2024
by
Mattia Mancini
Browse files
Options
Downloads
Patches
Plain Diff
Refactor CI/CD
parent
4cc3323b
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!3
Add test for matrix
Pipeline
#81439
failed
May 10, 2024
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+24
-17
24 additions, 17 deletions
.gitlab-ci.yml
with
24 additions
and
17 deletions
.gitlab-ci.yml
+
24
−
17
View file @
47ef3995
...
...
@@ -21,25 +21,37 @@ docker-base:
-
docker build --pull -t "$CI_REGISTRY_IMAGE:latest" .
-
docker push "$CI_REGISTRY_IMAGE:latest"
.build_das6
:
before_script
:
-
module load spack/12.2.0
-
module load cmake
-
module load boost
-
module load casacore
-
cmake -B build . -DCMAKE_BUILD_TYPE=Release
-
make -C build -j
.build_docker
:
image
:
"
$CI_REGISTRY_IMAGE:latest"
before_script
:
-
cmake -B build . -DCMAKE_BUILD_TYPE=Release
-
make -C build -j
-
build/microbenchmarks --benchmark_out=results-generic.json --benchmark_out_format=json
build-job
:
# This job runs in the build stage, which runs first.
stage
:
build
image
:
"
$CI_REGISTRY_IMAGE:latest"
script
:
-
cmake -B build . -DCMAKE_BUILD_TYPE=Release
-
make -C build
-
make -C build
-j
-
build/microbenchmarks --benchmark_out=results-generic.json --benchmark_out_format=json
unittests
:
stage
:
test
image
:
"
$CI_REGISTRY_IMAGE:latest"
script
:
-
cmake -B build . -DCMAKE_BUILD_TYPE=Release
-
make -C build
-
build/microbenchmarks --benchmark_out=results-generic.json --benchmark_out_format=json
script
:
-
cmake -B build .
-
make -C build
-
make -C build
-j
-
build/unittests
collect-performance
:
# This job runs in the test stage.
...
...
@@ -48,18 +60,13 @@ collect-performance: # This job runs in the test stage.
stage
:
benchmark
# It only starts when the job in the build stage completes successfully.
dependencies
:
-
build-job
before_script
:
-
module load spack/12.2.0
-
module load cmake
-
module load boost
-
module load casacore
extends
:
-
build_das6
script
:
-
cmake -B build . -DCMAKE_BUILD_TYPE=Release
-
make -C build
-
build/microbenchmarks --benchmark_out=results.json --benchmark_out_format=json
artifacts
:
paths
:
-
./results.json
-
./results
*
.json
untracked
:
false
when
:
on_success
access
:
all
...
...
@@ -68,13 +75,13 @@ collect-performance: # This job runs in the test stage.
collect-performance-generic
:
stage
:
benchmark
image
:
"
$CI_REGISTRY_IMAGE:latest"
extends
:
-
build_docker
script
:
-
cmake -B build . -DCMAKE_BUILD_TYPE=Release
-
make -C build
-
build/microbenchmarks --benchmark_out=results-generic.json --benchmark_out_format=json
artifacts
:
paths
:
-
./results.json
-
./results
*
.json
untracked
:
false
when
:
on_success
access
:
all
...
...
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