X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=.travis.yml;h=aa43ef0cd7e56bc102d2dfce5df993d2af26c159;hp=296407fdd26b5af678deec232b2c30f393ef87dc;hb=e7ce3fd45d17058f92ce219a34e560226cf72231;hpb=4822c94ec2704ec8cdf95105485554cca05b2df3 diff --git a/.travis.yml b/.travis.yml index 296407f..aa43ef0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,15 +3,31 @@ language: c addons: postgresql: "9.3" +env: + global: + - BUILD_SRC_DIR=/src + - BUILD_INSTALL_DIR=/install + - PHP_EXTENSIONS="--enable-json --with-mhash" + - PG_TEST_DB_NAME=pq_test + - PG_TEST_DB_USER=postgres + - REPORT_EXIT_STATUS=1 + matrix: + - PHP_TARGET_REF=PHP-5.4 PHP_CONFIGURE_OPTS="" + - PHP_TARGET_REF=PHP-5.4 PHP_CONFIGURE_OPTS="--enable-maintainer-zts" + - PHP_TARGET_REF=PHP-5.5 PHP_CONFIGURE_OPTS="" + - PHP_TARGET_REF=PHP-5.5 PHP_CONFIGURE_OPTS="--enable-maintainer-zts" + - PHP_TARGET_REF=PHP-5.6 PHP_CONFIGURE_OPTS="" + - PHP_TARGET_REF=PHP-5.6 PHP_CONFIGURE_OPTS="--enable-maintainer-zts" + before_install: - sudo apt-get update -qq - sudo apt-get install -qq libpq-dev before_script: - - sudo ./travis/compile-php.sh - - sudo ./travis/compile-raphf.sh - - sudo ./travis/compile-ext.sh - - sudo ./travis/configure-postgres.sh + - ./travis/compile-php.sh + - ./travis/compile-ext-raphf.sh + - ./travis/compile-ext-pq.sh + - ./travis/configure-postgres.sh script: - - REPORT_EXIT_STATUS=1 $HOME/bin/php ./run-tests.php -p $HOME/bin/php --show-diff + - $HOME$BUILD_INSTALL_DIR/bin/php ./run-tests.php -q -p $HOME$BUILD_INSTALL_DIR/bin/php --show-diff