aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2017-03-08 08:58:58 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2017-03-08 08:58:58 +0100
commitd43c2c06bf0e8f4a30638427df7a764cbf37fdfd (patch)
tree0a782657d146f7d41582066eb0b76b6682e0099d
parentb0913b784157d6414654df5ecd77f2d9f866078c (diff)
downloadConsole-d43c2c06bf0e8f4a30638427df7a764cbf37fdfd.zip
Console-d43c2c06bf0e8f4a30638427df7a764cbf37fdfd.tar.gz
Console-d43c2c06bf0e8f4a30638427df7a764cbf37fdfd.tar.bz2
CI: Set up Travis.
-rw-r--r--.travis.yml57
-rw-r--r--README.md4
2 files changed, 59 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..a9adbfd
--- /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: "AAAAB3NzaC1yc2EAAAADAQABAAAAgQCIakvIVS1WjvgR+RNL7Aqmd6c5sgzW1rx2afvQlnTdhowy6npaOB+YyGnwlQj0N6XsU4LBjsycwCCW9jufyxBMH0FXJsaDiLQ8cI6CYWiHyEr28FDHVJbtyoclwWGOd273L5185DSisVo73RQeCZmuWiCDHEt8MGSQUs8/e5ySbw=="
+
+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
diff --git a/README.md b/README.md
index 9cdb65c..a8152e8 100644
--- a/README.md
+++ b/README.md
@@ -5,8 +5,8 @@
---
<p align="center">
- <a href="https://travis-ci.org/hoaproject/console"><img src="https://img.shields.io/travis/hoaproject/console/master.svg" alt="Build status" /></a>
- <a href="https://coveralls.io/github/hoaproject/console?branch=master"><img src="https://img.shields.io/coveralls/hoaproject/console/master.svg" alt="Code coverage" /></a>
+ <a href="https://travis-ci.org/hoaproject/Console"><img src="https://img.shields.io/travis/hoaproject/Console/master.svg" alt="Build status" /></a>
+ <a href="https://coveralls.io/github/hoaproject/Console?branch=master"><img src="https://img.shields.io/coveralls/hoaproject/Console/master.svg" alt="Code coverage" /></a>
<a href="https://packagist.org/packages/hoa/console"><img src="https://img.shields.io/packagist/dt/hoa/console.svg" alt="Packagist" /></a>
<a href="https://hoa-project.net/LICENSE"><img src="https://img.shields.io/packagist/l/hoa/console.svg" alt="License" /></a>
</p>