Cleaned up CI configurations.
This commit is contained in:
parent
174c3659ad
commit
7333ffc1b4
4 changed files with 185 additions and 5 deletions
|
@ -21,7 +21,7 @@ defaults_gradle: &defaults_gradle
|
|||
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
|
||||
- run:
|
||||
name: Run Tests
|
||||
command: ./gradlew lint test
|
||||
command: ./gradlew lint build connectedCheck -PdisablePreDex --stacktrace
|
||||
- store_artifacts:
|
||||
path: app/build/reports
|
||||
destination: reports
|
||||
|
|
|
@ -29,8 +29,8 @@ before_install:
|
|||
- chmod +x gradlew
|
||||
- echo $GOOGLE_SERVICES | base64 -di > app/google-services.json
|
||||
|
||||
after_failure:
|
||||
- cat $TRAVIS_BUILD_DIR/app/build/outputs/lint-results-debug.xml
|
||||
# after_failure:
|
||||
# - cat app/build/reports/lint-results.xml
|
||||
|
||||
script:
|
||||
- ./gradlew clean build connectedCheck -PdisablePreDex --stacktrace
|
||||
- ./gradlew lint build connectedCheck -PdisablePreDex --stacktrace
|
||||
|
|
|
@ -30,6 +30,10 @@ android {
|
|||
sourceSets {
|
||||
main.java.srcDirs += 'src/main/kotlin'
|
||||
}
|
||||
|
||||
lintOptions {
|
||||
baseline file("lint-baseline.xml")
|
||||
}
|
||||
}
|
||||
|
||||
ext {
|
||||
|
@ -81,7 +85,7 @@ kapt {
|
|||
|
||||
kotlinter {
|
||||
ignoreFailures = false
|
||||
reporters = ['html']
|
||||
reporters = ['html', 'plain']
|
||||
experimentalRules = false
|
||||
disabledRules = ['import-ordering']
|
||||
}
|
||||
|
|
176
app/lint-baseline.xml
Normal file
176
app/lint-baseline.xml
Normal file
|
@ -0,0 +1,176 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<issues format="5" by="lint 3.5.0" client="gradle" variant="all" version="3.5.0">
|
||||
|
||||
<issue
|
||||
id="UnusedResources"
|
||||
message="The resource `R.dimen.activity_horizontal_margin` appears to be unused"
|
||||
errorLine1=" <dimen name="activity_horizontal_margin">16dp</dimen>"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="src\main\res\values\dimens.xml"
|
||||
line="3"
|
||||
column="12"/>
|
||||
<location
|
||||
file="src\main\res\values-w820dp\dimens.xml"
|
||||
line="5"
|
||||
column="12"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="UnusedResources"
|
||||
message="The resource `R.dimen.activity_vertical_margin` appears to be unused"
|
||||
errorLine1=" <dimen name="activity_vertical_margin">16dp</dimen>"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="src\main\res\values\dimens.xml"
|
||||
line="4"
|
||||
column="12"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="UnusedResources"
|
||||
message="The resource `R.plurals.error_prop` appears to be unused"
|
||||
errorLine1=" <plurals name="error_prop">"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="src\main\res\values\strings.xml"
|
||||
line="6"
|
||||
column="14"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="UnusedResources"
|
||||
message="The resource `R.string.about_contact_us` appears to be unused"
|
||||
errorLine1=" <string name="about_contact_us">Contact me</string>"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="src\main\res\values\strings.xml"
|
||||
line="11"
|
||||
column="13"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="UnusedResources"
|
||||
message="The resource `R.string.about_github` appears to be unused"
|
||||
errorLine1=" <string name="about_github">Documentation on GitHub</string>"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="src\main\res\values\strings.xml"
|
||||
line="12"
|
||||
column="13"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="UnusedResources"
|
||||
message="The resource `R.string.about_twitter` appears to be unused"
|
||||
errorLine1=" <string name="about_twitter">Follow me on Twitter</string>"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="src\main\res\values\strings.xml"
|
||||
line="13"
|
||||
column="13"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="UnusedResources"
|
||||
message="The resource `R.string.about_website` appears to be unused"
|
||||
errorLine1=" <string name="about_website">Open Source Licenses</string>"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="src\main\res\values\strings.xml"
|
||||
line="14"
|
||||
column="13"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="UnusedResources"
|
||||
message="The resource `R.string.validate_dtmf_nopause` appears to be unused"
|
||||
errorLine1=" <string name="validate_dtmf_nopause">Missing pause between steps</string>"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="src\main\res\values\strings.xml"
|
||||
line="35"
|
||||
column="13"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="UnusedResources"
|
||||
message="The resource `R.string.validate_invalid_field_prop` appears to be unused"
|
||||
errorLine1=" <string name="validate_invalid_field_prop">&lt;p>&lt;b>opts[<xliff:g id="opts">%1$d</xliff:g>]&lt;/b>, &lt;b>fields[<xliff:g id="field">%2$d</xliff:g>]&lt;/b>, invalid &lt;font color=\"red\"><xliff:g id="prop">%3$s</xliff:g>&lt;/font>:&lt;br>&#160;&#160;&#160;&#160;&lt;font color=\"red\"><xliff:g id="attr">%4$s</xliff:g>&lt;/font>&lt;/p></string>"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="src\main\res\values\strings.xml"
|
||||
line="36"
|
||||
column="13"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="UnusedResources"
|
||||
message="The resource `R.string.validate_invalid_option` appears to be unused"
|
||||
errorLine1=" <string name="validate_invalid_option">&lt;p>&lt;b>opts[<xliff:g id="opts">%1$d</xliff:g>]&lt;/b>: invalid &lt;font color=\"red\"><xliff:g id="prop">%2$s</xliff:g>&lt;/font>&lt;/p></string>"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="src\main\res\values\strings.xml"
|
||||
line="37"
|
||||
column="13"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="UnusedResources"
|
||||
message="The resource `R.string.validate_invalid_opts_prop` appears to be unused"
|
||||
errorLine1=" <string name="validate_invalid_opts_prop">&lt;p>&lt;b>opts[<xliff:g id="opts">%1$d</xliff:g>]&lt;/b>&lt;/b>, invalid &lt;font color=\"red\"><xliff:g id="prop">%2$s</xliff:g>&lt;/font>:&lt;br>&#160;&#160;&#160;&#160;&lt;font color=\"red\"><xliff:g id="val">%3$s</xliff:g>&lt;/font>&lt;/p></string>"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="src\main\res\values\strings.xml"
|
||||
line="38"
|
||||
column="13"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="UnusedResources"
|
||||
message="The resource `R.string.validate_missing_opts_prop` appears to be unused"
|
||||
errorLine1=" <string name="validate_missing_opts_prop">&lt;p>&lt;b>opts[<xliff:g id="opts">%1$d</xliff:g>]&lt;/b>: missing &lt;font color=\"red\"><xliff:g id="prop">%2$s</xliff:g>&lt;/font>&lt;/p></string>"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="src\main\res\values\strings.xml"
|
||||
line="41"
|
||||
column="13"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="UnusedResources"
|
||||
message="The resource `R.string.validate_syntax_error` appears to be unused"
|
||||
errorLine1=" <string name="validate_syntax_error">&lt;p>&lt;b>Syntax error&lt;/b> after &lt;font color=\"red\"><xliff:g id="obj">%1$s</xliff:g>&lt;/font>: trailing comma.</string>"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="src\main\res\values\strings.xml"
|
||||
line="43"
|
||||
column="13"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="UnusedResources"
|
||||
message="The resource `R.string.validate_unused_field` appears to be unused"
|
||||
errorLine1=" <string name="validate_unused_field">&lt;p>&lt;b>opts[<xliff:g id="opts">%1$d</xliff:g>]&lt;/b>, &lt;font color=\"red\">fields[<xliff:g id="field">%2$d</xliff:g>]&lt;/font>: unused&lt;/p></string>"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="src\main\res\values\strings.xml"
|
||||
line="44"
|
||||
column="13"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="IconDensities"
|
||||
message="Missing the following drawables in `drawable-hdpi`: icons8_policy_document.png (found in drawable-mdpi, drawable-xhdpi, drawable-xxxhdpi)">
|
||||
<location
|
||||
file="src\main\res\drawable-hdpi"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="IconDensities"
|
||||
message="Missing the following drawables in `drawable-xxhdpi`: icons8_policy_document.png (found in drawable-mdpi, drawable-xhdpi, drawable-xxxhdpi)">
|
||||
<location
|
||||
file="src\main\res\drawable-xxhdpi"/>
|
||||
</issue>
|
||||
|
||||
</issues>
|
Loading…
Add table
Add a link
Reference in a new issue