-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (24 loc) · 851 Bytes
/
.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
language: php
matrix:
include:
- php: 7.4
- php: 8.0
fast_finish: true
env:
global:
TEST_CONFIG="phpunit.xml.dist"
before_install:
- echo "memory_limit=2G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini || return 0
install:
- travis_retry composer self-update
- composer install
script:
- vendor/bin/phpstan analyse -l 6 -c phpstan.neon src tests
- vendor/bin/psalm --config=psalm.xml
- vendor/bin/ecs check src tests
- vendor/bin/phpmd src/ text phpmd.xml
- vendor/bin/phpunit --configuration $TEST_CONFIG
- composer validate --no-check-publish
- git log $(git describe --abbrev=0 --tags)...HEAD --no-merges --pretty=format:"* [%h](http://github.com/${TRAVIS_REPO_SLUG}/commit/%H) %s (%cN)"
after_success:
- travis_retry php ./vendor/bin/php-coveralls -v --config .coveralls.yml -v;