This repository has been archived by the owner on Oct 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow individual packages for stackdriver integration (#351)
* Allow individual packages for stackdriver integration * CS fix * Added an integration test with individual packages.
- Loading branch information
Takashi Matsuo
authored
Aug 18, 2017
1 parent
5c63342
commit f9b66c2
Showing
18 changed files
with
298 additions
and
30 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
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
6 changes: 6 additions & 0 deletions
6
builder/gen-dockerfile/tests/test_data/stackdriver_individual/app.yaml
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,6 @@ | ||
env: flex | ||
runtime: php | ||
|
||
runtime_config: | ||
enable_stackdriver_integration: true | ||
document_root: web |
6 changes: 6 additions & 0 deletions
6
builder/gen-dockerfile/tests/test_data/stackdriver_individual/composer.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"require": { | ||
"google/cloud-logging": "^1.3.1", | ||
"google/cloud-error-reporting": "^0.4.1" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
builder/gen-dockerfile/tests/test_data/stackdriver_old_er/app.yaml
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,6 @@ | ||
env: flex | ||
runtime: php | ||
|
||
runtime_config: | ||
enable_stackdriver_integration: true | ||
document_root: web |
6 changes: 6 additions & 0 deletions
6
builder/gen-dockerfile/tests/test_data/stackdriver_old_er/composer.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"require": { | ||
"google/cloud-logging": "^1.4.1", | ||
"google/cloud-error-reporting": "^0.3.0" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
builder/gen-dockerfile/tests/test_data/stackdriver_old_logging/app.yaml
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,6 @@ | ||
env: flex | ||
runtime: php | ||
|
||
runtime_config: | ||
enable_stackdriver_integration: true | ||
document_root: web |
6 changes: 6 additions & 0 deletions
6
builder/gen-dockerfile/tests/test_data/stackdriver_old_logging/composer.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"require": { | ||
"google/cloud-logging": "^1.2.0", | ||
"google/cloud-error-reporting": "^0.4.1" | ||
} | ||
} |
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
2 changes: 2 additions & 0 deletions
2
php-base/stackdriver-files/stackdriver-errorreporting-individual.ini
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,2 @@ | ||
# Automatic error reporting | ||
auto_prepend_file='/app/vendor/google/cloud-error-reporting/prepend.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Integration Application | ||
|
||
This application can be used for the common Cloud Languages Runtime | ||
Integration Framework. It is primarily used to test Stackdriver | ||
integration with individual packages; `google/cloud-logging` and | ||
`google/cloud-error-reporting`. | ||
|
||
## Tests | ||
|
||
See [Tests](https://github.com/GoogleCloudPlatform/runtimes-common/blob/master/integration_tests/README.md#tests). | ||
|
||
## Authentication | ||
|
||
This application uses Application Default Credentials to authenticate. |
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,6 @@ | ||
runtime: php | ||
env: flex | ||
|
||
runtime_config: | ||
document_root: web | ||
enable_stackdriver_integration: true |
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,7 @@ | ||
steps: | ||
- name: gcr.io/cloud-builders/docker | ||
args: ['build', '-t', '${IMAGE}', '.'] | ||
- name: gcr.io/gcp-runtimes/structure_test | ||
args: ['-i', '${IMAGE}', '--config', 'php_default.yaml', '-v'] | ||
- name: gcr.io/gcp-runtimes/integration_test | ||
args: ['-i', '${IMAGE}', '--no-monitoring', '--no-exception'] |
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,21 @@ | ||
{ | ||
"autoload": { | ||
"psr-4": { | ||
"Google\\Cloud\\Integration\\": ["src", "test/lib"] | ||
} | ||
}, | ||
"require": { | ||
"php": "5.6.*|7.0.*|7.1.*", | ||
"silex/silex": "^1.3", | ||
"google/cloud-logging": "^1.3.1", | ||
"google/cloud-error-reporting": "^0.4.1" | ||
}, | ||
"require-dev": { | ||
"behat/mink": "^1.7", | ||
"behat/mink-goutte-driver": "^1.2", | ||
"phpunit/phpunit": "~4", | ||
"symfony/browser-kit": "^3.0", | ||
"symfony/http-kernel": "^3.0", | ||
"google/cloud-tools": "^0.6" | ||
} | ||
} |
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,6 @@ | ||
schema_version: 1 | ||
|
||
runtimes: | ||
php: | ||
target: | ||
file: test.yaml |
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,7 @@ | ||
steps: | ||
- name: '${STAGING_BUILDER_IMAGE}' | ||
args: ['--php71-image', 'gcr.io/google-appengine/php71:staging', '--php70-image', 'gcr.io/google-appengine/php70:staging', '--php56-image', 'gcr.io/google-appengine/php56:staging'] | ||
- name: 'gcr.io/cloud-builders/docker:latest' | ||
args: ['build', '-t', '$_OUTPUT_IMAGE', '.'] | ||
images: | ||
- '$_OUTPUT_IMAGE' |
Oops, something went wrong.