This repository has been archived by the owner on Aug 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
56 lines (56 loc) · 2.51 KB
/
.travis.yml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
sudo: required
language: android
android:
components:
- tools
- platform-tools
- tools
- build-tools-28.0.3
- android-28
- android-16
- extra-android-m2repository
- extra-google-m2repository
- extra-android-support
- extra-google-google_play_services
- sys-img-armeabi-v7a-android-16
jdk:
- oraclejdk8
before_install:
- mkdir "$ANDROID_HOME/licenses" || true
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
- chmod +x gradlew
- export JAVA8_HOME=/usr/lib/jvm/java-8-oracle
- export JAVA_HOME=$JAVA8_HOME
- chmod +x .travis/upload-apk.sh
- openssl aes-256-cbc -K $GOOGLE_SERVICES_KEY -iv $GOOGLE_SERVICES_IV -in ./.travis/google-services.json.enc -out ./app/google-services.json -d
install:
- chmod a+x .travis/install-git-crypt
- "./.travis/install-git-crypt"
- bundle install --without documentation
before_script:
- echo no | android create avd --force -n test -t android-16 --abi armeabi-v7a --skin 480x800
- emulator -avd test -no-window &
- android-wait-for-emulator
- sleep 10
- adb shell settings put global window_animation_scale 0
- adb shell settings put global transition_animation_scale 0
- adb shell settings put global animator_duration_scale 0
- adb shell input keyevent 82
after_success:
- "./.travis/upload-apk.sh"
script:
- ./gradlew --stacktrace :app:check detektCheck
- bundle exec danger --verbose
- "./gradlew clean assembleDebug testHpiDebugUnitTest testN21DebugUnitTest"
#- "./gradlew clean assembleDebug testDebugUnitTest connectedDebugAndroidTest"
deploy:
provider: releases
api_key:
secure: p9rg9bXlJuv+GcriFxTKIA6K0cKugPgC5Rb012M6l23gEUkMzutZWH+gDrCO0wk6NgPRP/Mg1U0K4NcySg+j/UWGNlplb9zs7Z1D2ehIhbjkrhmVRheAntsqdtxib6oSZUb8gcHj75c6Rbsfiq3dqhRN9p+q/FiSnkKHcFSYc7Pg4NjLuT/xVRzF3gNMFzSn2H/qP5kBB8UInXvMoMBsTczPo6gimNEGFCbv2Laym/wJoZn63qHFCsPs7shtS0x9xCfuYd8WL0uKxPIxxpDQkxcKHgRu4UHdsVK3HkmUqEYNa15tne8io717yG0fUSI3JiyTAsP0uqdBYOkDkOiui2BdOG3azh+40Pyk4GjNDFFOOcGNSao0kcQ7P94YjLUOmsSAxhp5j5u8OZr1VH2TRj0ms931C3YdkqZtlHengSI83g152HCQ6pIZj/02zR3eZ2ZoaHrveNwKp9Guuez2NAiGxqO7VqFPn7mQGk8KRwGBQhNEYWJIlWZHMtBFxPZullzYrHZ1KlRak9Dz4DOPqnxG0LMd/0bu96qGad1wv1RpoSj6ObCmkVJ7OGKam0jMc9icKf7Rv2yQYidnkl5KD7M/pXmpwbkd83DcqX+eMv1zyejlKbvbvLdwhTcvsHvxJu5ZVxfY0qvEBrW3/hvX+4A/4IcoIqxCiwjJAEc1ieo=
file: "$TRAVIS_BUILD_DIR/app/build/outputs/apk/app-debug.apk"
skip_cleanup: true
on:
tags: true
repo: schul-cloud/schulcloud-mobile-android
branch: master