Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
6
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Client
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
434
Issues
434
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
27
Merge Requests
27
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
F-Droid
Client
Commits
3c341b7e
Commit
3c341b7e
authored
Feb 13, 2018
by
Hans-Christoph Steiner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move errorprone config to its own gitlab CI job
parent
d3cb7751
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
35 deletions
+42
-35
.gitlab-ci.yml
.gitlab-ci.yml
+7
-0
app/build.gradle
app/build.gradle
+1
-35
config/errorprone.gradle
config/errorprone.gradle
+34
-0
No files found.
.gitlab-ci.yml
View file @
3c341b7e
...
...
@@ -45,6 +45,13 @@ test:
-
./gradlew test || export EXITVALUE=1
-
exit $EXITVALUE
errorprone
:
stage
:
test
script
:
-
cat config/errorprone.gradle >> app/build.gradle
-
./gradlew assembleDebug
allow_failure
:
true
connected10
:
stage
:
test
<<
:
*test-template
...
...
app/build.gradle
View file @
3c341b7e
...
...
@@ -375,38 +375,4 @@ android.applicationVariants.all { variant ->
exclude
'**/BuildConfig.java'
exclude
'**/R.java'
}
}
buildscript
{
repositories
{
maven
{
url
"https://plugins.gradle.org/m2/"
}
}
dependencies
{
classpath
"net.ltgt.gradle:gradle-errorprone-plugin:0.0.13"
}
}
apply
plugin:
"net.ltgt.errorprone"
tasks
.
withType
(
JavaCompile
)
{
options
.
compilerArgs
+=
[
'-Xep:CatchFail:OFF'
,
'-Xep:ClassCanBeStatic:OFF'
,
'-Xep:DateFormatConstant:OFF'
,
'-Xep:DefaultCharset:OFF'
,
'-Xep:FormatString:OFF'
,
'-Xep:JavaLangClash:OFF'
,
'-Xep:MissingCasesInEnumSwitch:OFF'
,
'-Xep:MissingOverride:OFF'
,
'-Xep:NonAtomicVolatileUpdate:OFF'
,
'-Xep:OperatorPrecedence:OFF'
,
'-Xep:StringSplitter:OFF'
,
'-Xep:UnsynchronizedOverridesSynchronized:OFF'
,
]
}
configurations
.
errorprone
{
resolutionStrategy
.
force
'com.google.errorprone:error_prone_core:2.2.0'
}
}
\ No newline at end of file
config/errorprone.gradle
0 → 100644
View file @
3c341b7e
buildscript
{
repositories
{
maven
{
url
"https://plugins.gradle.org/m2/"
}
}
dependencies
{
classpath
"net.ltgt.gradle:gradle-errorprone-plugin:0.0.13"
}
}
apply
plugin:
"net.ltgt.errorprone"
tasks
.
withType
(
JavaCompile
)
{
options
.
compilerArgs
+=
[
'-Xep:CatchFail:OFF'
,
'-Xep:ClassCanBeStatic:OFF'
,
'-Xep:DateFormatConstant:OFF'
,
'-Xep:DefaultCharset:OFF'
,
'-Xep:FormatString:OFF'
,
'-Xep:JavaLangClash:OFF'
,
'-Xep:MissingCasesInEnumSwitch:OFF'
,
'-Xep:MissingOverride:OFF'
,
'-Xep:NonAtomicVolatileUpdate:OFF'
,
'-Xep:OperatorPrecedence:OFF'
,
'-Xep:StringSplitter:OFF'
,
'-Xep:UnsynchronizedOverridesSynchronized:OFF'
,
]
}
configurations
.
errorprone
{
resolutionStrategy
.
force
'com.google.errorprone:error_prone_core:2.2.0'
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment