Skip to content

Commit

Permalink
Reduce Travis builds
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 committed Jan 7, 2020
1 parent e0d3409 commit 6498fad
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .travis.yml
Expand Up @@ -15,17 +15,22 @@ android:
- 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'

branches:
only:
- master

before_install:
# Android SDK installation is a mess, especially with licenses. Not sure if all of this is required, but it works.
- echo "$ANDROID_HOME"
- mkdir -p "$ANDROID_HOME/licenses"
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
- yes | sdkmanager "platforms;android-27"
# Android SDK installation is a mess, especially with licenses. Not sure if all of this is required, but it works.
- echo "$ANDROID_HOME"
- mkdir -p "$ANDROID_HOME/licenses"
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
- yes | sdkmanager "platforms;android-27"

script:
# build includes lint and test
- TERM=dumb ./gradlew build
# build includes lint and test
- TERM=dumb ./gradlew build

after_failure:
- cat **/build/reports/lint-results.xml
- cat **/build/reports/lint-results.xml

0 comments on commit 6498fad

Please sign in to comment.