1
0
Fork 0

Fine tuning ci

This commit is contained in:
Malte Brandy 2021-01-09 05:41:12 +01:00
parent 2cf3236e1a
commit c34ed5c1af
2 changed files with 4 additions and 1 deletions

View file

@ -39,6 +39,7 @@ in {
'';
};
after = pkgs.writeShellScript "after-all-jobs-script" ''
if [[ "$JOB$RESULT" != "nix-buildsuccess" ]]; then
LAMINAR_URL="https://ci.maralorn.de"
exec 100>${stateDir}/matrix-lock
${pkgs.utillinux}/bin/flock -w 10 100
@ -47,6 +48,7 @@ in {
$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)
EOF
fi
true
'';
contexts = {
@ -70,6 +72,7 @@ in {
DynamicUser = false;
User = "laminar";
StateDirectory = "laminar";
LimitNOFILE="10240";
};
after = [ "network.target" ];
preStart = let

View file

@ -8,7 +8,7 @@
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# 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.Async ( forConcurrently_