forked from petrovich/petrovich-php
-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
65 lines (54 loc) · 2.64 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
60
61
62
63
64
65
sudo: false
language: php
cache:
directories:
- "$HOME/.composer/cache"
env:
global:
- COMPOSER_ARGS="--no-interaction"
- COVERAGE_DEPS="php-coveralls/php-coveralls"
- secure: Xi8atT1LP5hdc0IoqWM4ckR0awRvBOHE+JhghDAcp4WtTm1ljrag5b6UbiQ7p7ySRAGl+UrR5tXyRdkSsqTnSdgkaRRlO/VEhSl/Pmwagc9gZdSjtZAEybJpyQRkmk+yA11lDbYfYcOd+0I4+PBOvhf22rAi4a/mVHO8PBK5xdoLibfpyT9U+yE5T1IyiYEckF1dwcGtTrxhnI8xGaNgZifAfd0CGQYhHHZVVdwPMR+Wh8dfWA36kHjRO6buq+A2F5XRkjR3VzyjKZg7ErtrRnW3x/hmNs7O9/eEusWwz5HCoWmWX0gthxdbKrmXr5cJ9FV7w5I+jbPg/Br4ZKYyZ8YId+eCZnrKOPPJreMi9ei3PTjGDTKJSNyCK7NFgubK5WVwjtJnTDR+pEYwZjJp9dprXqDuQfcvEPFDsyvZ5OJfyJEiEH9DxffzSXUf/fEg4dbZ89eQ+qhn/WFUWchcKP+B1FIZo+G6FqdLQynVdbq2J3WXySb+qvu9Plgy80TfIihZ/+HaE0RxbLjXpvuwmriZe/h2Ite9F1KtObDbJ9PNfi8pFzg9MNYVy2DfP6LfXbv6v3jDi2f0Q+KQ6SR7dHM0YiLd14EuW91a2MHUAXoZafgdxyNN5fIRhLp+PrPPtxCek0IHHGvwN4oghsmV2mhXbo6li5HAJ6ezP/0yzvY=
matrix:
include:
- php: 7.2
env:
- DEPS=lowest
- php: 7.2
env:
- DEPS=locked
- CS_CHECK=true
- MUTATION_CHECK=true
- TEST_COVERAGE=true
- php: 7.2
env:
- DEPS=latest
- php: 7.3
env:
- DEPS=latest
- php: 7.4
env:
- COMPOSER_ARGS="--no-interaction --ignore-platform-reqs"
- DEPS=latest
- php: nightly
env:
- COMPOSER_ARGS="--no-interaction --ignore-platform-reqs"
- DEPS=latest
allow_failures:
- php: nightly
fast_finish: true
before_install:
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
install:
- travis_retry composer install $COMPOSER_ARGS
- 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
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
- stty cols 120 && composer show
script:
- if [[ $TEST_COVERAGE == 'true' ]]; then composer run-script test-coverage --timeout=400 -- --verbose ; else composer run-script test --timeout=300 -- --verbose ; fi
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
- if [[ $MUTATION_CHECK == 'true' ]]; then composer run-script mutation -- --configuration=infection.json.dist; fi
after_script:
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry php vendor/bin/php-coveralls -v ; fi
notifications:
email: false