forked from Rajawali/Rajawali
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (71 loc) · 2.77 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
language: android
sudo: false
before_install:
- openssl aes-256-cbc -K $encrypted_64bf13095d6f_key -iv $encrypted_64bf13095d6f_iv
-in rajawali_secret.gpg.enc -out rajawali_secret.gpg -d
- chmod +x gradlew
jdk:
- oraclejdk8
env:
global:
- ANDROID_API_LEVEL=23
- EMULATOR_API_LEVEL=21
- ANDROID_BUILD_TOOLS_VERSION=23.0.3
- ANDROID_ABI=armeabi-v7a
- ADB_INSTALL_TIMEOUT=20
android:
components:
- platform-tools
- tools
- ndk
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
- android-$ANDROID_API_LEVEL
- android-$EMULATOR_API_LEVEL
- extra-android-support
- extra-android-m2repository
- extra-google-m2repository
- sys-img-$ANDROID_ABI-android-$ANDROID_API_LEVEL
- sys-img-$ANDROID_ABI-android-$EMULATOR_API_LEVEL
before_script:
- echo no | android create avd --force -n test -t android-$EMULATOR_API_LEVEL --abi
$ANDROID_ABI
- emulator -avd test -no-skin -no-audio -no-window &
- android-wait-for-emulator
script:
- echo "Travis branch is $TRAVIS_BRANCH"
- echo "Travis branch is in pull request? $TRAVIS_PULL_REQUEST"
- echo "Travis tag $TRAVIS_TAG"
- echo -e "" >> "gradle.properties"
- echo -e "signing.keyId=${SIGNING_KEY}" >> "gradle.properties"
- echo -e "signing.password=${SIGNING_KEY_PASSWORD}" >> "gradle.properties"
- echo -e "signing.secretKeyRingFile=../rajawali_secret.gpg" >> "gradle.properties"
- echo -e $(echo "ndk.dir=")$(pwd)$(echo "/android-ndk-r10d") >> "local.properties"
- cat local.properties
- "./gradlew clean --stacktrace --continue"
- "./gradlew :rajawali:jacocoTestReport :rajawali:assembleAndroidTest --stacktrace
--continue"
- adb shell setprop dalvik.vm.dexopt-flags v=n,o=v
- "./gradlew :rajawali:connectedCheck --stacktrace --continue"
- "./gradlew :vuforia:check --stacktrace --continue"
- "./gradlew :vr:check --stacktrace --continue"
- "./gradlew :wear:check --stacktrace --continue"
- "./gradlew :wear-example:check --stacktrace --continue"
- "./gradlew :examples:check --stacktrace --continue"
- if $TRAVIS_PULL_REQUEST; then "Skipping uploadArchives on Pull Request"; else ./gradlew
:rajawali:uploadArchives --stacktrace --continue; ./gradlew :vuforia:uploadArchives
--stacktrace --continue; ./gradlew :vr:uploadArchives --stacktrace --continue; ./gradlew
:wear:uploadArchives --stacktrace --continue; fi
install:
- wget http://dl.google.com/android/ndk/android-ndk-r10d-linux-x86_64.bin -O ndk.bin
- chmod a+x ndk.bin
- "./ndk.bin 1> /dev/null 2>&1"
- chmod a+x ./android-ndk-r10d/ndk-build
notifications:
email:
- info@rozengain.com
- rajawali.framework@gmail.com
- Jared.Woolston@gmail.com
slack:
secure: F5PgdetFfZrWrGlSg1jRQrYHH0miPpSqM969mzwh042OLybpAND4o7ouNAHYbWtVMVJ1KIK/bPKCdvW4Iy6pJpyntX+rQBYN6Tfs4bN/ivOrePBBDPLfr/uPGIY/EPAw4U7qeprRANAPT3IutCqx9FM/IAfNtzOWKcPOTRXNeoY=
after_success:
- bash <(curl -s https://codecov.io/bash)