aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2017-03-15 09:47:40 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2017-03-15 09:47:40 +0100
commit4d9c70d234a81511bc3fdb751275fe66428e8570 (patch)
tree59d72ae8125b44ef718be49c8ce88db7585ffc2a
parent7f9e75a52458c09e9546ee151a34767adf414139 (diff)
downloadRegistry-4d9c70d234a81511bc3fdb751275fe66428e8570.zip
Registry-4d9c70d234a81511bc3fdb751275fe66428e8570.tar.gz
Registry-4d9c70d234a81511bc3fdb751275fe66428e8570.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..1796bf5
--- /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: "AAAAB3NzaC1yc2EAAAADAQABAAAAgQCAqo0v7SqI4ONxtf95JCsoLDy6AX8bPS/oiT2shVvUfrUphcackxIKE7/JQLVTL82dqai1LKl1FZCvHGeaZ6BjbLkbvvotHT4hFjzyx0BhWj7u/JWMsncGdTxSSUzVHiY0SnHe4I9/S6f+zPBiTJJkzJE7x4IUiTleTMASj+8+QQ=="
+
+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 1586402..4f7526f 100644
--- a/README.md
+++ b/README.md
@@ -5,8 +5,8 @@
---
<p align="center">
- <a href="https://travis-ci.org/hoaproject/registry"><img src="https://img.shields.io/travis/hoaproject/registry/master.svg" alt="Build status" /></a>
- <a href="https://coveralls.io/github/hoaproject/registry?branch=master"><img src="https://img.shields.io/coveralls/hoaproject/registry/master.svg" alt="Code coverage" /></a>
+ <a href="https://travis-ci.org/hoaproject/Registry"><img src="https://img.shields.io/travis/hoaproject/Registry/master.svg" alt="Build status" /></a>
+ <a href="https://coveralls.io/github/hoaproject/Registry?branch=master"><img src="https://img.shields.io/coveralls/hoaproject/Registry/master.svg" alt="Code coverage" /></a>
<a href="https://packagist.org/packages/hoa/registry"><img src="https://img.shields.io/packagist/dt/hoa/registry.svg" alt="Packagist" /></a>
<a href="https://hoa-project.net/LICENSE"><img src="https://img.shields.io/packagist/l/hoa/registry.svg" alt="License" /></a>
</p>