Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dz-ci-prototype
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
poquet
dz-ci-prototype
Commits
781a112a
Commit
781a112a
authored
2 years ago
by
Millian Poquet
Browse files
Options
Downloads
Patches
Plain Diff
ci: nix job
parent
cd476291
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+16
-6
16 additions, 6 deletions
.gitlab-ci.yml
with
16 additions
and
6 deletions
.gitlab-ci.yml
+
16
−
6
View file @
781a112a
#image: oarteam/batsim_ci:latest
variables
:
GIT_SUBMODULE_STRATEGY
:
none
stages
:
-
unique_stage
###############################################################################
# Build and test
###############################################################################
debian
:
stage
:
unique_stage
image
:
debian:unstable-slim
#
we could cache
dependencies installation
in our own D
ocker
file
# dependencies installation
could be cached in a container we maintain somewhere (e.g., d
ocker
hub)
script
:
# Get various dependencies
-
apt update -y
-
apt install -y g++ libsimgrid-dev libzmq3-dev libprotobuf-dev protobuf-compiler libgtest-dev meson ninja-build pkg-config python3 python3-pip
# Build protocol (c++)
-
(cd protocol && meson setup build --prefix=/usr && ninja -C build && meson install -C build)
...
...
@@ -37,3 +33,17 @@ debian:
-
test/simulator-cpp-client.sh
# Run integration tests (simgrid simulator VS python client)
-
test/simulator-py-client.sh
nix
:
stage
:
unique_stage
image
:
oarteam/batsim_ci:latest
# this is just a NixOS with the needed tools to be run by a GitLab CI runner
# defined there: https://framagit.org/batsim/batsim/-/blob/90bbff66007469255d2c082511b72f1e1efca3b8/env/docker/default.nix
script
:
# Packages can be built explicitly if desired
-
nix-build . -A protocol-cpp
# Any dependency will also be built, for example the following command also builds protocol-python
-
nix-build . -A client-py
# Therefore one can just run its desired leaf of the build tree, such as:
-
nix-shell . -A integration_shell_cpp --command './test/simulator-cpp-client.sh'
-
nix-shell . -A integration_shell_py --command './test/simulator-py-client.sh'
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