File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 21
21
22
22
export SOURCE_DATE_EPOCH=$( git log -1 --pretty=%ct)
23
23
24
+ CWD=$( pwd)
24
25
SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
25
26
cd " ${SCRIPT_DIR} /../.."
26
27
@@ -29,19 +30,24 @@ mkdir -p "${SCRIPT_DIR}/results"
29
30
30
31
git clean -xdf --exclude=' etc/bin'
31
32
killall -e java || true
33
+ cd grails-gradle
34
+ ./gradlew build --rerun-tasks -PskipTests --no-build-cache
35
+ cd ..
32
36
./gradlew build --rerun-tasks -PskipTests --no-build-cache
33
37
" ${SCRIPT_DIR} /generate-build-artifact-hashes.groovy" > " ${SCRIPT_DIR} /results/first.txt"
34
38
mkdir -p " ${SCRIPT_DIR} /results/first"
35
39
find . -path ./etc -prune -o -type f -path ' */build/libs/*.jar' -print0 | xargs -0 cp --parents -t " ${SCRIPT_DIR} /results/first/"
36
40
37
41
git clean -xdf --exclude=' etc/bin'
38
42
killall -e java || true
43
+ cd grails-gradle
44
+ ./gradlew build --rerun-tasks -PskipTests --no-build-cache
45
+ cd ..
39
46
./gradlew build --rerun-tasks -PskipTests --no-build-cache
40
47
" ${SCRIPT_DIR} /generate-build-artifact-hashes.groovy" > " ${SCRIPT_DIR} /results/second.txt"
41
48
mkdir -p " ${SCRIPT_DIR} /results/second"
42
49
find . -path ./etc -prune -o -type f -path ' */build/libs/*.jar' -print0 | xargs -0 cp --parents -t " ${SCRIPT_DIR} /results/second/"
43
50
44
- cd -
45
51
cd " ${SCRIPT_DIR} /results"
46
52
47
53
# diff -u first.txt second.txt
@@ -61,4 +67,4 @@ find second -type f -name '*.jar' -print | sed 's|^second/||' | grep -F -x -v -f
61
67
done
62
68
rm toPurge.txt
63
69
find . -type d -empty -delete
64
- cd -
70
+ cd " $CWD "
You can’t perform that action at this time.
0 commit comments