forked from mediamonks/php-rest-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (31 loc) · 1.4 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
language: php
matrix:
include:
- php: 7.1
env: SYMFONY_VERSION=4.4.*@dev
- php: 7.2
env: SYMFONY_VERSION=4.4.*@dev
- php: 7.3
env: SYMFONY_VERSION=4.4.*@dev
- php: 7.3
env: SYMFONY_VERSION=5.0.*@dev
- php: 7.4
env: SYMFONY_VERSION=4.4.*@dev
- php: 7.4
env: SYMFONY_VERSION=5.0.*@dev
sudo: false
cache:
directories:
- $HOME/.composer/cache/files
before_install:
- composer self-update
- if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/http-kernel:${SYMFONY_VERSION}" --no-update; fi;
- if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/validator:${SYMFONY_VERSION}" --no-update; fi;
- if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/form:${SYMFONY_VERSION}" --no-update; fi;
- if [ "$TRAVIS_PHP_VERSION" == "7.2" ] && [ "$SYMFONY_VERSION" == "4.4.*" ]; then composer require "codeclimate/php-test-reporter:dev-master@dev" --no-update; fi;
install:
- composer update --prefer-source $COMPOSER_FLAGS
script:
- if [ "$TRAVIS_PHP_VERSION" == "7.2" ] && [ "$SYMFONY_VERSION" == "4.4.*" ]; then vendor/bin/phpunit --coverage-clover=coverage.clover; else vendor/bin/phpunit; fi;
after_script:
- if [ "$TRAVIS_PHP_VERSION" == "7.2" ] && [ "$SYMFONY_VERSION" == "4.4.*" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi;