diff options
author | Christian Schneppe <christian@pix-art.de> | 2019-04-28 14:47:27 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2019-04-28 14:47:27 +0200 |
commit | 0f52124ef5d008c75e4908e67bf9256e160e6967 (patch) | |
tree | a69199cf90593206fc508602239631d6862907d1 /.circleci/config.yml | |
parent | b563d5a8118006f967b153a0aafca81b54b88f2f (diff) | |
parent | 5edbb2bf71e4f15905a1593db9129cfbd82220c7 (diff) |
Merge branch 'master' of https://github.com/kriztan/Pix-Art-Messenger
Diffstat (limited to '.circleci/config.yml')
-rw-r--r-- | .circleci/config.yml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index 32cef461d..4543b5a41 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -27,7 +27,16 @@ jobs: key: android - run: export GRADLE_USER_HOME=$PWD/.gradle - run: echo y | sdkmanager "platforms;android-$(sed -n 's,.*compileSdkVersion\s*\([0-9][0-9]*\).*,\1,p' build.gradle)" > /dev/null + # workaround for fdroid nightly circleci bug + - run: sed -i "s/os.getenv('CIRCLE_REPOSITORY_URL')/\"https:\/\/github.com\/genofire\/Pix-Art-Messenger\"/" /usr/lib/python3/dist-packages/fdroidserver/nightly.py + # generate version number + - run: sed -i "s/^\(\s*versionCode\s*\).*$/\1$(git rev-list --first-parent --count HEAD)/" build.gradle + - run: sed -i "0,/versionName/s/^\(\s*versionName\).*/\1 \"$(printf '%s-%05d' $(git describe --tag --abbrev=0) $(git rev-list --first-parent --count HEAD))\"/" build.gradle + - run: cat -n build.gradle + # build - run: ./gradlew assembleStandard + # publish on nightly fdroid repo + - run: fdroid nightly - save_cache: paths: - ~/.android |