-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
43 lines (41 loc) · 1.31 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
language: go
go_import_path: github.com/coronanet/go-coronanet
sudo: false
jobs:
include:
# Builder to check if the repo can be compiled
- os: linux
dist: xenial
go: 1.14.x
script:
- go install -v ./...
- go test ./...
# Builder to check if the repo can be bound
- os: linux
dist: xenial
addons:
apt:
packages:
- oracle-java8-installer
- oracle-java8-set-default
language: android
android:
components:
- platform-tools
- tools
- android-15
- android-19
- android-24
before_install:
- curl https://dl.google.com/go/go1.14.linux-amd64.tar.gz | tar -xz
- export PATH=`pwd`/go/bin:$PATH
- export GOBIN=`pwd`/go/bin
- export GOROOT=`pwd`/go
- export GOPATH=$HOME/go
script:
- curl https://dl.google.com/android/repository/android-ndk-r21-linux-x86_64.zip -o android-ndk-r21.zip
- unzip -q android-ndk-r21.zip && rm android-ndk-r21.zip
- mv android-ndk-r21 $ANDROID_HOME/ndk-bundle
- go get -u golang.org/x/mobile/cmd/gomobile
- go get -u golang.org/x/mobile/cmd/gobind
- gomobile bind --target android --javapkg xyz.coronanet -v github.com/coronanet/go-coronanet/bridge