forked from planetdecred/dcrandroid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (30 loc) · 1.34 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
language: android
android:
components:
- tools
- platform-tools
- build-tools-28.0.3
- android-28
- extra-android-m2repository
- extra-google-m2repository
before_install:
- wget -O $ANDROID_HOME/android-ndk-r19b-linux-x86_64.zip https://dl.google.com/android/repository/android-ndk-r19b-linux-x86_64.zip
- unzip -qq $ANDROID_HOME/android-ndk-r19b-linux-x86_64.zip -d $ANDROID_HOME/android-ndk-r19b-linux-x86_64
- mv $ANDROID_HOME/android-ndk-r19b-linux-x86_64/android-ndk-r19b $ANDROID_HOME/ndk-bundle
- export ANDROID_NDK_HOME=$ANDROID_HOME/ndk-bundle
- gimme --force 1.12.1
- echo $GOROOT && rm $GOROOT -R
- export GOROOT='/home/travis/.gimme/versions/go1.12.1.linux.amd64' && echo $GOROOT
- export PATH=$PATH:$GOROOT/bin && sudo ln -s $GOROOT/bin/go /usr/bin/go
- mkdir -p go/bin && export GOPATH=$(pwd)/go && export GOBIN=$GOPATH/bin
- export PATH=$PATH:$GOBIN
- go get -u golang.org/x/mobile/cmd/gomobile
- echo $ANDROID_NDK_HOME
- gomobile init
- mkdir -p $GOPATH/src/github.com/raedahgroup && cd $GOPATH/src/github.com/raedahgroup
- git clone https://github.com/raedahgroup/dcrlibwallet && cd dcrlibwallet
- export GO111MODULE=on
- go mod download && go mod vendor
- export GO111MODULE=off
- gomobile bind -target=android/386
- cp dcrlibwallet.aar $GOPATH/../app/libs/dcrlibwallet.aar && cd $GOPATH/../