chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / ju / just / setup-hook.sh
blobd171ac7610bbc3c97185d9e9823200e89a7ae0d7
1 # shellcheck shell=bash
3 justBuildPhase() {
4 runHook preBuild
6 local flagsArray=()
7 concatTo flagsArray justFlags justFlagsArray
9 echoCmd 'build flags' "${flagsArray[@]}"
10 just "${flagsArray[@]}"
12 runHook postBuild
15 justCheckPhase() {
16 runHook preCheck
18 if [ -z "${checkTarget:-}" ]; then
19 if just -n test >/dev/null 2>&1; then
20 checkTarget="test"
24 if [ -z "${checkTarget:-}" ]; then
25 echo "no test target found in just, doing nothing"
26 else
27 local flagsArray=()
28 concatTo flagsArray justFlags justFlagsArray checkTarget
30 echoCmd 'check flags' "${flagsArray[@]}"
31 just "${flagsArray[@]}"
34 runHook postCheck
37 justInstallPhase() {
38 runHook preInstall
40 local flagsArray=()
41 concatTo flagsArray justFlags justFlagsArray installTargets=install
43 echoCmd 'install flags' "${flagsArray[@]}"
44 just "${flagsArray[@]}"
46 runHook postInstall
49 if [ -z "${dontUseJustBuild-}" ] && [ -z "${buildPhase-}" ]; then
50 buildPhase=justBuildPhase
53 if [ -z "${dontUseJustCheck-}" ] && [ -z "${checkPhase-}" ]; then
54 checkPhase=justCheckPhase
57 if [ -z "${dontUseJustInstall-}" ] && [ -z "${installPhase-}" ]; then
58 installPhase=justInstallPhase