forked from FriendsOfSymfony1/symfony1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (40 loc) · 1.22 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
language: php
php:
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- nightly
# run build against nightly but allow them to fail
matrix:
fast_finish: true
allow_failures:
- php: nightly
include:
- php: 5.3
dist: precise
sudo: required
- php: 5.4
dist: precise
sudo: required
# faster builds on new travis setup not using sudo
sudo: false
services:
- memcached
# cache vendor dirs
cache:
directories:
- lib/vendor/swiftmailer
- $HOME/.composer/cache
install:
- composer self-update
before_script:
# by default, --remote is not used on travis
- git submodule update --remote --force
- 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;'
- composer install
script:
- php data/bin/check_configuration.php
- php data/bin/symfony symfony:test --trace