forked from liferay/liferay-blade-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-tests.sh
executable file
·37 lines (23 loc) · 1.13 KB
/
run-tests.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
32
33
34
35
36
37
#!/bin/bash
function archiveTests {
find . -name index.html | grep build/reports/tests | sed 's/\/test\/index\.html//' | xargs zip -o tests.zip -r
find . -name "create*" | grep cli/build | xargs zip -ou tests.zip -r
}
function checkError {
local retcode=$?
if [ $retcode -ne 0 ]; then
archiveTests
exit $retcode
fi
}
# Switch gradle wrapper distributionUrl to use -bin instead of -all. See BLADE-594 for more details
sed "s/all/bin/" gradle/wrapper/gradle-wrapper.properties > gradle-wrapper.properties.edited
mv gradle-wrapper.properties.edited gradle/wrapper/gradle-wrapper.properties
./gradlew --no-daemon :extensions:maven-profile:publishToMavenLocal -x :cli:bladeExtensionsVersions -x :cli:processResources --scan
checkError
./gradlew --no-daemon :extensions:project-templates-js-theme:publishToMavenLocal -x :cli:bladeExtensionsVersions -x :cli:processResources --scan
checkError
./gradlew --no-daemon :extensions:project-templates-js-widget:publishToMavenLocal -x :cli:bladeExtensionsVersions -x :cli:processResources --scan
checkError
./gradlew --no-daemon -PmavenLocal --continue clean check smokeTests --scan
checkError