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

Commit e34fa32

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

File tree

2 files changed

+78
-2
lines changed

2 files changed

+78
-2
lines changed

.travis.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
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+
- sudo apt-get update
48+
- sudo apt-get install -y locales
49+
- echo "Europe/Paris" > /etc/timezone
50+
- sudo dpkg-reconfigure -f noninteractive tzdata
51+
- echo -e 'LANG=fr_FR.UTF-8' > /etc/default/locale
52+
- dpkg-reconfigure -f noninteractive locales
53+
- tail -n +6 /etc/locale.gen | sed -e 's/#/ /' >> /tmp/locale.gen
54+
- mv /tmp/locale.gen /etc/locale.gen
55+
- locale-gen
56+
- if [[ ! $ENABLE_XDEBUG ]]; then
57+
phpenv config-rm xdebug.ini || echo "ext-xdebug is not available, cannot remove it.";
58+
fi
59+
60+
script:
61+
- composer install
62+
- vendor/bin/hoa test:run
63+
- if [[ $ENABLE_DEVTOOLS ]]; then
64+
composer global require friendsofphp/php-cs-fixer;
65+
vendor/bin/hoa devtools:cs --diff --dry-run .;
66+
fi
67+
68+
addons:
69+
apt:
70+
packages:
71+
- unicode
72+
- unicode-data
73+
- ttf-ancient-fonts
74+
- xfonts-efont-unicode
75+
- unifont
76+
- 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)