Skip to content

Commit 3626984

Browse files
stephenpluspluscallmehiphop
authored andcommitted
tests: add OS X to travis (#1553)
* tests: add OS X to travis * test doc errors * force npm 3
1 parent f076bf7 commit 3626984

File tree

3 files changed

+11
-24
lines changed

3 files changed

+11
-24
lines changed

.travis.yml

+7-23
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,13 @@
11
language: node_js
22
node_js:
3-
- 6
4-
- 4
5-
- 0.12
6-
7-
# To test Node v4, Travis needs to use a newer C++ compiler.
8-
# Source: https://github.com/nodejs/nan/issues/435#issuecomment-136063745
9-
addons:
10-
apt:
11-
sources:
12-
- ubuntu-toolchain-r-test
13-
packages:
14-
- g++-4.8
3+
- 6
4+
- 4
5+
- 0.12
6+
os:
7+
- linux
8+
- osx
159
before_install:
16-
- export CXX=g++-4.8
17-
- "$CXX --version"
10+
- npm install -g npm # Force using the latest npm to get dedupe during install
1811
script: "./scripts/build.sh"
1912
before_deploy: "./scripts/release.sh"
20-
deploy:
21-
provider: npm
22-
23-
api_key:
24-
secure: H8H4ATiE64gTgiectfIYatsSnm7uDQrgQPvnLp7Ra1piElS+f1lLzdiN8+pDGP3h+OHU/PE8KsXhtVLfYTX5zroo3Y70n5TE4uTO62PL6WZl5R1+L5bUKcrffcHMsjH0mmiK5d0TW032tMcybAHsPcj9wiOZpf6aBIEEFY/1V5o=
25-
on:
26-
tags: true
27-
repo: GoogleCloudPlatform/google-cloud-node
28-
all_branches: true
2913
sudo: false

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"docs": "node ./scripts/docs/packages.js",
3030
"bundle": "node ./scripts/docs/bundle.js",
3131
"lint": "jshint scripts/ packages/ system-test/ test/ && jscs packages/ system-test/ test/",
32-
"test": "npm run docs && npm run bundle && mocha --timeout 5000 test/docs.js packages/*/test/*.js",
32+
"test": "npm run docs && npm run bundle && mocha --timeout 5000 --bail test/docs.js packages/*/test/*.js",
3333
"system-test": "mocha packages/*/system-test/*.js --no-timeouts --bail",
3434
"cover": "istanbul cover _mocha --report lcovonly -x 'packages/*/src/v*/*.js' -- --no-timeouts --bail packages/*/test/*.js -R spec",
3535
"coveralls": "npm run cover && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"

packages/bigquery/src/table.js

+3
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,9 @@ Table.prototype.getRows = function(options, callback) {
726726
* //-
727727
* // Load data from a file in your Cloud Storage bucket.
728728
* //-
729+
* var gcs = require('@google-cloud/storage')({
730+
* projectId: 'grape-spaceship-123'
731+
* });
729732
* var data = gcs.bucket('institutions').file('data.csv');
730733
* table.import(data, function(err, job, apiResponse) {});
731734
*

0 commit comments

Comments
 (0)