-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
40 lines (33 loc) · 1.15 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
language: php
php:
- 7.2
- 7.3
- 7.4
- nightly
env:
matrix:
- OPCACHE=0
- OPCACHE=1
before_install:
- alias composer=composer\ -n && composer self-update
- git clone https://github.com/krakjoe/componere $HOME/componere
- cd $HOME/componere
- phpize
- ./configure
- make
- make install
- echo "extension=componere.so" > $HOME/.phpenv/versions/$TRAVIS_PHP_VERSION/etc/conf.d/componere.ini
- echo "variables_order=EGPCS" >> $HOME/.phpenv/versions/$TRAVIS_PHP_VERSION/etc/php.ini
- echo > $HOME/.phpenv/versions/$TRAVIS_PHP_VERSION/etc/conf.d/xdebug.ini
- echo "opcache.optimization_level=0" >> $HOME/.phpenv/versions/$TRAVIS_PHP_VERSION/etc/conf.d/opcache.ini
- echo "opcache.enable_cli=$OPCACHE" >> $HOME/.phpenv/versions/$TRAVIS_PHP_VERSION/etc/conf.d/opcache.ini
- pecl install pcov
- cd $TRAVIS_BUILD_DIR
install:
- composer install --ignore-platform-reqs
before_script:
- mkdir -p build/logs
script:
- php vendor/bin/phpunit --coverage-text --coverage-clover=build/logs/clover.xml
after_success:
- vendor/bin/php-coveralls -v