Skip to content

Commit

Permalink
Tweak Travis configuration. (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
vanniktech committed Mar 10, 2018
1 parent 1987aa7 commit c54810b
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .travis.yml
Expand Up @@ -3,20 +3,18 @@ language: android
jdk:
- oraclejdk8

before_script:
before_install:
# Install SDK license so Android Gradle plugin can install deps.
- mkdir "$ANDROID_HOME/licenses" || true
- echo "d56f5187479451eabf01fb78af6dfcb131a6481e" > "$ANDROID_HOME/licenses/android-sdk-license"

before_install:
- pip install --user codecov

install: true

script: ./gradlew clean build

after_success:
- bash <(curl -s https://codecov.io/bash)
- .buildscript/deploy_snapshot.sh
- codecov

env:
global:
Expand All @@ -30,9 +28,13 @@ branches:
notifications:
email: false

sudo: true # Required since otherwise Travis gets killed.
sudo: false

before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle
- $HOME/.m2
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache

0 comments on commit c54810b

Please sign in to comment.