This repository has been archived by the owner on Jan 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix compiler error for compile_ast Make the extension compatible with newer versions of php Convert final steps of docker build into a script Change `whitelist` to `allowed ` Make unit tests compatible with latest version of phpunit Add configuration for app engine project id Update CircleCI configuration Maintain backwards compat. for zval str dtor Make warning/notify tests backwards compatible Prevent seg fault when iterating logpoints in `ast_process` Install gcloud tools for Dockerfile using apt Remove memory leaks when creating debugger ast Update string assertions in phpunit tests Refactor Dockerfile to handle env vars needed for test build Add substitutions to cloudbuild Update php image versions used by cloudbuild Set cloud build timeout to 2100 seconds
- Loading branch information
1 parent
bfc88af
commit f855707
Showing
32 changed files
with
738 additions
and
460 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# PHP CircleCI 2.0 configuration file | ||
# | ||
# Check https://circleci.com/docs/2.0/language-php/ for more details | ||
# | ||
version: 2.1 | ||
jobs: | ||
build: | ||
docker: | ||
- image: google/cloud-sdk | ||
auth: | ||
username: $DOCKERHUB_USER | ||
password: $DOCKERHUB_PASSWORD | ||
|
||
steps: | ||
- checkout | ||
- run: | ||
name: "Setup Environment" | ||
command: | | ||
echo 'export APPENGINE_PROJECT_ID="${APPENGINE_PROJECT_ID}"' >> $BASH_ENV | ||
echo 'export GOOGLE_PROJECT_ID="${GOOGLE_PROJECT_ID}"' >> $BASH_ENV | ||
echo 'export GOOGLE_COMPUTE_REGION="${GOOGLE_COMPUTE_REGION}"' >> $BASH_ENV | ||
echo 'export GOOGLE_APPLICATION_CREDENTIALS=`echo ${GOOGLE_CREDENTIALS_BASE64} | base64 -di`' >> $BASH_ENV | ||
apt-get update -y | ||
apt-get -y --only-upgrade install google-cloud-sdk-kubectl-oidc google-cloud-sdk google-cloud-sdk-kpt google-cloud-sdk-cloud-build-local | ||
gcloud --quiet config configurations create ${CLOUDSDK_ACTIVE_CONFIG_NAME} | ||
gcloud --quiet config set project ${GOOGLE_PROJECT_ID} | ||
echo $GOOGLE_CREDENTIALS_BASE64 | base64 -di | gcloud auth activate-service-account --key-file=- | ||
gcloud --quiet config set compute/region ${GOOGLE_COMPUTE_REGION} | ||
- run: | ||
name: "Run Tests" | ||
command: ./scripts/run_test_suite.sh |
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
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,19 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
if [ -z "${BUILD_DIR}" ]; then | ||
BUILD_DIR='/build' | ||
fi | ||
|
||
export BUILD_DIR | ||
export BUILD_LOG_DIR='/build/log' | ||
mkdir -p ${BUILD_DIR} ${BUILD_LOG_DIR} | ||
|
||
phpize && \ | ||
./configure --enable-stackdriver-debugger && \ | ||
make clean && \ | ||
make && \ | ||
make test || ((find . -name '*.diff' | xargs cat) && false) && \ | ||
make install && \ | ||
(composer -V || scripts/install_composer.sh) && \ | ||
scripts/run_functional_tests.sh |
This file was deleted.
Oops, something went wrong.
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,38 +1,157 @@ | ||
# This cloudbuild.yaml is used to test the php extension against multiple versions of php | ||
steps: | ||
- name: gcr.io/cloud-builders/docker | ||
args: ['build', '--build-arg', 'BASE_IMAGE=php:7.1', '.'] | ||
id: php71-nts | ||
- name: gcr.io/cloud-builders/docker | ||
args: ['build', '--build-arg', 'BASE_IMAGE=php:7.1-zts', '.'] | ||
id: php71-zts | ||
- name: gcr.io/cloud-builders/docker | ||
args: ['build', '--build-arg', 'BASE_IMAGE=php:7.0', '.'] | ||
id: php70-nts | ||
- name: gcr.io/cloud-builders/docker | ||
args: ['build', '--build-arg', 'BASE_IMAGE=php:7.0-zts', '.'] | ||
id: php70-zts | ||
- name: gcr.io/cloud-builders/docker | ||
args: ['build', '--build-arg', 'BASE_IMAGE=php:7.2', '.'] | ||
id: php72-nts | ||
- name: gcr.io/cloud-builders/docker | ||
args: ['build', '--build-arg', 'BASE_IMAGE=php:7.2-zts', '.'] | ||
id: php72-zts | ||
- name: gcr.io/cloud-builders/docker | ||
args: ['build', '--build-arg', 'BASE_IMAGE=gcr.io/google-appengine/php72', '.'] | ||
id: php72-gae | ||
- name: gcr.io/cloud-builders/docker | ||
args: ['build', '--build-arg', 'BASE_IMAGE=gcr.io/google-appengine/php71', '.'] | ||
id: php71-gae | ||
- name: gcr.io/cloud-builders/docker | ||
args: ['build', '--build-arg', 'BASE_IMAGE=gcr.io/google-appengine/php70', '.'] | ||
id: php70-gae | ||
- name: gcr.io/cloud-builders/docker | ||
args: ['build', '--build-arg', 'BASE_IMAGE=gcr.io/php-stackdriver/php71-debug', '.'] | ||
id: php71-debug | ||
- name: gcr.io/cloud-builders/docker | ||
args: ['build', '--build-arg', 'BASE_IMAGE=gcr.io/php-stackdriver/php71-32bit', '.'] | ||
id: php71-32bit | ||
- name: gcr.io/cloud-builders/docker | ||
args: ['build', '--build-arg', 'BASE_IMAGE=gcr.io/php-stackdriver/php70-32bit', '.'] | ||
id: php70-32bit | ||
- name: gcr.io/cloud-builders/docker | ||
args: | ||
- 'build' | ||
- '--build-arg' | ||
- 'BASE_IMAGE=gcr.io/${_APPENGINE_PROJECT_ID}/php80' | ||
- '--build-arg' | ||
- 'GOOGLE_CREDENTIALS_BASE64=${_GOOGLE_CREDENTIALS_BASE64}' | ||
- '--build-arg' | ||
- 'CLOUDSDK_ACTIVE_CONFIG_NAME=${_CLOUDSDK_ACTIVE_CONFIG_NAME}' | ||
- '--build-arg' | ||
- 'GOOGLE_PROJECT_ID=${_GOOGLE_PROJECT_ID}' | ||
- '--build-arg' | ||
- 'PHP_DOCKER_GOOGLE_CREDENTIALS=${_PHP_DOCKER_GOOGLE_CREDENTIALS}' | ||
- '.' | ||
id: php80-gae | ||
- name: gcr.io/cloud-builders/docker | ||
args: | ||
- 'build' | ||
- '--build-arg' | ||
- 'BASE_IMAGE=gcr.io/${_APPENGINE_PROJECT_ID}/php74' | ||
- '--build-arg' | ||
- 'GOOGLE_CREDENTIALS_BASE64=${_GOOGLE_CREDENTIALS_BASE64}' | ||
- '--build-arg' | ||
- 'CLOUDSDK_ACTIVE_CONFIG_NAME=${_CLOUDSDK_ACTIVE_CONFIG_NAME}' | ||
- '--build-arg' | ||
- 'GOOGLE_PROJECT_ID=${_GOOGLE_PROJECT_ID}' | ||
- '--build-arg' | ||
- 'PHP_DOCKER_GOOGLE_CREDENTIALS=${_PHP_DOCKER_GOOGLE_CREDENTIALS}' | ||
- '.' | ||
id: php74-gae | ||
- name: gcr.io/cloud-builders/docker | ||
args: | ||
- 'build' | ||
- '--build-arg' | ||
- 'BASE_IMAGE=gcr.io/${_APPENGINE_PROJECT_ID}/php73' | ||
- '--build-arg' | ||
- 'GOOGLE_CREDENTIALS_BASE64=${_GOOGLE_CREDENTIALS_BASE64}' | ||
- '--build-arg' | ||
- 'CLOUDSDK_ACTIVE_CONFIG_NAME=${_CLOUDSDK_ACTIVE_CONFIG_NAME}' | ||
- '--build-arg' | ||
- 'GOOGLE_PROJECT_ID=${_GOOGLE_PROJECT_ID}' | ||
- '--build-arg' | ||
- 'PHP_DOCKER_GOOGLE_CREDENTIALS=${_PHP_DOCKER_GOOGLE_CREDENTIALS}' | ||
- '.' | ||
id: php73-gae | ||
- name: gcr.io/cloud-builders/docker | ||
args: | ||
- 'build' | ||
- '--build-arg' | ||
- 'BASE_IMAGE=php:8.0' | ||
- '--build-arg' | ||
- 'GOOGLE_CREDENTIALS_BASE64=${_GOOGLE_CREDENTIALS_BASE64}' | ||
- '--build-arg' | ||
- 'CLOUDSDK_ACTIVE_CONFIG_NAME=${_CLOUDSDK_ACTIVE_CONFIG_NAME}' | ||
- '--build-arg' | ||
- 'GOOGLE_PROJECT_ID=${_GOOGLE_PROJECT_ID}' | ||
- '--build-arg' | ||
- 'PHP_DOCKER_GOOGLE_CREDENTIALS=${_PHP_DOCKER_GOOGLE_CREDENTIALS}' | ||
- '.' | ||
id: php80-nts | ||
- name: gcr.io/cloud-builders/docker | ||
args: | ||
- 'build' | ||
- '--build-arg' | ||
- 'BASE_IMAGE=php:8.0-zts' | ||
- '--build-arg' | ||
- 'GOOGLE_CREDENTIALS_BASE64=${_GOOGLE_CREDENTIALS_BASE64}' | ||
- '--build-arg' | ||
- 'CLOUDSDK_ACTIVE_CONFIG_NAME=${_CLOUDSDK_ACTIVE_CONFIG_NAME}' | ||
- '--build-arg' | ||
- 'GOOGLE_PROJECT_ID=${_GOOGLE_PROJECT_ID}' | ||
- '--build-arg' | ||
- 'PHP_DOCKER_GOOGLE_CREDENTIALS=${_PHP_DOCKER_GOOGLE_CREDENTIALS}' | ||
- '.' | ||
id: php80-zts | ||
- name: gcr.io/cloud-builders/docker | ||
args: | ||
- 'build' | ||
- '--build-arg' | ||
- 'BASE_IMAGE=php:7.4' | ||
- '--build-arg' | ||
- 'GOOGLE_CREDENTIALS_BASE64=${_GOOGLE_CREDENTIALS_BASE64}' | ||
- '--build-arg' | ||
- 'CLOUDSDK_ACTIVE_CONFIG_NAME=${_CLOUDSDK_ACTIVE_CONFIG_NAME}' | ||
- '--build-arg' | ||
- 'GOOGLE_PROJECT_ID=${_GOOGLE_PROJECT_ID}' | ||
- '--build-arg' | ||
- 'PHP_DOCKER_GOOGLE_CREDENTIALS=${_PHP_DOCKER_GOOGLE_CREDENTIALS}' | ||
- '.' | ||
id: php74-nts | ||
- name: gcr.io/cloud-builders/docker | ||
args: | ||
- 'build' | ||
- '--build-arg' | ||
- 'BASE_IMAGE=php:7.4-zts' | ||
- '--build-arg' | ||
- 'GOOGLE_CREDENTIALS_BASE64=${_GOOGLE_CREDENTIALS_BASE64}' | ||
- '--build-arg' | ||
- 'CLOUDSDK_ACTIVE_CONFIG_NAME=${_CLOUDSDK_ACTIVE_CONFIG_NAME}' | ||
- '--build-arg' | ||
- 'GOOGLE_PROJECT_ID=${_GOOGLE_PROJECT_ID}' | ||
- '--build-arg' | ||
- 'PHP_DOCKER_GOOGLE_CREDENTIALS=${_PHP_DOCKER_GOOGLE_CREDENTIALS}' | ||
- '.' | ||
id: php74-zts | ||
- name: gcr.io/cloud-builders/docker | ||
args: | ||
- 'build' | ||
- '--build-arg' | ||
- 'BASE_IMAGE=php:7.3' | ||
- '--build-arg' | ||
- 'GOOGLE_CREDENTIALS_BASE64=${_GOOGLE_CREDENTIALS_BASE64}' | ||
- '--build-arg' | ||
- 'CLOUDSDK_ACTIVE_CONFIG_NAME=${_CLOUDSDK_ACTIVE_CONFIG_NAME}' | ||
- '--build-arg' | ||
- 'GOOGLE_PROJECT_ID=${_GOOGLE_PROJECT_ID}' | ||
- '--build-arg' | ||
- 'PHP_DOCKER_GOOGLE_CREDENTIALS=${_PHP_DOCKER_GOOGLE_CREDENTIALS}' | ||
- '.' | ||
id: php73-nts | ||
- name: gcr.io/cloud-builders/docker | ||
args: | ||
- 'build' | ||
- '--build-arg' | ||
- 'BASE_IMAGE=php:7.3-zts' | ||
- '--build-arg' | ||
- 'GOOGLE_CREDENTIALS_BASE64=${_GOOGLE_CREDENTIALS_BASE64}' | ||
- '--build-arg' | ||
- 'CLOUDSDK_ACTIVE_CONFIG_NAME=${_CLOUDSDK_ACTIVE_CONFIG_NAME}' | ||
- '--build-arg' | ||
- 'GOOGLE_PROJECT_ID=${_GOOGLE_PROJECT_ID}' | ||
- '--build-arg' | ||
- 'PHP_DOCKER_GOOGLE_CREDENTIALS=${_PHP_DOCKER_GOOGLE_CREDENTIALS}' | ||
- '.' | ||
id: php73-zts | ||
- name: gcr.io/cloud-builders/docker | ||
args: | ||
- 'build' | ||
- '--build-arg' | ||
- 'BASE_IMAGE=gcr.io/php-stackdriver/php71-debug' | ||
- '--build-arg' | ||
- 'GOOGLE_CREDENTIALS_BASE64=${_GOOGLE_CREDENTIALS_BASE64}' | ||
- '--build-arg' | ||
- 'CLOUDSDK_ACTIVE_CONFIG_NAME=${_CLOUDSDK_ACTIVE_CONFIG_NAME}' | ||
- '--build-arg' | ||
- 'GOOGLE_PROJECT_ID=${_GOOGLE_PROJECT_ID}' | ||
- '--build-arg' | ||
- 'PHP_DOCKER_GOOGLE_CREDENTIALS=${_PHP_DOCKER_GOOGLE_CREDENTIALS}' | ||
- '.' | ||
id: php71-debug | ||
timeout: 2100s | ||
substitutions: | ||
_PHP_DOCKER_GOOGLE_CREDENTIALS: /build/gcp-creds.json | ||
_APPENGINE_PROJECT_ID: google-appengine | ||
_CLOUDSDK_ACTIVE_CONFIG_NAME: default | ||
_GOOGLE_PROJECT_ID: $PROJECT_ID |
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.