Run the CI test in the before_install phase

This is unorthodox, but Travis will stop right after most errors
instead of spending forever installing the Android NDK
This commit is contained in:
Frank Denis 2019-12-17 18:38:40 +01:00
parent 56bd9dcd04
commit 515968e414

View file

@ -11,12 +11,7 @@ addons:
update: true
script:
- gimme --list
- echo $TRAVIS_GO_VERSION
- cd .ci
- ./ci-test.sh || travis_terminate 1
- cd ../dnscrypt-proxy
- cd dnscrypt-proxy
- go clean
- env GOOS=windows GOARCH=386 go build -mod vendor -ldflags="-s -w"
@ -237,6 +232,11 @@ before_deploy:
- echo | /tmp/bin/minisign -s /tmp/minisign.key -Sm dnscrypt-proxy-*.tar.gz dnscrypt-proxy-*.zip
before_install:
- gimme --list
- echo $TRAVIS_GO_VERSION
- cd .ci
- ./ci-test.sh || travis_terminate 1
- cd -
- NDK_VER=r18
- curl -LO https://dl.google.com/android/repository/android-ndk-${NDK_VER}-linux-x86_64.zip
- unzip -q android-ndk-${NDK_VER}-linux-x86_64.zip -d $HOME