aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2017-03-15 09:43:56 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2017-03-15 09:43:56 +0100
commite250a654a2054a12b4f0da13e8d25160ca0b9f24 (patch)
treef1c8ed38ae1cc9ff44beeefba01cd7c72135745c
parent7a2a2e08c07583fd67fc63d074e527459a9f71d4 (diff)
downloadMime-e250a654a2054a12b4f0da13e8d25160ca0b9f24.zip
Mime-e250a654a2054a12b4f0da13e8d25160ca0b9f24.tar.gz
Mime-e250a654a2054a12b4f0da13e8d25160ca0b9f24.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..eba7943
--- /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: "AAAAB3NzaC1yc2EAAAADAQABAAAAgQCpiJZvbPFVMNHXER0s14OeT0SXBFLzDMW4NMWOZMwJ2XnbrLC76ILCfwTr7ejI3AhFuhst0PO1RLGh697ZWBZkTO0LumjGUAfWUTN1yFylqQQYamVv8umLcZ1CE3p43l31M3fjI/L+HQ5AkNyScOaFRJ6qBVl4vrLpme1EhtxXtQ=="
+
+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 21957c1..7cd64dc 100644
--- a/README.md
+++ b/README.md
@@ -5,8 +5,8 @@
---
<p align="center">
- <a href="https://travis-ci.org/hoaproject/mime"><img src="https://img.shields.io/travis/hoaproject/mime/master.svg" alt="Build status" /></a>
- <a href="https://coveralls.io/github/hoaproject/mime?branch=master"><img src="https://img.shields.io/coveralls/hoaproject/mime/master.svg" alt="Code coverage" /></a>
+ <a href="https://travis-ci.org/hoaproject/Mime"><img src="https://img.shields.io/travis/hoaproject/Mime/master.svg" alt="Build status" /></a>
+ <a href="https://coveralls.io/github/hoaproject/Mime?branch=master"><img src="https://img.shields.io/coveralls/hoaproject/Mime/master.svg" alt="Code coverage" /></a>
<a href="https://packagist.org/packages/hoa/mime"><img src="https://img.shields.io/packagist/dt/hoa/mime.svg" alt="Packagist" /></a>
<a href="https://hoa-project.net/LICENSE"><img src="https://img.shields.io/packagist/l/hoa/mime.svg" alt="License" /></a>
</p>