Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

Commit

Permalink
CI: Set up Travis.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed Mar 14, 2017
1 parent aca2a14 commit 52ddcf9
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 2 deletions.
57 changes: 57 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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: "AAAAB3NzaC1yc2EAAAADAQABAAAAgQCm+Gv7tjA8X6FAYxCqTpbtx+p2GicFY8aQQW7S9O1hLI8LYY5z/VWx2KTTM53SKY03xkZ+e9g1/yNkIt3YIDML9MWjXO9BQuyWl/X4neKMoXMU9QThNi1+b2e5mcDlLFwPtfSwoho3fa+Otx463IRT5CRT92+Yydd91N7Nr9opeQ=="

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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
---

<p align="center">
<a href="https://travis-ci.org/hoaproject/mail"><img src="https://img.shields.io/travis/hoaproject/mail/master.svg" alt="Build status" /></a>
<a href="https://coveralls.io/github/hoaproject/mail?branch=master"><img src="https://img.shields.io/coveralls/hoaproject/mail/master.svg" alt="Code coverage" /></a>
<a href="https://travis-ci.org/hoaproject/Mail"><img src="https://img.shields.io/travis/hoaproject/Mail/master.svg" alt="Build status" /></a>
<a href="https://coveralls.io/github/hoaproject/Mail?branch=master"><img src="https://img.shields.io/coveralls/hoaproject/Mail/master.svg" alt="Code coverage" /></a>
<a href="https://packagist.org/packages/hoa/mail"><img src="https://img.shields.io/packagist/dt/hoa/mail.svg" alt="Packagist" /></a>
<a href="https://hoa-project.net/LICENSE"><img src="https://img.shields.io/packagist/l/hoa/mail.svg" alt="License" /></a>
</p>
Expand Down

0 comments on commit 52ddcf9

Please sign in to comment.