forked from php/pecl-search_engine-solr
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
65 lines (55 loc) · 2.61 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# file generated by gen_travis_yml.php, do not edit!
# use the container infrastructure
sudo: required
services:
- docker
language: c
# use the system's PHP to run this script
addons:
apt:
packages:
- php5-cli
- php-pear
- libxml2-dev
- libcurl4-gnutls-dev
- lcov
install:
- gem install lcoveralls
# now we'll specify the build matrix environment
env:
- PHP=5.4 enable_debug=no enable_maintainer_zts=no enable_libxml=yes enable_json=yes
- PHP=5.5 enable_debug=no enable_maintainer_zts=no enable_libxml=yes enable_json=yes
- PHP=5.6 enable_debug=no enable_maintainer_zts=no enable_libxml=yes enable_json=yes
- PHP=7.0 enable_debug=no enable_maintainer_zts=no enable_libxml=yes enable_json=yes
- PHP=5.4 enable_debug=yes enable_maintainer_zts=no enable_libxml=yes enable_json=yes
- PHP=5.5 enable_debug=yes enable_maintainer_zts=no enable_libxml=yes enable_json=yes
- PHP=5.6 enable_debug=yes enable_maintainer_zts=no enable_libxml=yes enable_json=yes
- PHP=7.0 enable_debug=yes enable_maintainer_zts=no enable_libxml=yes enable_json=yes
- PHP=5.4 enable_debug=no enable_maintainer_zts=yes enable_libxml=yes enable_json=yes
- PHP=5.5 enable_debug=no enable_maintainer_zts=yes enable_libxml=yes enable_json=yes
- PHP=5.6 enable_debug=no enable_maintainer_zts=yes enable_libxml=yes enable_json=yes
- PHP=7.0 enable_debug=no enable_maintainer_zts=yes enable_libxml=yes enable_json=yes
- PHP=5.4 enable_debug=yes enable_maintainer_zts=yes enable_libxml=yes enable_json=yes
- PHP=5.5 enable_debug=yes enable_maintainer_zts=yes enable_libxml=yes enable_json=yes
- PHP=5.6 enable_debug=yes enable_maintainer_zts=yes enable_libxml=yes enable_json=yes
- PHP=7.0 enable_debug=yes enable_maintainer_zts=yes enable_libxml=yes enable_json=yes
before_script:
# build the matrix' PHP version
- make -f travis/pecl/Makefile php
# build the extension, the PECL variable expects the extension name
# and optionally the soname and a specific version of the extension
# separeated by double colon, e.g. PECL=myext:ext:1.7.5
- make -f travis/pecl/Makefile ext PECL=solr
- docker pull omars/solr53
- docker run -d --name solr53 -p 127.0.0.1:8983:8983 -t omars/solr53
- sleep 5
- lcov --directory . -f --zerocounters && lcov --directory . -f --capture --initial --no-external --output-file coverage.info
script:
# run the PHPT test suite
- make -f travis/pecl/Makefile test
after_script:
- lcov --no-checksum --directory . -f --capture --output-file coverage.info && lcov -f --remove coverage.info "/usr/*" -o coverage.info
- lcoveralls -r .
notifications:
email:
- omars@php.net