forked from paratestphp/paratest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (49 loc) · 1.85 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
language: php
sudo: false
cache:
directories:
- $HOME/.composer/
matrix:
fast_finish: true
include:
- php: 7.2
env:
- DEPS=lowest
- php: 7.2
env:
- PHPUNIT_DEV=true
- php: 7.2
- php: 7.3
env:
- DEPS=lowest
- php: 7.3
env:
- PHPUNIT_DEV=true
- php: 7.3
- php: nightly
allow_failures:
- php: nightly
install:
- if [[ $CS_CHECK == 'true' ]]; then phpenv config-rm xdebug.ini || return 0; else composer remove --dev --no-update --no-scripts friendsofphp/php-cs-fixer; fi;
- if [[ $PHPUNIT_DEV == 'true' ]]; then composer require --no-update phpunit/phpunit=*@dev; fi;
- if [[ $DEPS == 'lowest' ]]; then COMPOSER_ARGS='--prefer-lowest --prefer-stable'; fi; composer update --no-interaction --prefer-dist $COMPOSER_ARGS
- if [[ $BUILD_PHAR == 'true' ]]; then wget https://github.com/humbug/box/releases/download/3.7.0/box.phar; fi;
script:
- if [[ $CS_CHECK == 'true' ]]; then vendor/bin/php-cs-fixer fix --diff --dry-run --verbose; fi;
- if [[ $CS_CHECK != 'true' ]]; then if [[ $CODE_COVERAGE == 'true' ]]; then COVERAGE_ARGS='--coverage-clover=coverage.clover'; fi; vendor/bin/phpunit $COVERAGE_ARGS; fi;
after_script:
- if [[ $CODE_COVERAGE == 'true' ]]; then wget https://scrutinizer-ci.com/ocular.phar; php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi;
before_deploy:
- if [[ $BUILD_PHAR == 'true' ]]; then php box.phar compile fi;
deploy:
provider: releases
api_key:
secure: OER6C7dNaVOIhl2wEA2i2Qe4T6BcXuM/cP0vOoz4578X0LRipYudWMXnLXYmMmjzraMBJ2W3cQx830mQK0TBVU/m0hp5bpTcfGsOBX7+sLi6MY/ncDa4kXV2x8qZOmQLRtk3smAgMyh5hUp7qlmpDRJJ9F1xCYFNqpotK8N3Rfk=
file: build/paratest-${TRAVIS_TAG}.phar
skip_cleanup: true
on:
condition: $BUILD_PHAR == 'true'
repo: paratestphp/paratest
tags: true
notifications:
email: false