-
Notifications
You must be signed in to change notification settings - Fork 719
ci: installing google-play-services artifact for Windows #1706
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
92a180b
b9487eb
851a0fd
4af8b2c
000d56d
10a5b9a
3aa146f
5d112be
43d9e56
4ec4bd2
d19f562
472d361
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,12 +27,30 @@ jobs: | |
windows: | ||
runs-on: windows-latest | ||
steps: | ||
- name: git configuration to avoid automatic CRLF conversion | ||
run: | | ||
git config --global core.autocrlf false | ||
git config --global core.eol lf | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: 8 | ||
- run: java -version | ||
- run: .kokoro/build.bat | ||
- name: Install google-play-services artifact | ||
shell: bash | ||
run: | | ||
mkdir play-services | ||
cd play-services | ||
curl --output play-services-basement-8.3.0.aar https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-basement/8.3.0/play-services-basement-8.3.0.aar | ||
unzip play-services-basement-8.3.0.aar | ||
mvn install:install-file \ | ||
-Dfile=classes.jar \ | ||
-DgroupId=com.google.android.google-play-services \ | ||
-DartifactId=google-play-services \ | ||
-Dversion=1 \ | ||
-Dpackaging=jar | ||
- run: .kokoro/build.sh | ||
shell: bash | ||
Comment on lines
+40
to
+53
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Windows has bash. |
||
env: | ||
JOB_TYPE: test | ||
dependencies: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,13 +4,8 @@ | |
"http://www.puppycrawl.com/dtds/suppressions_1_0.dtd"> | ||
|
||
<suppressions> | ||
|
||
<suppress checks="LineLength" files="com/google/api/client/googleapis/apache/GoogleApacheHttpTransport.java"/> | ||
<suppress checks="LineLength" files="com/google/api/client/googleapis/extensions/appengine/notifications/AppEngineNotificationServlet.java"/> | ||
<suppress checks="LineLength" files="com/google/api/client/googleapis/extensions/appengine/subscriptions/package-info.java"/> | ||
<suppress checks="LineLength" files="com/google/api/client/googleapis/extensions/servlet/notifications/NotificationServlet.java"/> | ||
<suppress checks="LineLength" files="com/google/api/client/googleapis/javanet/GoogleNetHttpTransport.java"/> | ||
<suppress checks="LineLength" files="com/google/api/client/googleapis/subscriptions/NotificationHeaders.java"/> | ||
Comment on lines
-8
to
-13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Files that no longer violates the line length have been removed. |
||
<suppress checks="LineLength" files="com[/\\]google[/\\]api[/\\]client[/\\]googleapis[/\\]extensions[/\\]appengine[/\\]notifications[/\\]AppEngineNotificationServlet.java"/> | ||
<suppress checks="LineLength" files="com[/\\]google[/\\]api[/\\]client[/\\]googleapis[/\\]extensions[/\\]servlet[/\\]notifications[/\\]NotificationServlet.java"/> | ||
Comment on lines
+7
to
+8
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I had to add forward slash and back slash to make it work for both Windows and Unix filesystem. |
||
|
||
<!-- Don't check JavaDoc on package-info. --> | ||
<suppress checks="JavadocStyleCheck" files="package-info.java"/> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,12 +72,8 @@ page at http://checkstyle.sourceforge.net/config.html --> | |
<module name="JavadocMethod"> | ||
<property name="scope" value="protected"/> | ||
<property name="severity" value="warning"/> | ||
<property name="allowMissingJavadoc" value="true"/> | ||
<property name="allowMissingParamTags" value="true"/> | ||
<property name="allowMissingReturnTag" value="true"/> | ||
<property name="allowMissingThrowsTags" value="true"/> | ||
<property name="allowThrowsTagsForSubclasses" value="true"/> | ||
<property name="allowUndeclaredRTE" value="true"/> | ||
</module> | ||
Comment on lines
-75
to
77
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The removed properties are no longer supported in newer version of checkstyle. |
||
|
||
<module name="JavadocType"> | ||
|
@@ -183,22 +179,6 @@ page at http://checkstyle.sourceforge.net/config.html --> | |
|
||
--> | ||
|
||
<module name="LineLength"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The LineLength's parent has to be "Check" element in the newer checkstyle. |
||
<!-- Checks if a line is too long. --> | ||
<property name="max" value="${com.puppycrawl.tools.checkstyle.checks.sizes.LineLength.max}" default="100"/> | ||
<property name="severity" value="error"/> | ||
|
||
<!-- | ||
The default ignore pattern exempts the following elements: | ||
- import statements | ||
- long URLs inside comments | ||
--> | ||
|
||
<property name="ignorePattern" | ||
value="${com.puppycrawl.tools.checkstyle.checks.sizes.LineLength.ignorePattern}" | ||
default="^(package .*;\s*)|(import .*;\s*)|( *(\*|//).*https?://.*)$"/> | ||
</module> | ||
|
||
<module name="LeftCurly"> | ||
<!-- Checks for placement of the left curly brace ('{'). --> | ||
<property name="severity" value="warning"/> | ||
|
@@ -316,7 +296,23 @@ page at http://checkstyle.sourceforge.net/config.html --> | |
--> | ||
<property name="severity" value="warning"/> | ||
</module> | ||
</module> | ||
|
||
|
||
<module name="LineLength"> | ||
<!-- Checks if a line is too long. --> | ||
<property name="max" value="${com.puppycrawl.tools.checkstyle.checks.sizes.LineLength.max}" default="100"/> | ||
<property name="severity" value="error"/> | ||
|
||
<!-- | ||
The default ignore pattern exempts the following elements: | ||
- import statements | ||
- long URLs inside comments | ||
--> | ||
|
||
<property name="ignorePattern" | ||
value="${com.puppycrawl.tools.checkstyle.checks.sizes.LineLength.ignorePattern}" | ||
default="^(package .*;\s*)|(import .*;\s*)|( *(\*|//).*https?://.*)$"/> | ||
</module> | ||
</module> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -561,7 +561,7 @@ | |
<dependency> | ||
<groupId>com.puppycrawl.tools</groupId> | ||
<artifactId>checkstyle</artifactId> | ||
<version>8.23</version> | ||
<version>8.39</version> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the version google-cloud-shared-config 0.10.0 uses. |
||
</dependency> | ||
</dependencies> | ||
<configuration> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This avoids the error below: