This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (52 loc) · 2.17 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
language: php
sudo: false
if: tag IS blank
cache:
directories:
- $HOME/.composer/cache/files
- $HOME/.php_cs
- $HOME/.splitsh
- $HOME/symfony-bridge/.phpunit
env:
global:
- PHPUNIT_FLAGS="-v"
- SPLITSH_PATH="$HOME/.splitsh"
- SYMFONY_PHPUNIT_DIR="$HOME/symfony-bridge/.phpunit"
matrix:
fast_finish: true
include:
#- php: 7.2
# env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak"
- php: 7.1
env: PHP_CS=true SPLITTEST=true
- php: 7.2
env: COVERAGE=true PHPUNIT_FLAGS="-v --coverage-clover=coverage.xml"
- php: 7.2
env: SPLIT=true DEPENDENCIES="symfony/lts:^3"
git:
depth: false
#- php: 7.2
# env: STABILITY="dev"
allow_failures:
- env: STABILITY="dev"
before_install:
- echo -e "machine github.com\n login $GITHUB_API_TOKEN" >> ~/.netrc
- if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi
- if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; fi
- if ! [ -z "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi
- if [[ $PHP_CS != true ]]; then composer remove --dev --no-update friendsofphp/php-cs-fixer; fi
install:
# To be removed when this issue will be resolved: https://github.com/composer/composer/issues/5355
- if [[ "$COMPOSER_FLAGS" == *"--prefer-lowest"* ]]; then composer update --prefer-dist --no-interaction --prefer-stable --quiet; fi
- composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction
- bin/phpunit install
script:
- if [[ $SPLITTEST = true ]]; then bin/splittest; else bin/phpunit $PHPUNIT_FLAGS; fi
- if [[ $PHP_CS = true ]]; then vendor/bin/php-cs-fixer fix --dry-run --cache-file=$HOME/.php_cs/.cache -vvv; fi
- if [[ $SPLIT = true && $TRAVIS_PULL_REQUEST = false ]]; then bin/split; fi
#after_success:
# - if [[ $COVERAGE = true ]]; then bash <(curl -s https://codecov.io/bash); fi
notifications:
webhooks:
urls: https://fathomless-fjord-24024.herokuapp.com/notify
on_cancel: never