forked from gearvrf/GearVRf-Demos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (44 loc) · 1.85 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
language: android
jdk: oraclejdk8
sudo: required # false for Container-Based Infrastructure, required for Sudo-enabled Infrastructure
dist: trusty
env:
global:
- PROJECT_NAME=GearVRF-Demos
- PROJECT_DIR=${TRAVIS_BUILD_DIR} # Project direct
before_install:
- echo yes | sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout;1.0.2"
- echo yes | sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.2"
# newest Android NDK
- wget https://dl.google.com/android/repository/android-ndk-r13b-linux-x86_64.zip -O ndk.zip
- unzip ndk.zip > /dev/null 2>&1
- export ANDROID_NDK_HOME=`pwd`/android-ndk-r13b
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools:${ANDROID_NDK_HOME}
android:
components:
- tools # to get the new `repository-11.xml`
- tools # see https://github.com/travis-ci/travis-ci/issues/6040#issuecomment-219367943)
- platform-tools
- build-tools-25.0.3
- android-25
licenses:
- android-sdk-preview-license-.+
- android-sdk-license-.+
- google-gdk-license-.+
install:
- git clone https://gearvrf:82c3775188fc23e31abd0d3e8db8fd499f17af34@github.com/Samsung/GearVRf.git $PROJECT_DIR/GearVRf
- cd $PROJECT_DIR/GearVRf/GVRf/Framework
- echo "only_daydream=true" >> gradle.properties
- cd $PROJECT_DIR/GearVRf/GVRf/Framework
- ./gradlew assembleDebug
- cd $PROJECT_DIR/GearVRf/GVRf/Extensions
- echo "only_daydream=true" >> gradle.properties
- echo "useLocalDependencies=true" >> gradle.properties
- cd $PROJECT_DIR/GearVRf/GVRf/Extensions
- ./gradlew assembleDebug
before_script:
- cd ${PROJECT_DIR}/
- echo "only_daydream=true" >> gradle.properties
- echo "useLocalDependencies=true" >> gradle.properties
script:
- cd ${PROJECT_DIR}/ && ./gradlew assembleDebug