Skip to content
This repository was archived by the owner on Mar 5, 2022. It is now read-only.

Commit f64a929

Browse files
author
Florian Krämer
committed
Adding travis
1 parent 69f98a1 commit f64a929

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.travis.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
language: php
2+
3+
php:
4+
- 5.6
5+
- 7.0
6+
7+
matrix:
8+
allow_failures:
9+
- php: 7.0
10+
11+
fast_finish: true
12+
13+
include:
14+
- php: 5.6
15+
env:
16+
- COVERALLS=1
17+
18+
before_script:
19+
- composer self-update
20+
- composer install --prefer-dist --no-interaction
21+
- sh -c "if [ '$COVERALLS' = '1' ]; then composer require --dev satooshi/php-coveralls:dev-master; fi"
22+
- sh -c "if [ '$COVERALLS' = '1' ]; then mkdir -p build/logs; fi"
23+
24+
script:
25+
- phpunit
26+
- sh -c "if [ '$COVERALLS' = '1' ]; then phpunit --stderr --coverage-clover build/logs/clover.xml; fi"
27+
- sh -c "if [ '$COVERALLS' = '1' ]; then php vendor/bin/coveralls -c .coveralls.yml -v; fi"
28+
29+
notifications:
30+
email: false

0 commit comments

Comments
 (0)