diff options
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..0ae9e38 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,57 @@ +language: php + +matrix: + include: + - php: 5.5 + - php: 5.6 + - php: 7.0 + - php: 7.1 + env: + - ENABLE_XDEBUG=true + - php: 7.1 + env: + - ENABLE_DEVTOOLS=true + - php: nightly + - php: hhvm-3.12 + sudo: required + dist: trusty + group: edge + - php: hhvm + sudo: required + dist: trusty + group: edge + allow_failures: + - php: nightly + - php: hhvm-3.12 + - php: hhvm + fast_finish: true + +os: + - linux + +notifications: + irc: "chat.freenode.net#hoaproject" + +sudo: false + +env: + global: + - secure: "AAAAB3NzaC1yc2EAAAADAQABAAAAgQCB0ZlM6bWhDfQFoPg+V4sVWeJuE876exyxggbf7Ots8Gxn2PqLlN3p/bUcicloqb59u0xP4lPRmq9qvIVVti+x9xpz8qJBVbk0wLTGqidbZdJEhCFxyxYzRBdgiTboOcw5wnfTq5YB10GN0MZFL98AIL7EHev1Mq4KmOR6QsK2Mw==" + +cache: + directories: + - vendor/ + +before_script: + - export PATH="$PATH:$HOME/.composer/vendor/bin" + - if [[ ! $ENABLE_XDEBUG ]]; then + phpenv config-rm xdebug.ini || echo "ext-xdebug is not available, cannot remove it."; + fi + +script: + - composer install + - vendor/bin/hoa test:run + - if [[ $ENABLE_DEVTOOLS ]]; then + composer global require friendsofphp/php-cs-fixer; + vendor/bin/hoa devtools:cs --diff --dry-run .; + fi |