This repository was archived by the owner on Oct 17, 2023. It is now read-only.
forked from stof/StofDoctrineExtensionsBundle
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy path.travis.yml
More file actions
45 lines (36 loc) · 1.21 KB
/
Copy path.travis.yml
File metadata and controls
45 lines (36 loc) · 1.21 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
language: php
env:
global:
- SYMFONY_PHPUNIT_DIR=$HOME/.phpunit-bridge
matrix:
fast_finish: true
include:
# Minimum supported dependencies with the latest and oldest PHP version
- php: "7.2.5"
env: SYMFONY_VERSION="^4.4" COMPOSER_FLAGS="--prefer-lowest"
- php: "8.0"
env: SYMFONY_VERSION="^4.4" COMPOSER_FLAGS="--prefer-lowest"
# Test the latest stable release
- php: "7.2.5"
- php: "7.3"
- php: "7.4"
- php: "8.0"
env: XDEBUG_MODE=coverage COVERAGE=true PHPUNIT_FLAGS="--coverage-text"
sudo: false
allow_failures:
# Dev-master is allowed to fail.
- env: STABILITY="dev"
cache:
directories:
- $HOME/.composer/cache/files
- $HOME/.phpunit-bridge
before_install:
- if [[ -v $SYMFONY_VERSION ]]; then composer config extra.symfony.require $SYMFONY_VERSION; fi;
- if [[ -v $STABILITY ]]; then composer config minimum-stability $STABILITY; fi;
- echo "memory_limit=3G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
install:
- composer update --prefer-dist --no-interaction $COMPOSER_FLAGS
- vendor/bin/simple-phpunit install
script:
- composer validate --strict --no-check-lock
- vendor/bin/simple-phpunit -v $PHPUNIT_FLAGS