-
Notifications
You must be signed in to change notification settings - Fork 0
/
step.sh
30 lines (22 loc) · 665 Bytes
/
step.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
#!/bin/bash
if [ -z "${gradlew_file_path}" ] ; then
printf "\e[31mgradlew_file_path was not defined\e[0m\n"
exit 1
fi
if [ ! -f "${gradlew_file_path}" ] ; then
printf "\e[31mDidn't find a gradlew file in the root directory\e[0m\n"
exit 1
fi
if [ -z "${coveralls_task}" ] ; then
printf "\e[31mcoveralls_task was not defined\e[0m\n"
exit 1
fi
if [ -z "${coveralls_repo_token}" ] ; then
printf "\e[31mcoveralls_repo_token was not defined.\e[0m\n"
exit 1
fi
export COVERALLS_REPO_TOKEN=${coveralls_repo_token}
echo "$" ${gradlew_file_path} ${coveralls_task}
${gradlew_file_path} ${coveralls_task}
return_code=$?
exit ${return_code}