diff options
author | Allan Wang <me@allanwang.ca> | 2020-03-01 23:47:39 -0800 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2020-03-01 23:47:39 -0800 |
commit | e3f713aae157c65af231b1417bea1f8259b8294e (patch) | |
tree | b5e57a2abc9304caeb846bd8d55b1bae0dc4f5fe /app/build.gradle | |
parent | 2798abf62bd5960abebf6e3b917b9013aa468134 (diff) | |
download | frost-e3f713aae157c65af231b1417bea1f8259b8294e.tar.gz frost-e3f713aae157c65af231b1417bea1f8259b8294e.tar.bz2 frost-e3f713aae157c65af231b1417bea1f8259b8294e.zip |
Avoid version check on travis
Diffstat (limited to 'app/build.gradle')
-rw-r--r-- | app/build.gradle | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/app/build.gradle b/app/build.gradle index 197fe10f..fde143ad 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -40,18 +40,20 @@ android { versionName '2.4.4' // versionName androidGitVersion.name() - // Verification for F-Droid builds - if (versionCode != androidGitVersion.code()) { - throw new GradleException("Version code mismatch, expected ${androidGitVersion.code()}, got $versionCode") - } - if (versionName != androidGitVersion.name()) { - throw new GradleException("Version name mismatch, expected ${androidGitVersion.name()}, got $versionName") - } - multiDexEnabled true - testInstrumentationRunner "com.pitchedapps.frost.FrostTestRunner" - javaCompileOptions { - annotationProcessorOptions { - arguments = ["room.schemaLocation": "$projectDir/src/schemas".toString()] + if (System.getenv('TRAVIS') != 'true') { + // Verification for F-Droid builds + if (versionCode != androidGitVersion.code()) { + throw new GradleException("Version code mismatch, expected ${androidGitVersion.code()}, got $versionCode") + } + if (versionName != androidGitVersion.name()) { + throw new GradleException("Version name mismatch, expected ${androidGitVersion.name()}, got $versionName") + } + multiDexEnabled true + testInstrumentationRunner "com.pitchedapps.frost.FrostTestRunner" + javaCompileOptions { + annotationProcessorOptions { + arguments = ["room.schemaLocation": "$projectDir/src/schemas".toString()] + } } } } |