-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdateBaseline
executable file
·34 lines (26 loc) · 1015 Bytes
/
updateBaseline
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
32
33
34
#!/bin/sh
# SC2086: Double quote to prevent globbing and word splitting.
# shellcheck disable=SC2086
./gradlew --stop --info
COMMON_TASKS="apiDump dependencyGuardBaseline detektBaselineMerge updateLintBaseline"
COMMON_TASKS="${COMMON_TASKS} --continue -Dlint.baselines.continue=true"
export GRADLE_OPTS="${GRADLE_OPTS} -Dorg.gradle.logging.stacktrace=all"
export GRADLE_OPTS="${GRADLE_OPTS} -Dorg.gradle.caching=false -Dkotlin.incremental=false"
export CI=true
export RELEASE=true
EXIT_CODE=0
echo ""
echo "===================================="
echo "======== RUN BASELINE TASKS ========"
echo "===================================="
# Force re-run for all the tasks
# -U: Refresh dependencies
#COMMON_TASKS="${COMMON_TASKS} --rerun-tasks -U"
./gradlew kotlinUpgradeYarnLock ${COMMON_TASKS} || EXIT_CODE=101
if [ ${EXIT_CODE} -ne 0 ]; then
echo ""
echo "================================"
echo "== BASELINE TASKS FAILED: ${EXIT_CODE} =="
echo "================================"
exit ${EXIT_CODE}
fi