Last active
January 25, 2019 14:18
-
-
Save labbati/80970bd615294137813390ef5bdb8933 to your computer and use it in GitHub Desktop.
Build packages for dd-trace
This file contains hidden or 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
#!/usr/bin/env bash | |
rm -rf extensions | |
mkdir -p extensions | |
rm -rf build/packages | |
mkdir -p build/packages | |
function build_version() { | |
PHP_VERSION=$1 | |
PHP_API=$2 | |
SUFFIX=${3:-''} | |
rm -rf tmp | |
docker run --rm -w /var/app -v $(pwd):/var/app circleci/php:${PHP_VERSION}${SUFFIX} make all CFLAGS="-O2 -Wall -Wextra -Wextra" | |
docker run --rm -w /var/app -v $(pwd):/var/app circleci/php:${PHP_VERSION}${SUFFIX} cp tmp/build_extension/.libs/ddtrace.so extensions/ddtrace-${PHP_API}${SUFFIX}.so | |
} | |
build_version 5.6 20131106 | |
build_version 5.6 20131106 '-zts' | |
build_version 7.0 20151012 | |
build_version 7.0 20151012 '-zts' | |
build_version 7.1 20160303 | |
build_version 7.1 20160303 '-zts' | |
build_version 7.2 20170718 | |
build_version 7.2 20170718 '-zts' | |
docker run --rm -v $(pwd):/var/app datadog/docker-library:php_toolbox make packages |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment