2018-03-02 17:01:54 +01:00
|
|
|
#!/usr/bin/env php
|
|
|
|
# autogenerated file; do not edit
|
|
|
|
language: c
|
|
|
|
sudo: false
|
|
|
|
|
|
|
|
addons:
|
|
|
|
postgresql: 9.4
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- php5-cli
|
|
|
|
- php-pear
|
|
|
|
- valgrind
|
|
|
|
|
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
- clang
|
|
|
|
|
2018-03-02 17:03:02 +01:00
|
|
|
cache:
|
|
|
|
directories:
|
2018-03-02 21:20:05 +01:00
|
|
|
- $HOME/cache
|
2018-03-05 16:52:52 +01:00
|
|
|
|
|
|
|
before_cache:
|
|
|
|
- find $HOME/cache -name '*.gcda' -o -name '*.gcno' -delete
|
|
|
|
|
2018-03-02 17:01:54 +01:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- PQ_DSN="postgres://postgres@localhost/test"
|
|
|
|
matrix:
|
|
|
|
<?php
|
|
|
|
|
|
|
|
$gen = include "./travis/pecl/gen-matrix.php";
|
|
|
|
$cur = "7.2";
|
|
|
|
$env = $gen([
|
|
|
|
"PHP" => ["7.0", "7.1", "master"],
|
|
|
|
"enable_debug" => "yes",
|
|
|
|
"enable_maintainer_zts" => "yes",
|
|
|
|
"enable_json" => "yes",
|
|
|
|
], [
|
|
|
|
"PHP" => $cur,
|
|
|
|
"enable_json" => "no",
|
|
|
|
], [
|
|
|
|
"PHP" => $cur,
|
|
|
|
"enable_json" => "yes",
|
|
|
|
"enable_debug",
|
|
|
|
"enable_maintainer_zts"
|
|
|
|
], [
|
|
|
|
"PHP" => $cur,
|
|
|
|
"enable_json" => "yes",
|
|
|
|
"CFLAGS" => "'-O0 -g --coverage'",
|
|
|
|
"CXXFLAGS" => "'-O0 -g --coverage'",
|
|
|
|
]);
|
|
|
|
|
|
|
|
foreach ($env as $g) {
|
|
|
|
foreach ($g as $e) {
|
|
|
|
printf(" - %s\n", $e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
install:
|
|
|
|
- make -f travis/pecl/Makefile php
|
|
|
|
- make -f travis/pecl/Makefile pecl PECL=raphf:raphf:2.0.0
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- psql -U postgres -c "CREATE DATABASE test"
|
|
|
|
|
|
|
|
script:
|
|
|
|
- make -f travis/pecl/Makefile ext PECL=pq
|
|
|
|
- make -f travis/pecl/Makefile test
|
|
|
|
|
|
|
|
after_success:
|
|
|
|
- test -n "$CFLAGS" && cd src/.libs && bash <(curl -s https://codecov.io/bash) -X xcode -X coveragepy
|