-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.before_install.sh
executable file
·34 lines (32 loc) · 1.21 KB
/
.before_install.sh
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
#!/usr/bin/env bash
go get golang.org/x/tools/cmd/cover
go get github.com/mdempsky/unconvert
go get github.com/mattn/goveralls
if [ "$TEST_TYPE" == "js_test" ] || [ "$TEST_TYPE" == "js_build" ]
then
go get github.com/gopherjs/gopherjs
go get github.com/gopherjs/gopherwasm/js
gopherjs get "honnef.co/go/js/dom"
gopherjs get "honnef.co/go/js/xhr"
elif [ "$TEST_TYPE" == "android_test" ] || [ "$TEST_TYPE" == "android_build" ]
then
git clone https://github.com/golang/mobile.git $GOPATH/src/golang.org/x/mobile
cd $GOPATH/src/golang.org/x/mobile/cmd/gomobile
git reset --hard 598bfe4b20d39a660581f014b68e60c5ad425336
go install
go get github.com/hajimehoshi/oto
cd $GOPATH/src/github.com/hajimehoshi/oto
git reset --hard v0.1.1
cd ~
gomobile init
git clone https://github.com/Noofbiz/android-ndk.git $HOME/android-ndk-root
printf "$HOME/android-ndk-root" > $GOPATH/pkg/gomobile/android_ndk_root
elif [ "$TEST_TYPE" == "linux_test" ] || [ "$TEST_TYPE" == "linux_build" ]
then
echo "nothing more to add for linux"
elif [ "$TEST_TYPE" == "traffic_manager" ]
then
go get github.com/EngoEngine/TrafficManager
else
echo "environment variable TEST_TYPE was not set"
fi