-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy path.travis.yml
52 lines (45 loc) · 1.65 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
language: php
php:
- 7.1
- 7.2
- 7.3
- 7.4
- nightly
before_script:
- set -e & find ./src -type f -iname "*.php" -print0 | while IFS= read -r -d $'\0' line; do php -l "$line"; done;
- pecl install pcov
- phpenv config-rm xdebug.ini
- mkdir -p bootstrap/cache
- chmod 777 bootstrap/cache
- ls -al bootstrap/
- ls -al bootstrap/cache
- composer global require hirak/prestissimo
- composer require laravel/framework:${LARAVEL_DEP} --no-update
- echo $TRAVIS_PHP_VERSION
- if [[ "$TRAVIS_PHP_VERSION" = "7.1" || "$LARAVEL_DEP" = "5.5.*" ]]; then composer require pcov/clobber --no-update --dev; fi;
- COMPOSER_MEMORY_LIMIT=-1 travis_retry composer install --prefer-dist --no-interaction -o
- if [[ "$TRAVIS_PHP_VERSION" = "7.1" || "$LARAVEL_DEP" = "5.5.*" ]]; then vendor/bin/pcov clobber; fi;
- cat composer.lock
script:
- mkdir -p build/logs
- php vendor/bin/phpunit --coverage-clover build/logs/clover.xml
- if [[ "${TRAVIS_PULL_REQUEST}" == "false" ]]; then
INFECTION_FILTER="";
else
git remote set-branches --add origin $TRAVIS_BRANCH;
git fetch;
CHANGED_FILES=$(git diff origin/$TRAVIS_BRANCH --diff-filter=AM --name-only | grep src/ | paste -sd "," -);
INFECTION_FILTER="--filter=${CHANGED_FILES} --ignore-msi-with-no-mutations";
echo "CHANGED_FILES=$CHANGED_FILES";
fi
- php vendor/bin/infection --threads=4 --min-msi=93 --min-covered-msi=93 --log-verbosity=none $INFECTION_FILTER
after_script:
- php vendor/bin/php-coveralls --exclude-no-stmt
after_success:
- coveralls
env: # important!
- LARAVEL_DEP="5.5.*"
- LARAVEL_DEP="^5.5|^6.0"
matrix:
allow_failures:
- php: nightly