2012-05-24 00:20:15 +00:00
|
|
|
language: php
|
|
|
|
|
|
|
|
php:
|
2013-01-15 01:51:10 +00:00
|
|
|
- 5.3.3
|
2012-05-24 00:20:15 +00:00
|
|
|
- 5.3
|
|
|
|
- 5.4
|
2013-01-15 15:54:51 +00:00
|
|
|
- 5.5
|
2014-02-13 21:50:04 +00:00
|
|
|
- 5.6
|
2013-12-15 19:17:50 +00:00
|
|
|
- hhvm
|
2012-05-24 00:20:15 +00:00
|
|
|
|
2013-01-13 23:40:30 +00:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
# Defines CODE_COVERAGE_PASSPHRASE which is the passphrase for unlocking
|
2014-01-22 02:26:42 +00:00
|
|
|
# the travis/code_coverage_id_rsa RSA private key.
|
2013-01-13 23:40:30 +00:00
|
|
|
- secure: "jtQTZKQBnzUlp/jz7NlM6470ZDnLGVAs53sgvIm4tcYqf9TWSXSXjIYvFsrS\nKPR2eyZaAevYysUkIGRFTUXTlG6tC36YngMp9+6FPxASl8mnGXsTbKcm613B\n59vD3242pgIgqhhmgFQ0c8gbvnE8PuF2aS4/hluP3r+AxhWN56E="
|
|
|
|
|
2013-01-12 02:03:07 +00:00
|
|
|
before_script:
|
2014-03-03 00:43:58 +00:00
|
|
|
- travis/setup-secure-shell.sh
|
2014-01-22 02:43:52 +00:00
|
|
|
- sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then travis/install-php-extensions.sh; fi"
|
2013-11-23 20:08:37 +00:00
|
|
|
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.5' ]; then composer install --dev --no-interaction; fi"
|
2013-01-12 02:03:07 +00:00
|
|
|
|
2012-05-24 00:20:15 +00:00
|
|
|
script:
|
2014-02-15 17:51:09 +00:00
|
|
|
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.5' ]; then vendor/bin/phpcs -s --extensions=php --standard=build/code-sniffer-ruleset.xml phpseclib/; fi"
|
2014-02-15 18:57:49 +00:00
|
|
|
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.5' ]; then vendor/bin/phpcs -s --extensions=php --standard=build/code-sniffer-ruleset-tests.xml tests/; fi"
|
2014-03-03 01:10:01 +00:00
|
|
|
- travis/run-phpunit.sh
|
2013-01-13 23:40:30 +00:00
|
|
|
|
|
|
|
after_success:
|
2014-01-22 02:26:42 +00:00
|
|
|
- sh -c "if $TRAVIS_SECURE_ENV_VARS; then travis/upload-code-coverage.sh; fi"
|