forked from twigphp/Twig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (43 loc) · 1.48 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
language: php
dist: xenial
cache:
directories:
- vendor
- extra/*/vendor
- $HOME/.composer/cache/files
env:
global:
- SYMFONY_PHPUNIT_DISABLE_RESULT_CACHE=1
before_install:
- phpenv config-rm xdebug.ini || return 0
- echo memory_limit = -1 >> ~/.phpenv/versions/$TRAVIS_PHP_VERSION/etc/conf.d/travis.ini
install:
- travis_retry composer install
- export PHPUNIT=$(readlink -f ./vendor/bin/simple-phpunit)
- $PHPUNIT install
- (cd extra/cssinliner-extra && travis_retry composer install)
- (cd extra/html-extra && travis_retry composer install)
- (cd extra/inky-extra && travis_retry composer install)
- (cd extra/intl-extra && travis_retry composer install)
- ([[ $TRAVIS_PHP_VERSION = nightly ]] && (cd extra/markdown-extra && composer config platform.php 7.4.99) || true)
- (cd extra/markdown-extra && travis_retry composer install)
- (cd extra/string-extra && travis_retry composer install)
script:
- $PHPUNIT
- (cd extra/cssinliner-extra && $PHPUNIT)
- (cd extra/html-extra && $PHPUNIT)
- (cd extra/inky-extra && $PHPUNIT)
- (cd extra/intl-extra && $PHPUNIT)
- (cd extra/markdown-extra && $PHPUNIT)
- (cd extra/string-extra && $PHPUNIT)
jobs:
fast_finish: true
include:
- php: 7.2
- php: 7.3
- php: 7.4
- php: nightly
# Drupal does not support 3.x yet
#- stage: integration tests
# php: 7.3
# script: ./drupal_test.sh