forked from matomo-org/device-detector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (32 loc) · 949 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
language: php
php:
- 7.2
- 7.3
- 7.4
dist: bionic
sudo: false
services:
- memcached
stages:
- test
- test with coverage
before_install:
- phpenv config-rm xdebug.ini || echo "xdebug not available"
install:
- composer install
- composer require doctrine/cache ~1.2
script: vendor/bin/phpunit --no-coverage
jobs:
allow_failures:
- php: nightly
include:
- php: nightly
install:
- travis_retry composer install --ignore-platform-reqs
- composer require doctrine/cache ~1.2 --ignore-platform-reqs
- stage: test with coverage
php: 7.2
before_install:
before_script: mkdir -p build/logs
script: vendor/bin/phpunit --coverage-clover build/logs/clover.xml --coverage-text
after_success: wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.1.0/php-coveralls.phar && php -n php-coveralls.phar --verbose --coverage_clover=build/logs/clover.xml