-
Notifications
You must be signed in to change notification settings - Fork 145
/
setupWorkspace.sh
executable file
·31 lines (25 loc) · 1 KB
/
setupWorkspace.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
# Used to setup workspace and fix building on unix / Git BASH
#
# Usage: "./setupWorkspace.sh"
SECONDS=0
# To allow use from outside the lambda directory
cd "$(dirname "$0")" || exit
echo "Running gradlew classes without daemon..."
./gradlew --no-daemon classes || {
echo "ERROR: Running gradlew build failed! Run './gradlew --no-daemon classes' manually"
exit 1
}
# Generates InteliJ runs so the user doesn't have to do that manually
echo "Generating InteliJ runs"
./gradlew --no-daemon genIntellijRuns || {
echo "ERROR: Failure generating InteliJ runs! try generating them manually from within IntelliJ"
exit 1
}
cat logo_ascii.txt 2>/dev/null
echo "=========================================================================="
echo ""
# shellcheck disable=SC2039
echo "Build succeeded in $((SECONDS / 60)) minutes and $((SECONDS % 60)) seconds! All checks passed, you can build normally now! Welcome to Lambda."
echo ""
echo "=========================================================================="