forked from php-ug/php.ug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (50 loc) · 1.13 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
53
54
55
56
57
58
59
# Travic-CI-Config file for php.ug
#
language: php
stages:
- check
- test
- coverage
- deploy
php:
- 7.0
- 7.1
- 7.2
- nightly
env:
global:
- COMPOSER_ARGS="--no-interaction --ignore-platform-reqs"
# matrix:
# - DEPS=latest
# - DEPS=locked
# - DEPS=lowest
jobs:
include:
- stage: check
php: 7.2
script:
- composer cs-check
- stage: coverage
if: branch = master AND type = push
php: 7.2
before-install: none
install:
- travis_retry composer require --dev $COMPOSER_ARGS satooshi/php-coveralls
- travis_retry composer install
script: composer test-coverage
after_script: travis_retry composer upload-coverage
matrix:
fast_finish: true
allow_failures:
- php: 7.3
- php: latest
before_install:
- phpenv config-rm xdebug.ini || return 0
- travis_retry composer self-update
install:
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
- travis_retry composer install $COMPOSER_ARGS
- composer show
script:
- composer test