mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-11 19:24:06 +02:00
Delete .travis.yml
This commit is contained in:
74
.travis.yml
74
.travis.yml
@@ -1,74 +0,0 @@
|
|||||||
language: android
|
|
||||||
jdk: oraclejdk8
|
|
||||||
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
- OWNER=${TRAVIS_REPO_SLUG%/*}
|
|
||||||
- DEV=${OWNER/oliexdev/dev}
|
|
||||||
- BRANCH=${TRAVIS_BRANCH/master/}
|
|
||||||
- TAG=${DEV}${BRANCH:+_}${BRANCH}
|
|
||||||
|
|
||||||
android:
|
|
||||||
components:
|
|
||||||
- platform-tools
|
|
||||||
- tools
|
|
||||||
- build-tools-28.0.3
|
|
||||||
- android-29
|
|
||||||
- extra-android-m2repository
|
|
||||||
|
|
||||||
branches:
|
|
||||||
except:
|
|
||||||
- /^travis-.*-build$/
|
|
||||||
|
|
||||||
before_install:
|
|
||||||
- yes | sdkmanager "platforms;android-29"
|
|
||||||
- yes | sdkmanager "platform-tools"
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- sed -i -r
|
|
||||||
-e 's/applicationId "[^"]+/\0.'${DEV}'/'
|
|
||||||
-e 's/(versionCode ).*/\1'$(date +%s)'/'
|
|
||||||
-e 's/versionName "[^"]+/\0-'${DEV}'_'${TRAVIS_COMMIT:0:8}_$(date +%F)'/'
|
|
||||||
android_app/app/build.gradle
|
|
||||||
- sed -i -r
|
|
||||||
-e 's/(<string name="app_name"[^>]*>[^<]+)/\1 ('${TAG}')/'
|
|
||||||
android_app/app/src/main/res/values/strings.xml
|
|
||||||
# Create keystore by running:
|
|
||||||
# keytool -genkey -v -keystore debug.keystore -storepass android \
|
|
||||||
# -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 \
|
|
||||||
# -validity 10000 -dname "CN=Android Debug,O=Android,C=US"
|
|
||||||
#
|
|
||||||
# Then base64 encode it with:
|
|
||||||
# base64 -w0 debug.keystore
|
|
||||||
#
|
|
||||||
# Then add this to Travis environment variables as DEBUG_KEYSTORE (make sure
|
|
||||||
# not to enable displaying value in build logs)"
|
|
||||||
- test -n "$DEBUG_KEYSTORE"
|
|
||||||
&& echo "$DEBUG_KEYSTORE" | base64 -d > $HOME/.android/debug.keystore
|
|
||||||
|| true
|
|
||||||
|
|
||||||
script: cd android_app && ./gradlew testDebug assembleAndroidTest assembleDebug
|
|
||||||
|
|
||||||
before_deploy:
|
|
||||||
- ln -s app/build/outputs/apk/debug/openScale-debug.apk openScale-${TAG}-build.apk
|
|
||||||
- git tag -f travis-${TAG}-build
|
|
||||||
- git remote add gh
|
|
||||||
https://${OWNER}:${GITHUB_API_KEY}@github.com/${TRAVIS_REPO_SLUG}.git
|
|
||||||
- git push gh :travis-${TAG}-build || true
|
|
||||||
- git push -f gh travis-${TAG}-build
|
|
||||||
- git remote remove gh
|
|
||||||
|
|
||||||
deploy:
|
|
||||||
provider: releases
|
|
||||||
api-key: $GITHUB_API_KEY
|
|
||||||
file: openScale-${TAG}-build.apk
|
|
||||||
skip_cleanup: true
|
|
||||||
name: openScale development build (${TRAVIS_BRANCH})
|
|
||||||
body: Automatic openScale development build of $TRAVIS_BRANCH branch
|
|
||||||
(commit $TRAVIS_COMMIT) built by Travis CI on $(date +'%F %T %Z').
|
|
||||||
prerelease: true
|
|
||||||
overwrite: true
|
|
||||||
target_commitish: $TRAVIS_COMMIT
|
|
||||||
on:
|
|
||||||
all_branches: true
|
|
||||||
tags: false
|
|
Reference in New Issue
Block a user