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

[ci] Pinning integration tests

This commit pins the integration tests. This is done in the .integration.nix
file, which in turns uses the derivations from the 'argotest'
repository. These pin argopkgs - which itself pins nixpkgs, so
everything should be completely reproducible.

The integration target provisions the dependencies using nix-shell and
runs the basic 'hello world' container test.
parent 9aeabeee
Pipeline #4688 passed with stages
in 2 minutes and 10 seconds
...@@ -47,5 +47,5 @@ venv/ ...@@ -47,5 +47,5 @@ venv/
*.nav *.nav
*.out *.out
# frequent clones # integration tests
argotest _output
...@@ -23,21 +23,19 @@ flake8: ...@@ -23,21 +23,19 @@ flake8:
- /^wip\/.*/ - /^wip\/.*/
- /^WIP\/.*/ - /^WIP\/.*/
integration.test: integration.test:
stage: test stage: test
script: script:
- git clone https://xgitlab.cels.anl.gov/argo/argotest.git - nix-shell .integration.nix --run "argotk.hs helloworld"
- cd argotest
- nix-shell -A test --run "./argotk.hs helloworld" --arg nrm-src ../.
artifacts: artifacts:
paths: paths:
- argotest/cmd_err.log - _output/cmd_err.log
- argotest/cmd_out.log - _output/cmd_out.log
- argotest/daemon_out.log - _output/daemon_out.log
- argotest/daemon_out.log - _output/daemon_out.log
- argotest/nrm.log - _output/nrm.log
- argotest/time.log - _output/time.log
- _output/.argo_nodeos_config_exit_message
expire_in: 1 week expire_in: 1 week
except: except:
- /^wip\/.*/ - /^wip\/.*/
......
{ argotest ? (builtins.fetchGit {
url = https://xgitlab.cels.anl.gov/argo/argotest.git;
ref="refactor-argotk";
rev="a20358e5b72f267eb8e2a9152e62c9ebbb3b2d4a"; })
}:
(import argotest {
nrm-src = ./.;
}).test
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