-
Notifications
You must be signed in to change notification settings - Fork 438
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce support for Cloud Spanner (#333)
- Loading branch information
Showing
492 changed files
with
30,377 additions
and
2,814 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
build/ | ||
composer.phar | ||
composer.lock | ||
docs/json/**/*.json | ||
docs/json/* | ||
vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,31 @@ | ||
language: php | ||
|
||
sudo: required | ||
dist: trusty | ||
|
||
matrix: | ||
include: | ||
- php: 5.5.38 | ||
- php: 5.6.25 | ||
- php: 7.0 | ||
- php: 7.1 | ||
- php: hhvm | ||
group: edge | ||
fast_finish: true | ||
include: | ||
- php: 5.5.38 | ||
- php: 5.6.25 | ||
- php: 7.0 | ||
- php: 7.1 | ||
- php: hhvm | ||
group: edge | ||
fast_finish: true | ||
|
||
before_script: | ||
- pecl install grpc || echo 'Failed to install grpc' | ||
- composer install | ||
- pecl install grpc || echo 'Failed to install grpc' | ||
- composer install | ||
|
||
script: | ||
- ./dev/sh/tests | ||
- vendor/bin/phpcs --standard=./phpcs-ruleset.xml | ||
- ./dev/sh/build-docs | ||
- ./dev/sh/tests | ||
- vendor/bin/phpcs --standard=./phpcs-ruleset.xml | ||
- ./dev/sh/build-docs | ||
|
||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) | ||
- ./dev/sh/push-docs | ||
- bash <(curl -s https://codecov.io/bash) | ||
- ./dev/sh/push-docs | ||
- ./dev/sh/trigger-split | ||
- cat ./build/snippets-uncovered.json | ||
|
||
after_failure: | ||
- echo "SNIPPET COVERAGE REPORT" && cat ./build/snippets-uncovered.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,8 +55,8 @@ | |
"james-heinrich/getid3": "^1.9", | ||
"erusev/parsedown": "^1.6", | ||
"vierbergenlars/php-semver": "^3.0", | ||
"google/proto-client-php": "^0.7", | ||
"google/gax": "^0.6" | ||
"google/proto-client-php": "^0.9", | ||
"google/gax": "^0.8" | ||
}, | ||
"suggest": { | ||
"google/gax": "Required to support gRPC", | ||
|
@@ -72,9 +72,18 @@ | |
"psr-4": { | ||
"Google\\Cloud\\Dev\\": "dev/src", | ||
"Google\\Cloud\\Tests\\System\\": "tests/system" | ||
} | ||
}, | ||
"files": ["dev/src/Functions.php"] | ||
}, | ||
"scripts": { | ||
"google-cloud": "dev/google-cloud" | ||
}, | ||
"extra": { | ||
"component": { | ||
"id": "google-cloud", | ||
"target": "[email protected]:jdpedrie-gcp/google-cloud-php.git", | ||
"path": "src", | ||
"entry": "ServiceBuilder.php" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
mkdir $ | ||
export GOPATH=$TRAVIS_BUILD_DIR/go | ||
|
||
go get -d github.com/libgit2/git2go | ||
cd $GOPATH/src/github.com/libgit2/git2go | ||
git checkout next | ||
git submodule update --init | ||
make install | ||
|
||
go get github.com/splitsh/lite | ||
go build -o $TRAVIS_BUILD_DIR/splitsh-lite github.com/splitsh/lite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,20 +2,11 @@ | |
|
||
set -ev | ||
|
||
function generateDocs () { | ||
echo "doc dir before generation:" | ||
find docs | ||
composer google-cloud docs | ||
echo "doc dir after generation:" | ||
find docs | ||
} | ||
|
||
function pushDocs () { | ||
git submodule add -q -f -b gh-pages https://${GH_OAUTH_TOKEN}@github.com/${GH_OWNER}/${GH_PROJECT_NAME} ghpages | ||
mkdir -p ghpages/json/${1} | ||
cp -R docs/json/master/* ghpages/json/${1} | ||
cp docs/overview.html ghpages/json/${1} | ||
cp docs/toc.json ghpages/json/${1} | ||
git submodule add -q -f -b gh-pages https://${GH_OAUTH_TOKEN}@github.com/${TRAVIS_REPO_SLUG} ghpages | ||
|
||
rsync -aP docs/json/* ghpages/json/ | ||
|
||
cp docs/home.html ghpages/json | ||
cp docs/manifest.json ghpages | ||
cd ghpages | ||
|
@@ -25,7 +16,7 @@ function pushDocs () { | |
git config user.email "[email protected]" | ||
git commit -m "Updating docs for ${1}" | ||
git status | ||
git push -q https://${GH_OAUTH_TOKEN}@github.com/${GH_OWNER}/${GH_PROJECT_NAME} HEAD:gh-pages | ||
git push -q https://${GH_OAUTH_TOKEN}@github.com/${TRAVIS_REPO_SLUG} HEAD:gh-pages | ||
else | ||
echo "Nothing to commit." | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p') | ||
|
||
SHA=`$TRAVIS_BUILD_DIR/splitsh-lite --prefix=$1` | ||
git push -q \ | ||
"https://${GH_OAUTH_TOKEN}@github.com/$2" \ | ||
$SHA:master --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
if [[ "$TRAVIS_JOB_NUMBER" == *.1 && -n "$TRAVIS_TAG" ]]; then | ||
$(dirname $0)/compile-splitsh | ||
git fetch --unshallow | ||
composer google-cloud split | ||
else | ||
echo "Split occurs only in a tag run, and in the first matrix build" | ||
fi |
Oops, something went wrong.