-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.travis.yml
46 lines (39 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
language: php
cache:
apt: true
directories:
- $HOME/.composer/cache
sudo: false
env:
global:
- setup=basic
install:
- if [[ $setup = 'nightly' ]]; then COMPOSER_MEMORY_LIMIT=-1 travis_retry composer update --prefer-dist --no-interaction --no-suggest --ignore-platform-reqs; fi
- if [[ $setup = 'basic' ]]; then COMPOSER_MEMORY_LIMIT=-1 travis_retry composer update --prefer-dist --no-interaction --no-suggest; fi
- if [[ $setup = 'lowest' ]]; then COMPOSER_MEMORY_LIMIT=-1 travis_retry composer update --prefer-lowest --prefer-dist --no-interaction --no-suggest; fi
script:
- vendor/bin/phpunit --verbose --coverage-clover=coverage.xml --coverage-text
after_success:
- if [[ $coverage = 'true' ]]; then bash <(curl -s https://codecov.io/bash); fi
matrix:
include:
- php: '5.3'
dist: precise
env: setup=lowest
- php: '5.3'
dist: precise
- php: '5.4'
dist: trusty
- php: '5.5'
dist: trusty
- php: '5.6'
- php: '7.0'
- php: '7.1'
- php: '7.2'
- php: '7.3'
env: coverage=true
- php: nightly
env: setup=nightly
allow_failures:
- php: nightly
env: setup=nightly