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

Commit f4f472e

Browse files
committed
CI: Set up Travis.
1 parent 4743ca8 commit f4f472e

File tree

2 files changed

+69
-2
lines changed

2 files changed

+69
-2
lines changed

.travis.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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: "AAAAB3NzaC1yc2EAAAADAQABAAAAgQCecwgg2D4ihDiYD9Af7hU7oroL108l1BJaxZ9N0GXmoaJj3JOHKjXgUjizhma5nftXRBJOcIhT4GsLAnFeNKgJv/97cAvm7miHeTLYPOiOpkrf/Zl7UIQ0MKSX91YKdneAGRDFaY0Tq5B9KjK68vu0Cof35h+cf59Ld3hTzrGPZw=="
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
58+
59+
addons:
60+
apt:
61+
packages:
62+
- unicode
63+
- unicode-data
64+
- ttf-ancient-fonts
65+
- xfonts-efont-unicode
66+
- unifont
67+
- ttf-unifont

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/ustring"><img src="https://img.shields.io/travis/hoaproject/ustring/master.svg" alt="Build status" /></a>
9-
<a href="https://coveralls.io/github/hoaproject/ustring?branch=master"><img src="https://img.shields.io/coveralls/hoaproject/ustring/master.svg" alt="Code coverage" /></a>
8+
<a href="https://travis-ci.org/hoaproject/Ustring"><img src="https://img.shields.io/travis/hoaproject/Ustring/master.svg" alt="Build status" /></a>
9+
<a href="https://coveralls.io/github/hoaproject/Ustring?branch=master"><img src="https://img.shields.io/coveralls/hoaproject/Ustring/master.svg" alt="Code coverage" /></a>
1010
<a href="https://packagist.org/packages/hoa/ustring"><img src="https://img.shields.io/packagist/dt/hoa/ustring.svg" alt="Packagist" /></a>
1111
<a href="https://hoa-project.net/LICENSE"><img src="https://img.shields.io/packagist/l/hoa/ustring.svg" alt="License" /></a>
1212
</p>

0 commit comments

Comments
 (0)