Skip to content

Commit 0c13569

Browse files
committed
travis
1 parent 8cc721a commit 0c13569

5 files changed

Lines changed: 55 additions & 1 deletion

File tree

.travis.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
language: android
2+
3+
jdk:
4+
- oraclejdk8
5+
6+
android:
7+
components:
8+
- tools
9+
- platform-tools
10+
- build-tools-27.0.2
11+
- android-22
12+
- android-27
13+
14+
# Additional components
15+
- extra-google-google_play_services
16+
- extra-google-m2repository
17+
- extra-android-m2repository
18+
- addon-google_apis-google-27
19+
20+
# Specify at least one system image,
21+
# if you need to run emulator(s) during your tests
22+
- sys-img-armeabi-v7a-android-22
23+
24+
before_install:
25+
- sed 's/PrivateConstantsSample/PrivateConstants/' app/src/main/java/com/github/fielddb/lessons/PrivateConstantsSample.java > app/src/main/java/com/github/fielddb/lessons/PrivateConstants.java
26+
# workaround for android-27 sha changed in dec 2017x
27+
- yes | sdkmanager "platforms;android-26"
28+
- yes | sdkmanager "platforms;android-27"
29+
- android list target
30+
# - echo "TRAVIS is $TRAVIS"
31+
# - echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a
32+
# - emulator -writable-system -avd test -no-audio -no-window -use-system-libs -gpu host &
33+
# - android-wait-for-emulator
34+
35+
36+
script:
37+
- ./gradlew build connectedCheck --stacktrace --debug

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ dependencies {
5252
// implementation project(':pocketsphinx-android')
5353
// implementation 'cesine.educmupocketsphinx:pocketsphinx-android:v0.9-rc1-debug@aar'
5454
// implementation project(':fielddb')
55-
// implementation 'com.github.fielddb.fielddb:fielddb:3.17.0@aar'
55+
compile 'com.github.fielddb:fielddb:3.17.0-rc3'
5656
}
5757

1.19 MB
Binary file not shown.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package com.github.fielddb.lessons;
2+
3+
/**
4+
* http://developer.android.com/tools/devices/emulator.html#networkaddresses
5+
* 10.0.2.2 emulator connection to localhost
6+
*/
7+
public class PrivateConstantsSample extends com.github.fielddb.PrivateConstantsSample {
8+
public static String APP_TYPE = "speechrecognition";
9+
10+
public static String DATA_IS_ABOUT_LANGUAGE_ISO = "ka";
11+
public static String DATA_IS_ABOUT_LANGUAGE_NAME_ASCII = "kartuli";
12+
public static String DATA_IS_ABOUT_LANGUAGE_NAME = "ქართული";
13+
public static String USER_FRIENDLY_DATA_NAME = "ფრაზა";
14+
}

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ allprojects {
2121
maven {
2222
url "https://dl.bintray.com/fielddb/maven"
2323
}
24+
maven {
25+
url "https://dl.bintray.com/cesine/educmupocketsphinx"
26+
}
2427
// maven {
2528
// url "https://dl.bintray.com"
2629
// }

0 commit comments

Comments
 (0)