File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,13 @@ jobs:
31
31
name : Run Tests
32
32
command : ./gradlew test
33
33
34
- - store_artifacts :
34
+ - store_test_results :
35
35
path : app/build/reports
36
36
destination : reports
37
37
38
38
- store_test_results :
39
- path : app/build/test-results
39
+ path : library/build/reports
40
+ destination : reports
40
41
41
42
# Compile release apks
42
43
- run :
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ GITHUB_RELEASE_URL="https://api.github.com/repos/stealthcopter/AndroidNetworkToo
15
15
GITHUB_RELEASE_TOKEN=$ANDROID_NETWORK_TOOLS_GITHUB_RELEASE_TOKEN
16
16
GITHUB_RELEASE_FILE_PATH=" app/build/outputs/apk/app-regular-release.apk"
17
17
GITHUB_RELASE_FILENAME=" AndroidNetworkTools.apk"
18
- $ GITHUB_UPLOAD_URL =" https://uploads.github.com/repos/stealthcopter/AndroidNetworkTools/releases/"
18
+ GITHUB_UPLOAD_URL=" https://uploads.github.com/repos/stealthcopter/AndroidNetworkTools/releases/"
19
19
20
20
# Git info
21
21
GIT_TAG=` git name-rev --name-only --tags HEAD`
Original file line number Diff line number Diff line change @@ -19,9 +19,13 @@ function create_github_release {
19
19
20
20
id=` echo $response | python -c " import json,sys;obj=json.load(sys.stdin);print obj['id'];" `
21
21
22
+ if [ -z " $id " ]; then
23
+ return 1
24
+ fi
25
+
22
26
echo " Found id $id "
23
27
24
- curl -H " Content-Type:application/zip" -H " Authorization: token $GITHUB_RELEASE_TOKEN " --data-binary @" $GITHUB_RELEASE_FILE_PATH " $GITHUB_UPLOAD_URL$id /assets? name=$GITHUB_RELASE_FILENAME
28
+ curl -v - H " Content-Type:application/zip" -H " Authorization: token $GITHUB_RELEASE_TOKEN " --data-binary @" $GITHUB_RELEASE_FILE_PATH " $GITHUB_UPLOAD_URL$id /assets? name=$GITHUB_RELASE_FILENAME
25
29
26
30
return
27
31
}
You can’t perform that action at this time.
0 commit comments