Skip to content

Commit 3ab9e94

Browse files
committed
Add travis build config
1 parent bf36aa2 commit 3ab9e94

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

.travis.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
language: php
2+
3+
matrix:
4+
fast_finish: true
5+
include:
6+
- php: 7.0
7+
- php: 7.1
8+
- php: 7.2
9+
10+
allow_failures:
11+
- php: 7.2
12+
13+
cache:
14+
directories:
15+
- vendor
16+
- $HOME/.composer/cache
17+
18+
install:
19+
# show versions and env information
20+
- php --version
21+
- composer --version
22+
23+
# disable xdebug for performance reasons
24+
- phpenv config-rm xdebug.ini || echo "xdebug is not installed"
25+
26+
# Install out dependencies
27+
- travis_retry composer self-update
28+
- travis_retry composer install --prefer-source --no-interaction --dev
29+
30+
before_script:
31+
# Enable code coverage
32+
- |
33+
if [ $TASK_TESTS_COVERAGE == 1 ]; then
34+
PHPUNIT_FLAGS="--coverage-clover=$TRAVIS_BUILD_DIR/build/logs/clover.xml"
35+
fi
36+
37+
script:
38+
- vendor/bin/phpunit --verbose $PHPUNIT_FLAGS

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PHP Analytics Events
1+
PHP Analytics Events [![Build Status](https://travis-ci.org/there4/php-analytics-event.svg?branch=master)](https://travis-ci.org/there4/php-analytics-event)
22
================================================================================
33
> Create a Google Analytics Event from PHP
44

0 commit comments

Comments
 (0)