From 1241d47a7b8a4e4ef5b7e47e47759a51b769b21a Mon Sep 17 00:00:00 2001 From: Alexis von Glasow Date: Wed, 15 Mar 2017 09:08:25 +0100 Subject: [PATCH] CI: Set up Travis. --- .travis.yml | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 4 ++-- 2 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..2fbf815 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,60 @@ +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: "AAAAB3NzaC1yc2EAAAADAQABAAAAgQCecwgg2D4ihDiYD9Af7hU7oroL108l1BJaxZ9N0GXmoaJj3JOHKjXgUjizhma5nftXRBJOcIhT4GsLAnFeNKgJv/97cAvm7miHeTLYPOiOpkrf/Zl7UIQ0MKSX91YKdneAGRDFaY0Tq5B9KjK68vu0Cof35h+cf59Ld3hTzrGPZw==" + +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: + - sudo apt-get update + - sudo apt-get install unicode -y + - 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 + diff --git a/README.md b/README.md index c934a74..1c3e10f 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ ---

- Build status - Code coverage + Build status + Code coverage Packagist License