2012-05-24 02:20:15 +02:00
|
|
|
language: php
|
|
|
|
|
|
|
|
php:
|
|
|
|
- 5.2
|
2013-01-15 02:51:10 +01:00
|
|
|
- 5.3.3
|
2012-05-24 02:20:15 +02:00
|
|
|
- 5.3
|
|
|
|
- 5.4
|
2013-01-15 16:54:51 +01:00
|
|
|
- 5.5
|
2012-05-24 02:20:15 +02:00
|
|
|
|
2013-01-14 00:40:30 +01:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
# Defines CODE_COVERAGE_PASSPHRASE which is the passphrase for unlocking
|
|
|
|
# the tests/code_coverage_id_rsa RSA private key.
|
|
|
|
- secure: "jtQTZKQBnzUlp/jz7NlM6470ZDnLGVAs53sgvIm4tcYqf9TWSXSXjIYvFsrS\nKPR2eyZaAevYysUkIGRFTUXTlG6tC36YngMp9+6FPxASl8mnGXsTbKcm613B\n59vD3242pgIgqhhmgFQ0c8gbvnE8PuF2aS4/hluP3r+AxhWN56E="
|
|
|
|
|
2013-01-12 03:03:07 +01:00
|
|
|
before_script:
|
|
|
|
- git clone git://github.com/zenovich/runkit.git && cd runkit && phpize && ./configure && make && make install && cd ..
|
|
|
|
- echo "extension=runkit.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
|
2013-11-23 20:38:11 +01:00
|
|
|
- composer install --dev --no-interaction
|
2013-01-12 03:03:07 +01:00
|
|
|
|
2012-05-24 02:20:15 +02:00
|
|
|
script:
|
2013-11-23 21:02:23 +01:00
|
|
|
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.5' ]; then vendor/bin/phpcs -s --extensions=php --standard=tests/code_sniffer_ruleset.xml phpseclib/; fi"
|
2013-01-16 15:07:39 +01:00
|
|
|
- phpunit --verbose --coverage-text --coverage-html code_coverage/
|
2013-01-14 00:40:30 +01:00
|
|
|
|
|
|
|
after_success:
|
|
|
|
- sh -c "if $TRAVIS_SECURE_ENV_VARS; then tests/code_coverage_upload.sh; fi"
|