This repository has been archived by the owner on Feb 15, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
64 lines (53 loc) · 1.52 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
sudo: false
language: android
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.gradle/native
- $HOME/.gradle/daemon
- $HOME/.android/build-cache
- node_modules
env:
global:
- ANDROID_API_LEVEL=26
- EMULATOR_API_LEVEL=16
android:
components:
- tools
- platform-tools
- build-tools-26.0.2
- android-$ANDROID_API_LEVEL
- android-$EMULATOR_API_LEVEL
- sys-img-armeabi-v7a-android-$ANDROID_API_LEVEL
- sys-img-armeabi-v7a-android-$EMULATOR_API_LEVEL
before_install:
# install node (npm), truffle, testrpc
- rm -rf ~/.nvm
- git clone https://github.com/creationix/nvm.git ~/.nvm
- source ~/.nvm/nvm.sh
- nvm install 8.9.1
- node --version
- cd kin-sdk-core/truffle && npm install && cd ../../
before_script:
# setup android emulator
- echo no | android create avd --force -n test -t android-$EMULATOR_API_LEVEL --abi armeabi-v7a
- emulator -avd test -no-skin -no-audio -no-window -camera-back none -camera-front none -verbose -memory 2048 &
- android-wait-for-emulator
- adb shell input keyevent 82 &
script:
- make test
after_script:
# print truffle and testrpc logs
- cat kin-sdk-core/truffle/truffle.log
- cat kin-sdk-core/truffle/testrpc.log
deploy:
skip_cleanup: true
provider: script
script:
secure: ./testfairy-uploader.sh ./sample/build/outputs/apk/debug/sample-debug.apk
on:
branch: dev