Skip to content

Commit d419cb2

Browse files
committed
Testing Google play automated release #DEPLOY
1 parent 4f2eab0 commit d419cb2

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.circleci/config.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,13 @@ jobs:
3131
name: Run Tests
3232
command: ./gradlew test
3333

34-
- store_artifacts:
34+
- store_test_results:
3535
path: app/build/reports
3636
destination: reports
3737

3838
- store_test_results:
39-
path: app/build/test-results
39+
path: library/build/reports
40+
destination: reports
4041

4142
# Compile release apks
4243
- run:

scripts/config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ GITHUB_RELEASE_URL="https://api.github.com/repos/stealthcopter/AndroidNetworkToo
1515
GITHUB_RELEASE_TOKEN=$ANDROID_NETWORK_TOOLS_GITHUB_RELEASE_TOKEN
1616
GITHUB_RELEASE_FILE_PATH="app/build/outputs/apk/app-regular-release.apk"
1717
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/"
1919

2020
# Git info
2121
GIT_TAG=`git name-rev --name-only --tags HEAD`

scripts/github-release.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ function create_github_release {
1919

2020
id=`echo $response | python -c "import json,sys;obj=json.load(sys.stdin);print obj['id'];"`
2121

22+
if [ -z "$id" ]; then
23+
return 1
24+
fi
25+
2226
echo "Found id $id"
2327

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
2529

2630
return
2731
}

0 commit comments

Comments
 (0)