aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2017-03-14 09:44:30 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2017-03-14 09:44:30 +0100
commit98199af6fbbd5fc5280861043127b94e1fce5e91 (patch)
tree62a2a78e87569831c1bee28d418ca768f20333d6
parent42742abfa8f2917a03751c2d17e1d98dd6c6b3bf (diff)
downloadSocket-98199af6fbbd5fc5280861043127b94e1fce5e91.zip
Socket-98199af6fbbd5fc5280861043127b94e1fce5e91.tar.gz
Socket-98199af6fbbd5fc5280861043127b94e1fce5e91.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..9c2f27e
--- /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: "AAAAB3NzaC1yc2EAAAADAQABAAAAgQDWT5GFT7ofL21HTaZfJhX7MeMTV0vQODPwS4VXl0v8rrc7pHrOHaDQjnP70Lyvn9Nsgkje+DIPklayG6SD6Q/vaBgvmAeOK4fa0B/8I5Om5OvRHCruUnEKWlOC3uwxsEh2+iNaBTkzFTMhPUBsPAx4o64ccGBdj+FwvoIPTR7Q4w=="
+
+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 ca95f29..cc2c703 100644
--- a/README.md
+++ b/README.md
@@ -5,8 +5,8 @@
---
<p align="center">
- <a href="https://travis-ci.org/hoaproject/socket"><img src="https://img.shields.io/travis/hoaproject/socket/master.svg" alt="Build status" /></a>
- <a href="https://coveralls.io/github/hoaproject/socket?branch=master"><img src="https://img.shields.io/coveralls/hoaproject/socket/master.svg" alt="Code coverage" /></a>
+ <a href="https://travis-ci.org/hoaproject/Socket"><img src="https://img.shields.io/travis/hoaproject/Socket/master.svg" alt="Build status" /></a>
+ <a href="https://coveralls.io/github/hoaproject/Socket?branch=master"><img src="https://img.shields.io/coveralls/hoaproject/Socket/master.svg" alt="Code coverage" /></a>
<a href="https://packagist.org/packages/hoa/socket"><img src="https://img.shields.io/packagist/dt/hoa/socket.svg" alt="Packagist" /></a>
<a href="https://hoa-project.net/LICENSE"><img src="https://img.shields.io/packagist/l/hoa/socket.svg" alt="License" /></a>
</p>