forked from planetdecred/dcrandroid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (40 loc) · 1.53 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
language: android
android:
components:
- tools
- platform-tools
- build-tools-26.0.2
- android-27
- extra-android-m2repository
- extra-google-m2repository
before_install:
- yes | sdkmanager "platforms;android-27"
- echo y | sdkmanager 'ndk-bundle'
- export ANDROID_NDK_HOME=$ANDROID_HOME/ndk-bundle
- curl -sL -o ~/bin/gimme https://raw.githubusercontent.com/travis-ci/gimme/master/gimme
- chmod +x ~/bin/gimme
- gimme -h
- gimme --force 1.10
- echo $GOROOT
- rm $GOROOT -R
- export GOROOT='/home/travis/.gimme/versions/go1.10.linux.amd64';
- echo $GOROOT
- export PATH=$PATH:$GOROOT/bin
- sudo ln -s $GOROOT/bin/go /usr/bin/go
- echo $PATH
- go version
- cd ../ && mkdir go
- cd go
- mkdir bin
- export GOPATH=$(pwd) && echo $GOPATH
- export PATH=$PATH:$GOPATH/bin
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sudo sh
- go get -u golang.org/x/mobile/cmd/gomobile && go get -u golang.org/x/mobile/cmd/gobind
- chmod +x $GOPATH/bin/gomobile && chmod +x $GOPATH/bin/gobind
- sudo ln -s $GOPATH/bin/gobind /usr/bin/gobind && sudo ln -s $GOPATH/bin/gomobile /usr/bin/gomobile && sudo ln -s $GOPATH/bin/dep /usr/bin/dep
- gomobile init -ndk $ANDROID_NDK_HOME
- mkdir -p src/github.com/raedahgroup && cd src/github.com/raedahgroup
- git clone https://github.com/raedahgroup/mobilewallet && cd mobilewallet
- dep ensure -v
- gomobile bind -target=android/386
- cp mobilewallet.aar $GOPATH/../dcrandroid/app/libs/mobilewallet.aar && cd $GOPATH/../dcrandroid