This repository has been archived by the owner on Sep 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.travis.yml
71 lines (62 loc) · 1.92 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
language: php
php:
- 7.1
- 7.2
node_js:
- 6
- 7
- 8
sudo: required
cache:
directories:
- $HOME/.composer/cache/files
# node_modules are not cached, because we don't shrinkwrap the deps.
# - node_modules
env:
env:
matrix: SYMFONY_VERSION=^4.0
global:
- SYMFONY_DEPRECATIONS_HELPER="/.*each.*/"
- SYMFONY_PHPUNIT_DIR=.phpunit SYMFONY_PHPUNIT_REMOVE="symfony/yaml"
- KERNEL_CLASS=Symfony\Cmf\Bundle\RoutingBundle\Tests\Fixtures\App\Kernel
- SYMFONY_PHPUNIT_VERSION=5.7
- TEST_INSTALLATION=false
- LANG=php
- NODE_RELEASE=6.x
matrix:
include:
- php: 7.1
dist: trusty
node_js: 6
env: LANG=js
- php: 7.1
node_js: 7
env: LANG=js
- php: 7.1
node_js: 8
env: LANG=js
- php: 7.2
env: COMPOSER_FLAGS="--prefer-lowest" SYMFONY_VERSION=2.8.* SYMFONY_DEPRECATIONS_HELPER=weak
- php: 7.2
env: SYMFONY_VERSION=3.3.*
- env: TEST_INSTALLATION=true
fast_finish: true
allow_failures:
- env: TEST_INSTALLATION=true
before_install:
- if [ "$LANG" = "js" ]; then npm run travis:install; fi
- if [ "$LANG" = "php" ]; then phpenv config-rm xdebug.ini || true; fi
- phpenv config-rm xdebug.ini || true
- phpenv config-add travis.php.ini
- php -ini | grep memory_limit
- composer self-update
- if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; composer config prefer-stable true; fi;
- if [ "$SYMFONY_VERSION" != "" ]; then composer require symfony/symfony:${SYMFONY_VERSION} --no-update; fi
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
install: travis_wait composer update --prefer-dist $COMPOSER_FLAGS
script:
- if [ "$LANG" = "js" ]; then npm test; fi
- if [ "$LANG" = "php" ]; then make test; fi
notifications:
irc: "irc.freenode.org#symfony-cmf"
email: "[email protected]"