Commit 9b222f2a authored by Valentin Reis's avatar Valentin Reis

[ci] Offloading CI versioning to argotest.

This commits simplifies the CI setup for this repository, offloading
all complexity to the "argotest" repository.
parent e62f7ad0
Pipeline #4845 passed with stages
in 2 minutes and 22 seconds
stages: stages:
- build
- test - test
- style - style
...@@ -13,7 +14,6 @@ py.test: ...@@ -13,7 +14,6 @@ py.test:
tags: tags:
- rapl - rapl
flake8: flake8:
stage: style stage: style
script: script:
...@@ -23,29 +23,13 @@ flake8: ...@@ -23,29 +23,13 @@ flake8:
- /^wip\/.*/ - /^wip\/.*/
- /^WIP\/.*/ - /^WIP\/.*/
helloworld.integration.test: .nix-build:
stage: test stage: build
script:
- nix-shell .integration.nix --run "argotk.hs helloworld"
artifacts:
paths:
- _output/cmd_err.log
- _output/cmd_out.log
- _output/daemon_out.log
- _output/daemon_out.log
- _output/nrm.log
- _output/.argo_nodeos_config_exit_message
expire_in: 1 week
except:
- /^wip\/.*/
- /^WIP\/.*/
tags: tags:
- integration - integration
perfwrapper.integration.test: .nix-integration:
stage: test stage: test
script:
- nix-shell .integration.nix --run "argotk.hs perfwrapper"
artifacts: artifacts:
paths: paths:
- _output/cmd_err.log - _output/cmd_err.log
...@@ -60,3 +44,45 @@ perfwrapper.integration.test: ...@@ -60,3 +44,45 @@ perfwrapper.integration.test:
- /^WIP\/.*/ - /^WIP\/.*/
tags: tags:
- integration - integration
containers.build:
extends: .nix-build
script:
- CACHE=$(mktemp -d --suffix=nixcache /tmp/deletable-nix-cache-XXXX)
- XDG_CACHE_HOME=$CACHE nix-build .nix -A containers
- rm -rf $CACHE
libnrm.build:
extends: .nix-build
script:
- CACHE=$(mktemp -d --suffix=nixcache /tmp/deletable-nix-cache-XXXX)
- XDG_CACHE_HOME=$CACHE nix-build .nix -A libnrm
- rm -rf $CACHE
nrm.build:
extends: .nix-build
script:
- CACHE=$(mktemp -d --suffix=nixcache /tmp/deletable-nix-cache-XXXX)
- XDG_CACHE_HOME=$CACHE nix-build .nix -A nrm
- rm -rf $CACHE
TestHello.test:
extends: .nix-integration
script:
- CACHE=$(mktemp -d --suffix=nixcache /tmp/deletable-nix-cache-XXXX)
- XDG_CACHE_HOME=$CACHE nix-shell .nix -A test --run "argotk.hs TestHello"
- rm -rf $CACHE
TestListen.test:
extends: .nix-integration
script:
- CACHE=$(mktemp -d --suffix=nixcache /tmp/deletable-nix-cache-XXXX)
- XDG_CACHE_HOME=$CACHE nix-shell .nix -A test --run "argotk.hs TestListen"
- rm -rf $CACHE
TestPerfwrapper.test:
extends: .nix-integration
script:
- CACHE=$(mktemp -d --suffix=nixcache /tmp/deletable-nix-cache-XXXX)
- XDG_CACHE_HOME=$CACHE nix-shell .nix -A test --run "argotk.hs TestPerfwrapper"
- rm -rf $CACHE
let argotest =
builtins.fetchTarball
"https://xgitlab.cels.anl.gov/argo/argotest/-/archive/master/argotest-master.tar.gz";
in import "${argotest}/test.nix" {
nrm-override = ./..;
testName = "base";
}
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