forked from fezfez/php-to-zephir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (32 loc) · 922 Bytes
/
.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
language: php
php:
- 5.4
- 5.5
- 5.6
before_install:
- sudo apt-get install re2c libpcre3-dev
# TODO: fix the Zephir version via Composer
install:
- cd /tmp
- wget https://github.com/json-c/json-c/archive/0eedf3802fad2d41e45eecd92af529440f0d7d3a.zip -O json-c
- unzip -q json-c
- cd json-c-0eedf3802fad2d41e45eecd92af529440f0d7d3a
- sh autogen.sh
- ./configure
- make
- sudo make install
- wget https://github.com/phalcon/zephir/archive/master.zip -O zephir
- unzip -q zephir
- cd zephir-master
- sudo ./install -c
- phpize -v
- cd $TRAVIS_BUILD_DIR
- composer selfupdate
- composer install
before_script:
- ./vendor/bin/phpunit --coverage-clover coverage.clover
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
- zephir build
script: php -dextension=code.so ./vendor/bin/phpunit