Skip to content
This repository was archived by the owner on Jul 13, 2023. It is now read-only.

Commit efb7139

Browse files
Merge pull request #1 from googleapis/initial_release
Initial release
2 parents 90a5fba + fbc77bc commit efb7139

29 files changed

+1096
-239
lines changed

.appveyor.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
environment:
2+
matrix:
3+
- nodejs_version: 8
4+
5+
install:
6+
- ps: Install-Product node $env:nodejs_version
7+
- npm install -g npm # Force using the latest npm to get dedupe during install
8+
- set PATH=%APPDATA%\npm;%PATH%
9+
- npm install --force --ignore-scripts
10+
11+
test_script:
12+
- node --version
13+
- npm --version
14+
- npm rebuild
15+
- npm test
16+
17+
build: off
18+
19+
matrix:
20+
fast_finish: true

.circleci/config.yml

Lines changed: 188 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,188 @@
1+
---
2+
# "Include" for unit tests definition.
3+
unit_tests: &unit_tests
4+
steps:
5+
- checkout
6+
- run:
7+
name: Install modules and dependencies.
8+
command: npm install
9+
- run:
10+
name: Run unit tests.
11+
command: npm test
12+
- run:
13+
name: Submit coverage data to codecov.
14+
command: node_modules/.bin/codecov
15+
when: always
16+
17+
version: 2.0
18+
workflows:
19+
version: 2
20+
tests:
21+
jobs:
22+
- node4:
23+
filters:
24+
tags:
25+
only: /.*/
26+
- node6:
27+
filters:
28+
tags:
29+
only: /.*/
30+
- node7:
31+
filters:
32+
tags:
33+
only: /.*/
34+
- node8:
35+
filters:
36+
tags:
37+
only: /.*/
38+
- node9:
39+
filters:
40+
tags:
41+
only: /.*/
42+
- lint:
43+
requires:
44+
- node4
45+
- node6
46+
- node7
47+
- node8
48+
- node9
49+
filters:
50+
tags:
51+
only: /.*/
52+
- docs:
53+
requires:
54+
- node4
55+
- node6
56+
- node7
57+
- node8
58+
- node9
59+
filters:
60+
tags:
61+
only: /.*/
62+
- system_tests:
63+
requires:
64+
- lint
65+
- docs
66+
filters:
67+
branches:
68+
only: master
69+
tags:
70+
only: /^v[\d.]+$/
71+
- publish_npm:
72+
requires:
73+
- system_tests
74+
filters:
75+
branches:
76+
ignore: /.*/
77+
tags:
78+
only: /^v[\d.]+$/
79+
80+
jobs:
81+
node4:
82+
docker:
83+
- image: node:4
84+
user: node
85+
steps:
86+
- checkout
87+
- run:
88+
name: Install modules and dependencies.
89+
command: npm install --unsafe-perm
90+
- run:
91+
name: Run unit tests.
92+
command: npm test
93+
- run:
94+
name: Submit coverage data to codecov.
95+
command: node_modules/.bin/codecov
96+
when: always
97+
node6:
98+
docker:
99+
- image: node:6
100+
user: node
101+
<<: *unit_tests
102+
node7:
103+
docker:
104+
- image: node:7
105+
user: node
106+
<<: *unit_tests
107+
node8:
108+
docker:
109+
- image: node:8
110+
user: node
111+
<<: *unit_tests
112+
node9:
113+
docker:
114+
- image: node:9
115+
user: node
116+
<<: *unit_tests
117+
118+
lint:
119+
docker:
120+
- image: node:8
121+
user: node
122+
steps:
123+
- checkout
124+
- run:
125+
name: Install modules and dependencies.
126+
command: |
127+
mkdir -p /home/node/.npm-global
128+
npm install
129+
npm link
130+
environment:
131+
NPM_CONFIG_PREFIX: /home/node/.npm-global
132+
- run:
133+
name: Run linting.
134+
command: npm run lint
135+
environment:
136+
NPM_CONFIG_PREFIX: /home/node/.npm-global
137+
138+
docs:
139+
docker:
140+
- image: node:8
141+
user: node
142+
steps:
143+
- checkout
144+
- run:
145+
name: Install modules and dependencies.
146+
command: npm install
147+
- run:
148+
name: Build documentation.
149+
command: npm run docs
150+
151+
system_tests:
152+
docker:
153+
- image: node:8
154+
user: node
155+
steps:
156+
- checkout
157+
- run:
158+
name: Decrypt credentials.
159+
command: |
160+
openssl aes-256-cbc -d -in .circleci/key.json.enc \
161+
-out .circleci/key.json \
162+
-k "${SYSTEM_TESTS_ENCRYPTION_KEY}"
163+
- run:
164+
name: Install modules and dependencies.
165+
command: npm install
166+
- run:
167+
name: Run system tests.
168+
command: npm run system-test
169+
environment:
170+
GCLOUD_PROJECT: long-door-651
171+
GOOGLE_APPLICATION_CREDENTIALS: .circleci/key.json
172+
- run:
173+
name: Remove unencrypted key.
174+
command: rm .circleci/key.json
175+
when: always
176+
177+
publish_npm:
178+
docker:
179+
- image: node:8
180+
user: node
181+
steps:
182+
- checkout
183+
- run:
184+
name: Set NPM authentication.
185+
command: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
186+
- run:
187+
name: Publish the module to npm.
188+
command: npm publish --access=public

