forked from Blockstream/green_android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
23 lines (23 loc) · 1.09 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
language: generic
sudo: required
matrix:
include:
- services:
- docker
script: docker run -v $PWD:/ga greenaddress/android@sha256:1ba279240efe7526185ff344e7b65aa5af4e8eee8e4987a62fc8ee2477de7ff0 /bin/sh -c "cd /ga && ./gradlew lintProductionRelease && ./gradlew assembleProductionRelease"
- os: osx
osx_image: xcode8.3
env:
- ANDROID_HOME=/Users/travis/opt
- SDK_FILENAME=sdk-tools-darwin-4333796.zip
- HOMEBREW_NO_AUTO_UPDATE=1
install:
- mkdir -p $HOME/opt && curl -sSO https://dl.google.com/android/repository/${SDK_FILENAME} && unzip -qq ${SDK_FILENAME} -d $HOME/opt &> /dev/null
- brew install gnu-sed &> /dev/null
- yes | $HOME/opt/tools/bin/sdkmanager "tools" "platform-tools" &> /dev/null
- yes | $HOME/opt/tools/bin/sdkmanager "build-tools;31.0.0" &> /dev/null
- yes | $HOME/opt/tools/bin/sdkmanager "platforms;android-31" &> /dev/null
script:
- export JAVA_HOME="$(/usr/libexec/java_home -v 1.8)"
- ./gradlew lintProductionRelease
- ./gradlew assembleProductionRelease