Skip to content

Commit

Permalink
Attempt to fix Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
niknetniko committed Sep 19, 2019
1 parent c53d38e commit d34b033
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
language: android
jdk:
- oraclejdk8
sudo: false

android:
components:
Expand All @@ -13,15 +14,13 @@ env:
- FLAVOUR=testRelease

script:
- "./gradlew clean $FLAVOUR"
- "./gradlew clean $FLAVOUR --console=plain"

notifications:
email: false

sudo: false

before_install:
- yes | sdkmanager "platforms;android-28"
#before_install:
# - yes | sdkmanager "platforms;android-28"

# Caching according to the docs at https://docs.travis-ci.com/user/languages/java/#Projects-Using-Gradle
before_cache:
Expand All @@ -31,6 +30,7 @@ cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache

# We only build on these branches and on release tags, which are tagged r[0-9]+.
branches:
Expand Down
7 changes: 7 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -200,3 +200,10 @@ def loadProperties() {

return actualKeys
}

// Travis uses plain console mode, which does not output test status by default, causing time-outs.
tasks.withType(Test) {
testLogging {
events "passed", "skipped", "failed"
}
}

0 comments on commit d34b033

Please sign in to comment.