Skip to content

Commit efcebfe

Browse files
committed
Travis CI configuration
1 parent 2c544ab commit efcebfe

3 files changed

Lines changed: 36 additions & 0 deletions

File tree

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.gitattributes export-ignore
22
.gitignore export-ignore
3+
/.travis.yml export-ignore
34
/build export-ignore
45
/build.xml export-ignore
56
/tests

.travis.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
language: php
2+
3+
sudo: false
4+
5+
php:
6+
- 7.0
7+
- 7.1
8+
- nightly
9+
- hhvm
10+
11+
env:
12+
- # default environment without variables
13+
- COMPOSER_DEPENDENCIES_OPTIONS="--prefer-lowest --prefer-stable"
14+
15+
matrix:
16+
fast_finish: true
17+
allow_failures:
18+
- php: nightly
19+
- php: hhvm
20+
21+
before_install:
22+
- composer self-update
23+
24+
install:
25+
- composer update --no-interaction --prefer-source --ignore-platform-reqs $COMPOSER_DEPENDENCIES_OPTIONS
26+
27+
script:
28+
- bin/phing ci-build

build.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@
2525
tests
2626
"/>
2727

28+
<target name="ci-build" depends="
29+
composer-validate,
30+
phplint,
31+
cs,
32+
tests
33+
"/>
34+
2835
<target name="composer" depends="composer-validate">
2936
<exec
3037
executable="${path.composer.executable}"

0 commit comments

Comments
 (0)