aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2017-03-24 13:55:15 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2017-03-24 13:55:15 +0100
commit94b47f95e1ba533f4f3263fb9e42021e8275ebd6 (patch)
tree81a1d595fdb5e0bfe2d8f7ea307d238fd0ad97be
parentd811ae0315e29caabc3f79b9658009ae89b8c426 (diff)
downloadZombie-94b47f95e1ba533f4f3263fb9e42021e8275ebd6.zip
Zombie-94b47f95e1ba533f4f3263fb9e42021e8275ebd6.tar.gz
Zombie-94b47f95e1ba533f4f3263fb9e42021e8275ebd6.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..29c6dcf
--- /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: "AAAAB3NzaC1yc2EAAAADAQABAAAAgQC8pyH+AhD98yAuYJPLqhJbutiqsOmlXmsZ8c3i0/ck4a709Dgn8FjlzpUdbauLAkiXyoD7byp8UxAwkZU24KLDEmFbhJ1oR7JNvbWiFnKgHthfFKa/TyfxLT7Z/1/K9H7pmdziiwwDBJNyQKgD0uWSToZv8rnyldYndBB1FtcRvw=="
+
+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 0fca9fb..89a55e4 100644
--- a/README.md
+++ b/README.md
@@ -5,8 +5,8 @@
---
<p align="center">
- <a href="https://travis-ci.org/hoaproject/zombie"><img src="https://img.shields.io/travis/hoaproject/zombie/master.svg" alt="Build status" /></a>
- <a href="https://coveralls.io/github/hoaproject/zombie?branch=master"><img src="https://img.shields.io/coveralls/hoaproject/zombie/master.svg" alt="Code coverage" /></a>
+ <a href="https://travis-ci.org/hoaproject/Zombie"><img src="https://img.shields.io/travis/hoaproject/Zombie/master.svg" alt="Build status" /></a>
+ <a href="https://coveralls.io/github/hoaproject/Zombie?branch=master"><img src="https://img.shields.io/coveralls/hoaproject/Zombie/master.svg" alt="Code coverage" /></a>
<a href="https://packagist.org/packages/hoa/zombie"><img src="https://img.shields.io/packagist/dt/hoa/zombie.svg" alt="Packagist" /></a>
<a href="https://hoa-project.net/LICENSE"><img src="https://img.shields.io/packagist/l/hoa/zombie.svg" alt="License" /></a>
</p>