forked from FriendsOfSymfony1/symfony1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (39 loc) · 1.18 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
os: linux
dist: xenial
language: php
php:
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
- nightly
# run build against nightly but allow them to fail
jobs:
fast_finish: true
allow_failures:
- php: nightly
include:
- php: 5.3
dist: precise
- php: 5.4
dist: precise
- php: 5.5
dist: trusty
- php: 5.6
dist: trusty
services:
- memcached
cache:
directories:
- $HOME/.composer/cache
before_install:
- sh -c 'if [ $(php -r "echo PHP_MINOR_VERSION;") -le 4 ] && [ $(php -r "echo PHP_MAJOR_VERSION;") -le 5 ]; then echo "extension = apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;'
- sh -c 'if [ $(php -r "echo PHP_RELEASE_VERSION;") -le 98 ] && [ $(php -r "echo PHP_MAJOR_VERSION;") -le 5 ]; then echo "extension = memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;'
install:
# by default, --remote is not used on travis
- git submodule update --remote --force
- composer install --prefer-dist --no-progress --no-suggest -o
script:
- php data/bin/check_configuration.php
- php data/bin/symfony symfony:test --trace