Fine tuning ci
This commit is contained in:
parent
2cf3236e1a
commit
c34ed5c1af
2 changed files with 4 additions and 1 deletions
|
@ -39,6 +39,7 @@ in {
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
after = pkgs.writeShellScript "after-all-jobs-script" ''
|
after = pkgs.writeShellScript "after-all-jobs-script" ''
|
||||||
|
if [[ "$JOB$RESULT" != "nix-buildsuccess" ]]; then
|
||||||
LAMINAR_URL="https://ci.maralorn.de"
|
LAMINAR_URL="https://ci.maralorn.de"
|
||||||
exec 100>${stateDir}/matrix-lock
|
exec 100>${stateDir}/matrix-lock
|
||||||
${pkgs.utillinux}/bin/flock -w 10 100
|
${pkgs.utillinux}/bin/flock -w 10 100
|
||||||
|
@ -47,6 +48,7 @@ in {
|
||||||
$JOB #$RUN: $RESULT https://ci.m-0.eu/jobs/$JOB/$RUN
|
$JOB #$RUN: $RESULT https://ci.m-0.eu/jobs/$JOB/$RUN
|
||||||
$(if [[ $RESULT == "failed" ]]; then echo -e 'maralorn'; ${pkgs.curl}/bin/curl -m5 -s $LAMINAR_URL/log/$JOB/$RUN | tail; fi)
|
$(if [[ $RESULT == "failed" ]]; then echo -e 'maralorn'; ${pkgs.curl}/bin/curl -m5 -s $LAMINAR_URL/log/$JOB/$RUN | tail; fi)
|
||||||
EOF
|
EOF
|
||||||
|
fi
|
||||||
true
|
true
|
||||||
'';
|
'';
|
||||||
contexts = {
|
contexts = {
|
||||||
|
@ -70,6 +72,7 @@ in {
|
||||||
DynamicUser = false;
|
DynamicUser = false;
|
||||||
User = "laminar";
|
User = "laminar";
|
||||||
StateDirectory = "laminar";
|
StateDirectory = "laminar";
|
||||||
|
LimitNOFILE="10240";
|
||||||
};
|
};
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
preStart = let
|
preStart = let
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
{-# LANGUAGE NoImplicitPrelude #-}
|
{-# LANGUAGE NoImplicitPrelude #-}
|
||||||
{-# LANGUAGE ScopedTypeVariables #-}
|
{-# LANGUAGE ScopedTypeVariables #-}
|
||||||
{-# LANGUAGE FlexibleContexts #-}
|
{-# LANGUAGE FlexibleContexts #-}
|
||||||
{-# OPTIONS_GHC -Wall -Werror -Wno-missing-signatures -Wno-type-defaults -Wno-orphans #-}
|
{-# OPTIONS_GHC -threaded -Wall -Werror -Wno-missing-signatures -Wno-type-defaults -Wno-orphans #-}
|
||||||
|
|
||||||
import Control.Concurrent ( threadDelay )
|
import Control.Concurrent ( threadDelay )
|
||||||
import Control.Concurrent.Async ( forConcurrently_
|
import Control.Concurrent.Async ( forConcurrently_
|
||||||
|
|
Loading…
Reference in a new issue