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

Commit 27f847b

Browse files
committed
CI: Set up Travis.
1 parent e6326e2 commit 27f847b

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

.travis.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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: "AAAAB3NzaC1yc2EAAAADAQABAAAAgQCP/MRQTkDEQdlnhiVbW5dl3dSPBI8KO0EkCLRJ8mEOJ6gm9VH0yy2IyiBuGa+Oyj+cbdKkASN4B/nMvPS+POG9Qd+z9aSmgYZd1ZwVbmu1r0ag53qhQAiodLudzBpjS3RA0MJyX3IJu7HdMNo8qhx0M9WF+vGkcOAYqbsifakO8Q=="
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+

0 commit comments

Comments
 (0)