.circleci/key.json.enc

2.31 KB
Binary file not shown.

.cloud-repo-tools.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"requiresKeyFile": true,
3+
"requiresProjectId": true,
4+
"product": "dataproc",
5+
"client_reference_url": "https://cloud.google.com/nodejs/docs/reference/dataproc/latest/",
6+
"release_quality": "alpha"
7+
}

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/*
2+
samples/node_modules/*
3+
src/**/doc/*

.eslintrc.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
extends:
3+
- 'eslint:recommended'
4+
- 'plugin:node/recommended'
5+
- prettier
6+
plugins:
7+
- node
8+
- prettier
9+
rules:
10+
prettier/prettier: error
11+
block-scoped-var: error
12+
eqeqeq: error
13+
no-warning-comments: warn

.github/CONTRIBUTING.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# How to become a contributor and submit your own code
2+
3+
**Table of contents**
4+
5+
* [Contributor License Agreements](#contributor-license-agreements)
6+
* [Contributing a patch](#contributing-a-patch)
7+
* [Running the tests](#running-the-tests)
8+
* [Releasing the library](#releasing-the-library)
9+
10+
## Contributor License Agreements
11+
12+
We'd love to accept your sample apps and patches! Before we can take them, we
13+
have to jump a couple of legal hurdles.
14+
15+
Please fill out either the individual or corporate Contributor License Agreement
16+
(CLA).
17+
18+
* If you are an individual writing original source code and you're sure you
19+
own the intellectual property, then you'll need to sign an [individual CLA]
20+
(https://developers.google.com/open-source/cla/individual).
21+
* If you work for a company that wants to allow you to contribute your work,
22+
then you'll need to sign a [corporate CLA]
23+
(https://developers.google.com/open-source/cla/corporate).
24+
25+
Follow either of the two links above to access the appropriate CLA and
26+
instructions for how to sign and return it. Once we receive it, we'll be able to
27+
accept your pull requests.
28+
29+
## Contributing A Patch
30+
31+
1. Submit an issue describing your proposed change to the repo in question.
32+
1. The repo owner will respond to your issue promptly.
33+
1. If your proposed change is accepted, and you haven't already done so, sign a
34+
Contributor License Agreement (see details above).
35+
1. Fork the desired repo, develop and test your code changes.
36+
1. Ensure that your code adheres to the existing style in the code to which
37+
you are contributing.
38+
1. Ensure that your code has an appropriate set of tests which all pass.
39+
1. Submit a pull request.
40+
41+
## Running the tests
42+
43+
1. [Prepare your environment for Node.js setup][setup].
44+
45+
1. Install dependencies:
46+
47+
npm install
48+
49+
1. Run the tests:
50+
51+
npm test
52+
53+
[setup]: https://cloud.google.com/nodejs/docs/setup

.github/ISSUE_TEMPLATE.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Thanks for stopping by to let us know something could be better!
2+
3+
Please run down the following list and make sure you've tried the usual "quick
4+
fixes":
5+
6+
- Search the issues already opened: https://github.com/googleapis/nodejs-dataproc/issues
7+
- Search StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform+node.js
8+
- Check our Troubleshooting guide: https://googlecloudplatform.github.io/google-cloud-node/#/docs/guides/troubleshooting
9+
- Check our FAQ: https://googlecloudplatform.github.io/google-cloud-node/#/docs/guides/faq
10+
11+
If you are still having issues, please be sure to include as much information as
12+
possible:
13+
14+
#### Environment details
15+
16+
- OS:
17+
- Node.js version:
18+
- npm version:
19+
- @google-cloud/dataproc version:
20+
21+
#### Steps to reproduce
22+
23+
1. ???
24+
2. ???
25+
26+
Following these steps will guarantee the quickest resolution possible.
27+
28+
Thanks!

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Fixes #<issue_number_goes_here> (it's a good idea to open an issue first for discussion)
2+
3+
- [ ] Tests and linter pass
4+
- [ ] Code coverage does not decrease (if any source code was changed)
5+
- [ ] Appropriate docs were updated (if necessary)

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
**/*.log
2+
**/node_modules
3+
.coverage
4+
.nyc_output
5+
docs/
6+
out/
7+
system-test/secrets.js
8+
system-test/*key.json
9+
*.lock
10+
*-lock.js*

0 commit comments

Comments
 (0)