Skip to content

Commit 5360cbf

Browse files
authored
Update common repo files from synthtool (#756)
* Update common repo files from synthtool * Ignore license-checks.xml from templates * Update issue templates from synth
1 parent 6202d33 commit 5360cbf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+727
-122
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
5+
---
6+
7+
Thanks for stopping by to let us know something could be better!
8+
9+
**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.
10+
11+
Please run down the following list and make sure you've tried the usual "quick fixes":
12+
13+
- Search the issues already opened: https://github.com/googleapis/google-http-client/issues
14+
- Check for answers on StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform
15+
16+
If you are still having issues, please be sure to include as much information as possible:
17+
18+
#### Environment details
19+
20+
1. Specify the API at the beginning of the title (for example, "BigQuery: ...")
21+
General, Core, and Other are also allowed as types
22+
2. OS type and version:
23+
3. Java version:
24+
4. google-http-client version(s):
25+
26+
#### Steps to reproduce
27+
28+
1. ?
29+
2. ?
30+
31+
#### Code example
32+
33+
```java
34+
// example
35+
```
36+
37+
#### Stack trace
38+
```
39+
Any relevant stacktrace here.
40+
```
41+
42+
#### External references such as API reference guides used
43+
44+
- ?
45+
46+
#### Any additional information below
47+
48+
49+
Following these steps guarantees the quickest resolution possible.
50+
51+
Thanks!
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this library
4+
5+
---
6+
7+
Thanks for stopping by to let us know something could be better!
8+
9+
**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.
10+
11+
**Is your feature request related to a problem? Please describe.**
12+
A clear and concise description of what the problem is. Example: I'm always frustrated when [...]
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
**Describe alternatives you've considered**
16+
A clear and concise description of any alternative solutions or features you've considered.
17+
**Additional context**
18+
Add any other context or screenshots about the feature request here.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
name: Support request
3+
about: If you have a support contract with Google, please create an issue in the Google Cloud Support console.
4+
5+
---
6+
7+
**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
Fixes #<issue_number_goes_here> (it's a good idea to open an issue first for discussion)
2-
3-
- [ ] Tests pass
4-
- [ ] Appropriate docs were updated (if necessary)
1+
Fixes #<issue_number_goes_here> (it's a good idea to open an issue first for context and/or discussion)

.gitignore

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,32 @@
1-
target/
2-
bin/
1+
.gitignore
2+
3+
# Packages
4+
dist
5+
bin
6+
var
7+
sdist
8+
target
9+
10+
# Unit test / coverage reports
11+
.coverage
12+
.tox
13+
nosetests.xml
14+
15+
# Translations
16+
*.mo
17+
18+
# Mr Developer
19+
.mr.developer.cfg
20+
.project
21+
.pydevproject
322
*.iml
423
.idea
5-
.project
624
.settings
7-
.classpath
825
.DS_Store
26+
.classpath
27+
28+
# Built documentation
29+
docs/
30+
31+
# Python utilities
32+
*.pyc

.kokoro/build.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
:: See documentation in type-shell-output.bat
2-
2+
33
"C:\Program Files\Git\bin\bash.exe" github/google-http-java-client/.kokoro/build.sh

.kokoro/build.sh

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Copyright 2018 Google Inc.
2+
# Copyright 2019 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -15,13 +15,40 @@
1515

1616
set -eo pipefail
1717

18-
cd github/google-http-java-client/
18+
## Get the directory of the build script
19+
scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}"))
20+
## cd to the parent directory, i.e. the root of the git repo
21+
cd ${scriptDir}/..
1922

20-
# Print out Java
23+
# Print out Java version
2124
java -version
22-
echo $JOB_TYPE
25+
echo ${JOB_TYPE}
2326

24-
export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m"
27+
mvn install -B -V \
28+
-DskipTests=true \
29+
-Dmaven.javadoc.skip=true \
30+
-Dgcloud.download.skip=true \
31+
-T 1C
2532

26-
mvn install -DskipTests=true -B -V
27-
mvn test -B
33+
# if GOOGLE_APPLICATION_CREDIENTIALS is specified as a relative path prepend Kokoro root directory onto it
34+
if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTIALS}" != /* ]]; then
35+
export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ${KOKORO_ROOT}/src/${GOOGLE_APPLICATION_CREDENTIALS})
36+
fi
37+
38+
case ${JOB_TYPE} in
39+
test)
40+
mvn test -B
41+
bash ${KOKORO_GFILE_DIR}/codecov.sh
42+
;;
43+
lint)
44+
mvn com.coveo:fmt-maven-plugin:check
45+
;;
46+
javadoc)
47+
mvn javadoc:javadoc javadoc:test-javadoc
48+
;;
49+
integration)
50+
mvn -B ${INTEGRATION_TEST_ARGS} -DtrimStackTrace=false -fae verify
51+
;;
52+
*)
53+
;;
54+
esac

.kokoro/continuous/common.cfg

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
1414
build_file: "google-http-java-client/.kokoro/trampoline.sh"
1515

1616
env_vars: {
17-
key: "TRAMPOLINE_BUILD_FILE"
18-
value: "github/google-http-java-client/.kokoro/build.sh"
17+
key: "TRAMPOLINE_BUILD_FILE"
18+
value: "github/google-http-java-client/.kokoro/build.sh"
1919
}
2020

2121
env_vars: {
22-
key: "JOB_TYPE"
23-
value: "test"
22+
key: "JOB_TYPE"
23+
value: "test"
2424
}

.kokoro/continuous/dependencies.cfg

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Configure the docker image for kokoro-trampoline.
4+
env_vars: {
5+
key: "TRAMPOLINE_IMAGE"
6+
value: "gcr.io/cloud-devrel-kokoro-resources/java8"
7+
}
8+
9+
env_vars: {
10+
key: "TRAMPOLINE_BUILD_FILE"
11+
value: "github/google-http-java-client/.kokoro/dependencies.sh"
12+
}

.kokoro/continuous/integration.cfg

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Configure the docker image for kokoro-trampoline.
4+
env_vars: {
5+
key: "TRAMPOLINE_IMAGE"
6+
value: "gcr.io/cloud-devrel-kokoro-resources/java8"
7+
}

0 commit comments

Comments
 (0)