Created
August 12, 2022 08:55
-
-
Save djhojd/feed753180d4f09a2e587cd8c2710922 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Source: https://github.com/orgs/community/discussions/26291#discussioncomment-3251245 | |
launch_as() { | |
local cmd_name=$1 | |
shift | |
(time $@ || echo $cmd_name >> fail.txt) 2>&1 > $cmd_name.txt | |
} | |
time npm ci | |
launch_as lint npm run lint & | |
time npm run build | |
launch_as build1 npm run build:build1 & | |
launch_as build2 npm run build:build2 & | |
launch_as build3 npm run build:build3 & | |
wait | |
cat lint.txt | |
cat build1.txt | |
cat build2.txt | |
cat build3.txt | |
if [ -f fail.txt ]; then | |
cat fail.txt | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment