Commit edbdcd42 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 c81c458d
Pipeline #4853 passed with stages
in 35 seconds
...@@ -18,20 +18,13 @@ stages: ...@@ -18,20 +18,13 @@ stages:
#- /^WIP.*/ #- /^WIP.*/
# #
libnrm.build: .nix-build:
stage: build stage: build
script:
- nix-build .integration.nix -A libnrm
except:
- /^wip\/.*/
- /^WIP\/.*/
tags: tags:
- integration - integration
helloworld.integration.test: .nix-integration:
stage: test stage: test
script:
- nix-shell .integration.nix -A test --run "argotk.hs helloworld"
artifacts: artifacts:
paths: paths:
- _output/cmd_err.log - _output/cmd_err.log
...@@ -47,21 +40,44 @@ helloworld.integration.test: ...@@ -47,21 +40,44 @@ helloworld.integration.test:
tags: tags:
- integration - integration
perfwrapper.integration.test: containers.build:
stage: test extends: .nix-build
script: script:
- nix-shell .integration.nix -A test --run "argotk.hs perfwrapper" - CACHE=$(mktemp -d --suffix=nixcache /tmp/deletable-nix-cache-XXXX)
artifacts: - XDG_CACHE_HOME=$CACHE nix-build .nix -A containers
paths: - rm -rf $CACHE
- _output/cmd_err.log
- _output/cmd_out.log libnrm.build:
- _output/daemon_out.log extends: .nix-build
- _output/daemon_out.log script:
- _output/nrm.log - CACHE=$(mktemp -d --suffix=nixcache /tmp/deletable-nix-cache-XXXX)
- _output/.argo_nodeos_config_exit_message - XDG_CACHE_HOME=$CACHE nix-build .nix -A libnrm
expire_in: 1 week - rm -rf $CACHE
except:
- /^wip\/.*/ nrm.build:
- /^WIP\/.*/ extends: .nix-build
tags: script:
- integration - 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" {
libnrm-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