Commit 7bc35437 authored by Valentin Reis's avatar Valentin Reis

Readme update.

parent 79df02b1
Pipeline #5366 passed with stages
in 1 minute
# argopkgs
Nix-packages for Argo.
this repo has two things:
- `pkgs`: Nix packages for argo components, target applications, and related tools.
- the only set of minimal useful nix expressions argo ever should need
- `deployments`, `modules`: NixOps server deployment related utilities for Argo CI.
There are a bunch of Hydra-related configurations, as well as some gitlab-runner configs.
- some gitlab files, wich are imported in turn by other repositories
that run integration tests
There are also a bunch of Hydra-related files that can be used to deploy an instance.
both these things are maintained and master is expected to *just work*
#### Integration tests:
see the `gitlab-ci.yml` file. The integration tests for this repo just make sure that
the nix expressions are basically able to build nrm, containers, libnrm anad libnrm-pmpi.
##### structure
#### Building and installing a specific packaged Argo component:
```
nix-env -iA argo.<packagename>
```
- `pkgs`: nix packages for argo components, applications, internal tools.
- `lib`: some supporting nix expressions
- `deployments`, `modules`: nixops CI server deployment related code.
- `.gitlab-ci.yml`: CI file.
variables:
ARGOPKGS : "https://xgitlab.cels.anl.gov/argo/argopkgs/-/archive/continuous-integration/argopkgs-continuous-integration.tar.gz"
before_script:
- nix-env -f $ARGOPKGS -iA argonix
####TEMPLATES
.nix-build:
stage: build
tags:
- integration
.nix-integration:
stage: test
artifacts:
paths:
- _output/*
expire_in: 1 week
when: always
tags:
- integration
containers.build:
extends: .nix-build
script:
- nix-build $ARGOPKGS -A containers
libnrm.build:
extends: .nix-build
script:
- nix-build $ARGOPKGS -A libnrm
nrm.build:
extends: .nix-build
script:
- nix-build $ARGOPKGS -A nrm
############# Integration tests ############
.TestPower.test:
extends: .nix-integration
script:
- CACHE=$(mktemp -d --suffix=nixcache /tmp/deletable-nix-cache-XXXX)
- XDG_CACHE_HOME=$CACHE SUDO=$(which sudo) nix-shell --keep SUDO --pure --allow-new-privileges --option build-extra-sandbox-paths $(which sudo | xargs dirname) -A test --run "argotk TestPower --verbose"
- rm -rf $CACHE
.TestHello.test:
extends: .nix-integration
script:
- CACHE=$(mktemp -d --suffix=nixcache /tmp/deletable-nix-cache-XXXX)
- XDG_CACHE_HOME=$CACHE SUDO=$(which sudo) nix-shell --keep SUDO --pure --allow-new-privileges --option build-extra-sandbox-paths $(which sudo | xargs dirname) -A test --run "argotk TestHello --verbose"
- rm -rf $CACHE
.TestListen.test:
extends: .nix-integration
script:
- CACHE=$(mktemp -d --suffix=nixcache /tmp/deletable-nix-cache-XXXX)
- XDG_CACHE_HOME=$CACHE SUDO=$(which sudo) nix-shell --keep SUDO --pure --allow-new-privileges --option build-extra-sandbox-paths $(which sudo | xargs dirname) -A test --run "argotk TestListen --verbose"
- rm -rf $CACHE
.TestPerfwrapper.test:
extends: .nix-integration
script:
- CACHE=$(mktemp -d --suffix=nixcache /tmp/deletable-nix-cache-XXXX)
- XDG_CACHE_HOME=$CACHE SUDO=$(which sudo) nix-shell --keep SUDO --pure --allow-new-privileges --option build-extra-sandbox-paths $(which sudo | xargs dirname) -A test --run "argotk TestPerfwrapper --verbose"
- rm -rf $CACHE
.TestSTREAM.test:
extends: .nix-integration
script:
- CACHE=$(mktemp -d --suffix=nixcache /tmp/deletable-nix-cache-XXXX)
- XDG_CACHE_HOME=$CACHE SUDO=$(which sudo) nix-shell --keep SUDO --pure --allow-new-privileges --option build-extra-sandbox-paths $(which sudo | xargs dirname) -A test --run "argotk TestSTREAM --verbose"
- rm -rf $CACHE
KNL-Power.test:
extends: .TestPower.test
tags:
- knl
Perfwrapper.test:
extends: .TestPerfwrapper.test
KNL-Perfwrapper.test:
extends: .TestPerfwrapper.test
tags:
- knl
Listen.test:
extends: .TestListen.test
KNL-Listen.test:
extends: .TestListen.test
tags:
- knl
Hello.test:
extends: .TestHello.test
KNL-Hello.test:
extends: .TestHello.test
tags:
- knl
KNL-STREAM.test:
extends: .TestSTREAM.test
tags:
- knl
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment