aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2017-03-13 15:08:44 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2017-03-13 15:08:44 +0100
commit09ffefc42cd64ef05471633705df42e90fcfec6f (patch)
treedfc09f262c5e565ed1aa2d9a02c3f8ec85cab520
parent8304ad16a9857d76cc775ce7445439fcf6720c66 (diff)
downloadGraph-09ffefc42cd64ef05471633705df42e90fcfec6f.zip
Graph-09ffefc42cd64ef05471633705df42e90fcfec6f.tar.gz
Graph-09ffefc42cd64ef05471633705df42e90fcfec6f.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..30241fa
--- /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: "AAAAB3NzaC1yc2EAAAADAQABAAAAgQDLHtjDgygD/VkpGNUjUlwGDC1GHHx20eIdNwtxDdX5wS1Yt9OsAph4gUUJA+M2DAZEb6hETZ3tKojbEIrTF86c07yUWqerZ4+GfHdhAkrM3EQPDHxdoKRyoBOt45NnNlDqUuPDePDLauDxEwCUPGLNIf4IclAZbbJFPaeXsmaujw=="
+
+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 81541f0..5d1046f 100644
--- a/README.md
+++ b/README.md
@@ -5,8 +5,8 @@
---
<p align="center">
- <a href="https://travis-ci.org/hoaproject/graph"><img src="https://img.shields.io/travis/hoaproject/graph/master.svg" alt="Build status" /></a>
- <a href="https://coveralls.io/github/hoaproject/graph?branch=master"><img src="https://img.shields.io/coveralls/hoaproject/graph/master.svg" alt="Code coverage" /></a>
+ <a href="https://travis-ci.org/hoaproject/Graph"><img src="https://img.shields.io/travis/hoaproject/Graph/master.svg" alt="Build status" /></a>
+ <a href="https://coveralls.io/github/hoaproject/Graph?branch=master"><img src="https://img.shields.io/coveralls/hoaproject/Graph/master.svg" alt="Code coverage" /></a>
<a href="https://packagist.org/packages/hoa/graph"><img src="https://img.shields.io/packagist/dt/hoa/graph.svg" alt="Packagist" /></a>
<a href="https://hoa-project.net/LICENSE"><img src="https://img.shields.io/packagist/l/hoa/graph.svg" alt="License" /></a>
</p>