-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.travis.yml
More file actions
50 lines (41 loc) · 1.42 KB
/
.travis.yml
File metadata and controls
50 lines (41 loc) · 1.42 KB
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
language: php
sudo: false
php:
- 7.2
- 7.3
- 7.4
cache:
directories:
- $HOME/.composer/cache
env:
global:
- TEST_COMMAND="composer test"
- TEST_COMMAND_NO_TWIG="composer test-no-twig"
- PSALM_COMMAND="composer psalm"
- PSALM_COMMAND_NO_TWIG="composer psalm-no-twig"
matrix:
- SYMFONY_VERSION=3.4.*
- SYMFONY_VERSION=4.2.*
- SYMFONY_VERSION=4.3.*
- SYMFONY_VERSION=4.4.*
- SYMFONY_VERSION=3.4.* TWIG_VERSION=2.10.*
- SYMFONY_VERSION=4.2.* TWIG_VERSION=2.10.*
- SYMFONY_VERSION=4.3.* TWIG_VERSION=2.10.*
- SYMFONY_VERSION=4.4.* TWIG_VERSION=2.10.*
before_install:
- travis_retry composer self-update
install:
- if [[ $TWIG_VERSION ]]; then composer require --no-update twig/twig:${TWIG_VERSION}; fi
- travis_retry composer require --no-update symfony/framework-bundle:${SYMFONY_VERSION}
- travis_retry composer update ${COMPOSER_FLAGS} --prefer-source --no-interaction
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- if [[ $TWIG_VERSION ]]; then $TEST_COMMAND; else $TEST_COMMAND_NO_TWIG; fi
- if [[ $TWIG_VERSION ]]; then $PSALM_COMMAND; else $PSALM_COMMAND_NO_TWIG; fi
- "phpunit --testsuite=unit --coverage-text --coverage-clover build/logs/clover.xml"
notifications:
email:
- pierre@elbcoast.net