-
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.
* Reorganize namespaces and fix tests * # This is a combination of 9 commits. # This is the 1st commit message: Reorganize namespaces and fix tests Update component versions via the CLI # This is the commit message #2: Create tags in components # This is the commit message #3: Send component name and version in user agent # This is the commit message #4: Add README files # This is the commit message #5: Fix CLI # This is the commit message #6: Add split to travis # This is the commit message #7: Test datastore release # This is the commit message #8: Compile splitsh # This is the commit message #9: Reintroduce full split process * # This is a combination of 2 commits. # This is the 1st commit message: Reorganize namespaces and fix tests Update component versions via the CLI Create tags in components Send component name and version in user agent Add README files Fix CLI Add split to travis Test datastore release Compile splitsh Reintroduce full split process Release patches # This is the commit message #2: Run split in each build matrix * Reorganize namespaces and fix tests Update component versions via the CLI Create tags in components Send component name and version in user agent Add README files Fix CLI Add split to travis Test datastore release Compile splitsh Reintroduce full split process Release patches Run split in each build matrix Release datastore patch enable set -e * Work with github API directly * Fix Vision class reference * Create VERSION file for all components * Remove componentName * Fix int64 snippet tests * Update component release target * Parse documentation separately for each component * This works now * Add flag to docs to use JSON_PRETTY_PRINT for debugging * Parse correct links between components * Fix unit tests * Doc links within component should not change version * Cross-component links should go to the correct version docs * Update snippets to remove refs to ServiceBuilder * Remove unnecessary env vars * Don't write VERSION for parent * Release packages * release v0.24.1 * Add autoloaders to each component * Pass libVersion to gax config * Update push docs command * add gcsUri helper * allow gcsUri or storage object * Release 0.24.2 * Update things again * this is the worst * Link to upstream tag * tag * Update table of contents * Reset versions * Update suggests and requires * fix build docs trigger * dont throw exceptions on decode * Fix docs link * Fix various doc issues * fix namespace
- Loading branch information
Showing
300 changed files
with
4,638 additions
and
1,319 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 |
---|---|---|
@@ -1,30 +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 | ||
- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,5 +76,13 @@ | |
}, | ||
"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 |
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
Oops, something went wrong.