From d3c8825df3f0cd29d1d5fc37c7b9fa90b89ada2c Mon Sep 17 00:00:00 2001 From: Alexis von Glasow Date: Wed, 15 Mar 2017 09:08:25 +0100 Subject: [PATCH 1/2] CI: Set up Travis. --- .travis.yml | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 4 +-- 2 files changed, 72 insertions(+), 2 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..1eaf4f4 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,70 @@ +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: + - 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 + +addons: + apt: + packages: + - unicode + - unicode-data + - ttf-ancient-fonts + - xfonts-efont-unicode + - unifont + - ttf-unifont + - locales + - language-pack-en + - language-pack-fr 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

From c3f83a6dc6c2e91f5b4bb36bf2b53995ea29c60e Mon Sep 17 00:00:00 2001 From: Alexis von Glasow Date: Fri, 27 Oct 2017 14:33:34 +0200 Subject: [PATCH 2/2] fixup! CI: Set up Travis. --- .travis.yml | 2 ++ custom.ini | 1 + 2 files changed, 3 insertions(+) create mode 100644 custom.ini diff --git a/.travis.yml b/.travis.yml index 1eaf4f4..409c69a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -44,12 +44,14 @@ cache: before_script: - export PATH="$PATH:$HOME/.composer/vendor/bin" + - phpenv config-add custom.ini - if [[ ! $ENABLE_XDEBUG ]]; then phpenv config-rm xdebug.ini || echo "ext-xdebug is not available, cannot remove it."; fi script: - composer install + - php -i | grep 'ICU version' - vendor/bin/hoa test:run - if [[ $ENABLE_DEVTOOLS ]]; then composer global require friendsofphp/php-cs-fixer; diff --git a/custom.ini b/custom.ini new file mode 100644 index 0000000..b90acbd --- /dev/null +++ b/custom.ini @@ -0,0 +1 @@ +extension = "intl.so"