File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 36
36
script:
37
37
- if [ -d '/opt/rh/devtoolset-7' ]; then set +eo pipefail; source scl_source enable devtoolset-7; set -eo pipefail; fi
38
38
- if [ -f /sbin/apk ] && [ $(uname -m) = "aarch64" ]; then ln -sf ../lib/llvm17/bin/clang /usr/bin/clang; fi
39
+ - export DD_PROFILING_OUTPUT_PPROF=/tmp/
39
40
40
41
- cd profiling
41
42
- export TEST_PHP_EXECUTABLE=$(which php)
74
75
- sed -i -e "s/crate-type.*$/crate-type = [\"rlib\"]/g" Cargo.toml
75
76
- cargo clippy --all-targets --all-features -- -D warnings -Aunknown-lints
76
77
78
+ "PHP language tests":
79
+ stage: test
80
+ tags: [ "arch:${ARCH}" ]
81
+ image: registry.ddbuild.io/images/mirror/datadog/dd-trace-ci:php-${PHP_MAJOR_MINOR}_buster
82
+ variables:
83
+ KUBERNETES_CPU_REQUEST: 5
84
+ KUBERNETES_MEMORY_REQUEST: 3Gi
85
+ KUBERNETES_MEMORY_LIMIT: 4Gi
86
+ CARGO_TARGET_DIR: /tmp/cargo
87
+ libdir: /tmp/datadog-profiling
88
+ SKIP_ONLINE_TEST: "1"
89
+ REPORT_EXIT_STATUS: "1"
90
+ DD_PROFILING_OUTPUT_PPROF: /tmp/
91
+ XFAIL_LIST: dockerfiles/ci/xfail_tests/${PHP_MAJOR_MINOR}.list
92
+ parallel:
93
+ matrix:
94
+ - PHP_MAJOR_MINOR: *all_profiler_targets
95
+ ARCH: amd64
96
+ FLAVOUR: [nts, zts]
97
+ script:
98
+ - unset DD_SERVICE; unset DD_ENV; env
99
+
100
+ - command -v switch-php && switch-php "${FLAVOUR}"
101
+ - cd profiling
102
+ - cargo build --release --all-features
103
+ - cd ..
104
+ - echo "extension=/tmp/cargo/release/libdatadog_php_profiling.so" > /opt/php/${FLAVOUR}/conf.d/profiling.ini
105
+ - php -v
106
+ - .gitlab/run_php_language_tests.sh
You can’t perform that action at this time.
0 commit comments