File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444 script:
4545 - if [ -d '/opt/rh/devtoolset-7' ]; then set +eo pipefail; source scl_source enable devtoolset-7; set -eo pipefail; fi
4646 - if [ -d '/opt/rh/devtoolset-7' ] && [ "$(uname -m)" = "aarch64" ]; then export BINDGEN_EXTRA_CLANG_ARGS="-I$(clang --print-resource-dir)/include"; fi
47+ - if [ -f /sbin/apk ] && [ $(uname -m) = "aarch64" ]; then ln -sf ../lib/llvm17/bin/clang /usr/bin/clang; fi
48+ - export DD_PROFILING_OUTPUT_PPROF=/tmp/
4749
4850 - cd profiling
4951 - 'echo "nproc: $(nproc)"'
113115 - switch-php nts # not compatible with debug
114116 - cd profiling
115117 - cargo test --all-features
118+
119+ "PHP language tests":
120+ stage: test
121+ tags: [ "arch:${ARCH}" ]
122+ image: registry.ddbuild.io/images/mirror/datadog/dd-trace-ci:php-${PHP_MAJOR_MINOR}_buster
123+ variables:
124+ KUBERNETES_CPU_REQUEST: 5
125+ KUBERNETES_MEMORY_REQUEST: 3Gi
126+ KUBERNETES_MEMORY_LIMIT: 4Gi
127+ CARGO_TARGET_DIR: /tmp/cargo
128+ libdir: /tmp/datadog-profiling
129+ SKIP_ONLINE_TEST: "1"
130+ REPORT_EXIT_STATUS: "1"
131+ DD_PROFILING_OUTPUT_PPROF: /tmp/
132+ XFAIL_LIST: dockerfiles/ci/xfail_tests/${PHP_MAJOR_MINOR}.list
133+ parallel:
134+ matrix:
135+ - PHP_MAJOR_MINOR: *all_profiler_targets
136+ ARCH: amd64
137+ FLAVOUR: [nts, zts]
138+ script:
139+ - unset DD_SERVICE; unset DD_ENV; env
140+
141+ - command -v switch-php && switch-php "${FLAVOUR}"
142+ - cd profiling
143+ - cargo build --release --all-features
144+ - cd ..
145+ - echo "extension=/tmp/cargo/release/libdatadog_php_profiling.so" > /opt/php/${FLAVOUR}/conf.d/profiling.ini
146+ - php -v
147+ - .gitlab/run_php_language_tests.sh
You can’t perform that action at this time.
0 commit comments