summaryrefslogtreecommitdiff
path: root/vendor/aws/aws-crt-php/run_tests
blob: 18b449ae17ac3cd5030c170299c1949d51332b08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash

set -ex

launcher=
if command -v catchsegv; then
    launcher=catchsegv
fi

if [ -z $PHP_BINARY ]; then
    PHP_BINARY=$(which php)
fi

if [ ! -d vendor ]; then
    composer update
fi

$launcher $PHP_BINARY -c php.ini vendor/bin/phpunit tests --debug