Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
batmen
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
sepia-pub
mael
batmen
Commits
70aea015
Commit
70aea015
authored
6 years ago
by
Millian Poquet
Browse files
Options
Downloads
Patches
Plain Diff
[ci] README
parent
050d146a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ci/README.md
+60
-0
60 additions, 0 deletions
ci/README.md
with
60 additions
and
0 deletions
ci/README.md
0 → 100644
+
60
−
0
View file @
70aea015
This directory is essentially a nix repository with some scripts.
# Packages overview
## batsched_local
This is the current version of batsched (built from current file hierarchy).
## batsim_pinned
This is the current
*reference*
Batsim version for batsched.
batsched should always work with this version.
## batsim_dev
This is the up-to-date Batsim version.
batsched should work with this version.
## test_deps_(pinned|local)
The list of packages needed to run tests.
This is meant to be used as a shell, not meant to be installed.
## test_(pinned|local)
A shell used to run tests. Essentially batsim_local + test_deps.
Not meant to be installed either.
# Useful commands
In all the following examples, the current directory is expected to be
batsched's root.
## Building packages
This can be done via
`nix-build`
. Result will be in
`./result/`
.
Some examples:
```
bash
nix-build ./ci
-A
batsched_local
nix-build ./ci
-A
batsim_pinned
```
## Install packages
This is done via
`nix-env`
:
```
bash
nix-env
-f
./ci
-iA
batsched_local
nix-env
-f
./ci
-iA
batsim_dev
```
To uninstall them, use
`nix-env --uninstall`
.
## Get into a shell to build packages
`nix-shell`
is your friend here. Example:
```
bash
nix-shell ./ci
-A
batsched_local
# your shell now has all batsched's build dependencies!
# you can freely build the project (cmake, make...)
```
## Run the tests
This is essentially "run the test script in the desired environment".
```
bash
# test current batsched with batsim_pinned:
nix-shell ./ci
-A
test_pinned
--command
'./ci/run-tests.bash'
# or test with batsim_dev:
nix-shell ./ci
-A
test_dev
--command
'./ci/run-tests.bash'
```
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