Commit e468f984 authored by Valentin Reis's avatar Valentin Reis

various pins, create ci directory.

parent 11980bfc
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
......@@ -2,13 +2,13 @@
"fetch": {
"args": {
"fetchSubmodules": false,
"rev": "09fe8a78baf6ba5eaef7d2804f7b653885d60fee",
"sha256": "1iqdbkg4dm36qskbyfi30w6rw70g2r6mi0qhzavc21338bf4j9hy",
"rev": "182582ddd924a0e06d906952e4632c25324a1120",
"sha256": "16166g7ndlhvy96wg3rr5cf9h7f8lxdpi2xyyrrsls701wiizd09",
"url": "https://xgitlab.cels.anl.gov/argo/applications/amg.git"
},
"fn": "fetchgit"
},
"rev": "refs/heads/master",
"rev": "refs/heads/progress-nrm",
"type": "fetchgit",
"url": "https://xgitlab.cels.anl.gov/argo/applications/amg.git"
}
\ No newline at end of file
......@@ -21,9 +21,12 @@
, lammps-src ? fetched lammps/pin.json
, #source overrides :tooling
argotk-src ? builtins.fetchGit {inherit (fetched argotk/pin.json) url rev;},
repoquality-src ? builtins.fetchGit {inherit (fetched repoquality/pin.json) url rev;},
argonix-src ? builtins.fetchGit {inherit (fetched argonix/pin.json) url rev;},
argotk-src ? builtins.fetchGit {inherit (fetched argotk/pin.json) url rev;}
, repoquality-src ? builtins.fetchGit {inherit (fetched repoquality/pin.json) url rev;}
, argonix-src ? builtins.fetchGit {inherit (fetched argonix/pin.json) url rev;}
, #used for hardware experiments.
sudoPath ? null
}:
let
callPackage = pkgs.lib.callPackageWith (pkgs // argopkgs);
......@@ -127,8 +130,23 @@ let
];
shellHook ="source ${argotk}/share/argotk.sh"; # bash completion
ARGOTK_SHARE = "${argotk}/share"; # for argotk to find its versioned data
#SUDO = builtins.toPath sudoPath;
};
testBuild = command: test.overrideAttrs (old:{
buildPhase = command;
installPhase = ''
mkdir $out
cp _output/* $out/
'';
});
testHello = testBuild ''
argotk TestHello
'';
testAll = testBuild ''
argotk tests
'';
expe = test.overrideAttrs (old:{
buildInputs = old.buildInputs ++
[amg lammps qmcpack stream openmc openmc-data];
......
......@@ -2,13 +2,13 @@
"fetch": {
"args": {
"fetchSubmodules": false,
"rev": "7069b52a44b799a1ce4a37d82ed5610bdcf403c1",
"sha256": "1qbfdr0dadgbyq5gcqmkrd9xcb93q4d0iij0n9axa04sv7rlyr3q",
"rev": "cc84bcdb8157411bb5ac8e654a5e44f76266fde9",
"sha256": "0a7s1n2swackb9w8h6irfsgbqvp6g3gig0c2bz1f7vhl8sfys6vv",
"url": "https://xgitlab.cels.anl.gov/argo/applications/lammps.git"
},
"fn": "fetchgit"
},
"rev": "refs/heads/master",
"rev": "refs/heads/progress-nrm",
"type": "fetchgit",
"url": "https://xgitlab.cels.anl.gov/argo/applications/lammps.git"
}
\ No newline at end of file
......@@ -2,13 +2,13 @@
"fetch": {
"args": {
"fetchSubmodules": false,
"rev": "455efffdbf6eacbc0b3b93ad61cfeb24490897d8",
"sha256": "1kd9p06c7336v1na4hhsfmffdv8qky7jqsi9fhwnnaafbsjvr7mj",
"rev": "f107d6917c0433d313816c8557a578a544ee2cf9",
"sha256": "17lkn7nh9rx0jn6glmj22jydn7wm817a1c096phsw9km01dldi3n",
"url": "https://xgitlab.cels.anl.gov/argo/applications/openmc.git"
},
"fn": "fetchgit"
},
"rev": "refs/heads/master",
"rev": "refs/heads/progress-nrm",
"type": "fetchgit",
"url": "https://xgitlab.cels.anl.gov/argo/applications/openmc.git"
}
\ No newline at end of file
......@@ -2,13 +2,13 @@
"fetch": {
"args": {
"fetchSubmodules": false,
"rev": "1009b07ad6fa873d71a0755747e6a7f610eb169b",
"sha256": "0fdlvmg0ri4mpwdxx4ky8mxc4rlkrq25smqld8b02lgjw1dvclki",
"rev": "5bf788f21bbbc11aaf11d0dd1b986fa78cf9f2ec",
"sha256": "0ij1xy0al02m5236srlfs078wlsiijp2kcmsgk4yvknavknbvn5n",
"url": "https://xgitlab.cels.anl.gov/argo/applications/qmcpack.git"
},
"fn": "fetchgit"
},
"rev": "refs/heads/master",
"rev": "refs/heads/progress-nrm",
"type": "fetchgit",
"url": "https://xgitlab.cels.anl.gov/argo/applications/qmcpack.git"
}
\ No newline at end of file
......@@ -2,13 +2,13 @@
"fetch": {
"args": {
"fetchSubmodules": false,
"rev": "32e57a2571890b7a2b6628b5d2d4b7b3fae947b8",
"sha256": "00r88rywxz34chl6whhpjzfbkjnb509qdjzd7bv34wi7bwvw6hwi",
"rev": "970b17136d7ea3119f9f46ef5f4af853b03281f6",
"sha256": "030i5nfw3kh9w02m8xhkqjmsp48z8lw4rbr0a69nidb0sf0cy33v",
"url": "https://xgitlab.cels.anl.gov/argo/applications/stream.git"
},
"fn": "fetchgit"
},
"rev": "refs/heads/master",
"rev": "refs/heads/progress-nrm",
"type": "fetchgit",
"url": "https://xgitlab.cels.anl.gov/argo/applications/stream.git"
}
\ No newline at end of file
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