Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update images and enable leak detection, and split tests in CI to Unit, Integration and Web #299

Merged
merged 17 commits into from
Mar 8, 2019
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
412 changes: 167 additions & 245 deletions .circleci/config.yml

Large diffs are not rendered by default.

13 changes: 8 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,22 @@ x-aliases:
- .scenarios.lock:/home/circleci/app/.scenarios.lock

services:
'5.4-debug': { <<: *base_php_service, build: 'dockerfiles/debug_php-5.4' }
'5.4-debug': { <<: *base_php_service, image: 'datadog/docker-library:ddtrace_alpine_php-5.4-debug' }
'5.4': { <<: *base_php_service, image: 'datadog/docker-library:ddtrace_php_5_4' }
'5.6': { <<: *base_56_service, image: 'datadog/docker-library:ddtrace_php_5_6' }
'5.6-zts': { <<: *base_56_service, image: 'circleci/php:5.6-zts' }
'5.6-debug': { <<: *base_56_service, build: 'dockerfiles/debug_php-5.6' }
'5.6-debug': { <<: *base_php_service, image: 'datadog/docker-library:ddtrace_alpine_php-5.6-debug' }
'5.6-zts': { <<: *base_56_service, image: 'datadog/docker-library:ddtrace_alpine_php-5.6-zts' }
'7.0': { <<: *base_php_service, image: 'datadog/docker-library:ddtrace_php_7_0' }
'7.0-debug': { <<: *base_php_service, image: 'datadog/docker-library:ddtrace_alpine_php-7.0-debug' }
'7.1': { <<: *base_php_service, image: 'datadog/docker-library:ddtrace_php_7_1' }
'7.1-debug': { <<: *base_php_service, image: 'datadog/docker-library:ddtrace_alpine_php-7.1-debug' }
'ubuntu-16.04-7.1': { <<: *base_php_service, build: 'dockerfiles/ubuntu-16.04-php-7.1' }
'ubuntu-18.04-7.2': { <<: *base_php_service, build: 'dockerfiles/ubuntu-18.04-php-7.2' }
'7.2': { <<: *base_php_service, image: 'datadog/docker-library:ddtrace_php_7_2' }
'7.2-debug': { <<: *base_php_service, build: 'dockerfiles/debug_php-7.2' }
'7.2-debug': { <<: *base_php_service, image: 'datadog/docker-library:ddtrace_alpine_php-7.2-debug' }
'7.1-centos-compiled': { <<: *base_php_service, build: 'dockerfiles/verify_packages/centos7-compiled' }

'7.3-debug': { <<: *base_php_service, image: 'datadog/docker-library:ddtrace_alpine_php-7.3-debug' }
'7.3-zts-debug': { <<: *base_php_service, image: 'datadog/docker-library:ddtrace_alpine_php-7.3-zts-debug' }
'fpm': { <<: *base_php_service, image: 'circleci/ruby:2.5', depends_on: [] }

mysql_integration:
Expand Down
90 changes: 0 additions & 90 deletions dockerfiles/debug_php-5.4/Dockerfile

This file was deleted.

85 changes: 0 additions & 85 deletions dockerfiles/debug_php-5.6/Dockerfile

This file was deleted.

78 changes: 0 additions & 78 deletions dockerfiles/debug_php-7.2/Dockerfile

This file was deleted.

89 changes: 0 additions & 89 deletions dockerfiles/php-5.4/Dockerfile

This file was deleted.

8 changes: 8 additions & 0 deletions src/ext/backtrace.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if defined(__GLIBC__) || defined(__APPLE__)
#include <execinfo.h>
#include <php.h>
#include <signal.h>
Expand Down Expand Up @@ -49,3 +50,10 @@ void ddtrace_install_backtrace_handler(TSRMLS_D) {
handler_installed = 1;
}
}
#else
void ddtrace_install_backtrace_handler(TSRMLS_D) {
#ifdef ZTS
UNUSED(TSRML_C);
#endif // ZTS
}
#endif // GLIBC
2 changes: 2 additions & 0 deletions src/ext/backtrace.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#ifndef DD_BACKTRACE_H
#define DD_BACKTRACE_H
#define MAX_STACK_SIZE 1024
#if defined(__GLIBC__) || defined(__APPLE__)
void ddtrace_backtrace_handler(int sig);
#endif
void ddtrace_install_backtrace_handler(TSRMLS_D);

#endif // DD_BACKTRACE_H
Loading