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

Commit bf5a95d

Browse files
committed
CI: Set up Travis.
1 parent 311a733 commit bf5a95d

File tree

2 files changed

+59
-2
lines changed

2 files changed

+59
-2
lines changed

.travis.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
language: php
2+
3+
matrix:
4+
include:
5+
- php: 5.5
6+
- php: 5.6
7+
- php: 7.0
8+
- php: 7.1
9+
env:
10+
- ENABLE_XDEBUG=true
11+
- php: 7.1
12+
env:
13+
- ENABLE_DEVTOOLS=true
14+
- php: nightly
15+
- php: hhvm-3.12
16+
sudo: required
17+
dist: trusty
18+
group: edge
19+
- php: hhvm
20+
sudo: required
21+
dist: trusty
22+
group: edge
23+
allow_failures:
24+
- php: nightly
25+
- php: hhvm-3.12
26+
- php: hhvm
27+
fast_finish: true
28+
29+
os:
30+
- linux
31+
32+
notifications:
33+
irc: "chat.freenode.net#hoaproject"
34+
35+
sudo: false
36+
37+
env:
38+
global:
39+
- secure: "AAAAB3NzaC1yc2EAAAADAQABAAAAgQCxKrtTeNpY5CbooNy+9/zGaVFNHzVNHmnW2EM7FvimRgCohHHUX7l8MW/0wVSRcvq/WT6PcHBJ73U5CPdBQHHsNBQDuHWTkhLFYNX+E2NkfZRRdIHi76zZv9u6xtTUuosVbGh5cxDDw0owtSgO+xjzzGvZQSlhChy+Z0kcA9pNqQ=="
40+
41+
cache:
42+
directories:
43+
- vendor/
44+
45+
before_script:
46+
- export PATH="$PATH:$HOME/.composer/vendor/bin"
47+
- if [[ ! $ENABLE_XDEBUG ]]; then
48+
phpenv config-rm xdebug.ini || echo "ext-xdebug is not available, cannot remove it.";
49+
fi
50+
51+
script:
52+
- composer install
53+
- vendor/bin/hoa test:run
54+
- if [[ $ENABLE_DEVTOOLS ]]; then
55+
composer global require friendsofphp/php-cs-fixer;
56+
vendor/bin/hoa devtools:cs --diff --dry-run .;
57+
fi

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
---
66

77
<p align="center">
8-
<a href="https://travis-ci.org/hoaproject/math"><img src="https://img.shields.io/travis/hoaproject/math/master.svg" alt="Build status" /></a>
9-
<a href="https://coveralls.io/github/hoaproject/math?branch=master"><img src="https://img.shields.io/coveralls/hoaproject/math/master.svg" alt="Code coverage" /></a>
8+
<a href="https://travis-ci.org/hoaproject/Math"><img src="https://img.shields.io/travis/hoaproject/Math/master.svg" alt="Build status" /></a>
9+
<a href="https://coveralls.io/github/hoaproject/Math?branch=master"><img src="https://img.shields.io/coveralls/hoaproject/Math/master.svg" alt="Code coverage" /></a>
1010
<a href="https://packagist.org/packages/hoa/math"><img src="https://img.shields.io/packagist/dt/hoa/math.svg" alt="Packagist" /></a>
1111
<a href="https://hoa-project.net/LICENSE"><img src="https://img.shields.io/packagist/l/hoa/math.svg" alt="License" /></a>
1212
</p>

0 commit comments

Comments
 (0)