Skip to content

Commit dec932a

Browse files
authored
Fixes Kokoro Tests (GoogleCloudPlatform#714)
1 parent 0b98954 commit dec932a

File tree

159 files changed

+1390
-150232
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+1390
-150232
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
*~
33
*.iml
44
composer.phar
5+
composer.lock
56
vendor/
67
credentials.*
78
**/vendor/
89
**/build/
910
.php_cs.cache
1011
.vscode/
11-
iap/composer.lock
1212
.kokoro/secrets.sh

.kokoro/docker/Dockerfile.template

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,3 @@ RUN gcloud config set app/promote_by_default false && \
3838
gcloud -q components update
3939

4040
ENTRYPOINT /bin/bash
41-

.kokoro/docker/Makefile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313
.PHONY: all build push php56 php70 php71 php72
14+
15+
all:
16+
make build
17+
make push
18+
1419
php56:
1520
mkdir -p php56
1621
sed -e 's/PHP_VERSION/php56/g' Dockerfile.template > php56/Dockerfile
1722
echo "# Add steps specific to PHP 5.6" >> php56/Dockerfile
18-
echo "RUN apt-get install -y php5-cgi" >> php56/Dockerfile
1923
echo "RUN rm /opt/php56/lib/ext.enabled/ext-memcached.ini" >> php56/Dockerfile
20-
echo "ENV RUN_DEVSERVER_TESTS=true" >> php56/Dockerfile
2124
echo "ENV RUN_CS_FIXER=true\n" >> php56/Dockerfile
2225

2326
php70:
@@ -43,7 +46,3 @@ push:
4346
docker push gcr.io/cloud-devrel-kokoro-resources/php70
4447
docker push gcr.io/cloud-devrel-kokoro-resources/php71
4548
docker push gcr.io/cloud-devrel-kokoro-resources/php72
46-
47-
all:
48-
make build
49-
make push

.kokoro/php56.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@ env_vars: {
55
key: "TRAMPOLINE_IMAGE"
66
value: "gcr.io/cloud-devrel-kokoro-resources/php56"
77
}
8+
9+
# Give the docker image a unique project ID per PHP version
10+
env_vars: {
11+
key: "GOOGLE_ALT_PROJECT_ID"
12+
value: "php-docs-samples-php56"
13+
}

.kokoro/php70.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@ env_vars: {
55
key: "TRAMPOLINE_IMAGE"
66
value: "gcr.io/cloud-devrel-kokoro-resources/php70"
77
}
8+
9+
# Give the docker image a unique project ID per PHP version
10+
env_vars: {
11+
key: "GOOGLE_ALT_PROJECT_ID"
12+
value: "php-docs-samples-php70"
13+
}

.kokoro/php71.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@ env_vars: {
55
key: "TRAMPOLINE_IMAGE"
66
value: "gcr.io/cloud-devrel-kokoro-resources/php71"
77
}
8+
9+
# Give the docker image a unique project ID per PHP version
10+
env_vars: {
11+
key: "GOOGLE_ALT_PROJECT_ID"
12+
value: "php-docs-samples-php71"
13+
}

.kokoro/php72.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@ env_vars: {
55
key: "TRAMPOLINE_IMAGE"
66
value: "gcr.io/cloud-devrel-kokoro-resources/php72"
77
}
8+
9+
# Give the docker image a unique project ID per PHP version
10+
env_vars: {
11+
key: "GOOGLE_ALT_PROJECT_ID"
12+
value: "php-docs-samples-php72"
13+
}

.kokoro/secrets-example.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ export GOOGLE_STORAGE_BUCKET=$GOOGLE_PROJECT_ID
1616
export GOOGLE_CLIENT_ID=
1717
export GOOGLE_CLIENT_SECRET=
1818
export GCLOUD_PROJECT=$GOOGLE_PROJECT_ID
19+
# For running tests in separate projects
20+
export GOOGLE_ALT_PROJECT_ID=$GOOGLE_PROJECT_ID
1921

2022
# AppEngine
2123
export MAILJET_APIKEY=
@@ -96,6 +98,7 @@ export GOOGLE_SPANNER_DATABASE_ID=test-database
9698
# Storage
9799
export GOOGLE_STORAGE_OBJECT=storage/test_data.csv
98100
export GOOGLE_STORAGE_KMS_KEYNAME=projects/$GOOGLE_PROJECT_ID/locations/us/keyRings/$GOOGLE_KMS_KEYRING/cryptoKeys/storage-bucket
101+
export GOOGLE_REQUESTER_PAYS_STORAGE_BUCKET=$GOOGLE_STORAGE_BUCKET
99102

100103
# Tasks
101104
export CLOUD_TASKS_APPENGINE_QUEUE=

.kokoro/secrets.sh.enc

536 Bytes
Binary file not shown.

.travis.yml

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)