-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
52 lines (41 loc) · 1.16 KB
/
.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
43
44
45
46
47
48
49
50
51
52
branches:
only:
- master
language: php
dist: trusty
php:
- 7.4
- 8.0
- nightly
env:
global:
- PATH="$HOME/.composer/vendor/bin:$PATH"
matrix:
fast_finish: true
include:
- php: 7.4
env: COMPOSER_FLAGS="--prefer-lowest"
- php: 7.4
env: COMPOSER_VERSION=1.*
- php: 8.0
env: COMPOSER_VERSION=2.*@dev
- php: 8.0
env: COMPOSER_VERSION=dev-master
allow_failures:
- php: nightly
- env: COMPOSER_VERSION=dev-master
sudo: false
cache:
directories:
- $HOME/.composer/cache/files
before_install:
- echo "memory_limit=4096M" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- composer global require 'phpunit/phpunit:>=4.0, <6' satooshi/php-coveralls:@stable codeclimate/php-test-reporter:@stable --no-update
- if [ "$COMPOSER_VERSION" != "" ]; then composer require "composer/composer:${COMPOSER_VERSION}" --no-update; fi;
install:
- composer global update --prefer-dist --no-interaction
- composer update --prefer-dist --no-interaction $COMPOSER_FLAGS
script: phpunit -c phpunit.xml.dist --coverage-clover build/logs/clover.xml
after_script:
- coveralls -v
- test-reporter