This repository has been archived by the owner on Mar 20, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
/
.travis.yml
26 lines (26 loc) · 1.47 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
language: generic
sudo: required
matrix:
include:
- services:
- docker
script: docker run -v $PWD:/gb greenaddress/android@sha256:979d4491884a2eb7c42beed2918c0ea6a413616a27fae48634f46322e08dfb06 /bin/sh -c "cd /gb && ./app/fetch_libwally_binaries.sh && ./gradlew --project-dir=bitcoinj/tools build && ./gradlew lintProductionRelease && ./gradlew assembleProductionRelease"
- os: osx
osx_image: xcode8.3
env:
- ANDROID_HOME=/Users/travis/opt
- SDK_FILENAME=sdk-tools-darwin-3859397.zip
install:
- mkdir -p $HOME/opt
- cd $HOME/opt && curl -sSO https://dl.google.com/android/repository/${SDK_FILENAME} && unzip -qq ${SDK_FILENAME} &> /dev/null
- brew update &> /dev/null
- brew install swig gnu-sed pkg-config &> /dev/null
- yes | $HOME/opt/tools/bin/sdkmanager "tools" "platform-tools" &> /dev/null
- yes | $HOME/opt/tools/bin/sdkmanager "build-tools;27.0.3" &> /dev/null
- yes | $HOME/opt/tools/bin/sdkmanager "platforms;android-27" &> /dev/null
- yes | $HOME/opt/tools/bin/sdkmanager "extras;android;m2repository" "extras;google;m2repository" &> /dev/null
script:
- export JAVA_HOME="$(/usr/libexec/java_home -v 1.8)"
- cd $HOME/build/greenaddress/GreenBits/app && ./fetch_libwally_binaries.sh
- cd $HOME/build/greenaddress/GreenBits && ./gradlew lintProductionRelease
- cd $HOME/build/greenaddress/GreenBits && ./gradlew assembleProductionDebug