forked from AmericanCouncils/AyamelResourceApiServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (23 loc) · 1.01 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
language: php
php:
- 5.5
#- hhvm ... can't seem to get travis to run this, seemingly because of the custom php.ini
services:
- mongodb
- rabbitmq
- elasticsearch
before_script:
- sh -c "if [ `php-config --vernum` -ge 50500 ] ; then pecl config-set preferred_state beta; printf "yes\n" | pecl install apcu ; else echo 'extension="apc.so"' >> ./travis.php.ini ;fi"
- phpenv config-add travis.php.ini
- cp app/config/parameters.default.yml app/config/parameters.yml
- sudo apt-get update -qq
- sudo apt-get install -qq mediainfo
# skipping transcoding related tests on travis because it takes too long to rebuild ffmpeg all the time
# - util/install_ffmpeg.sh
# - sudo apt-get install -qq ffmpegthumbnailer
- composer self-update
- composer install
- app/console cache:clear --env=test
#memory limit seems to run out on some machines, setting it high to try and avoid
#unpredictable failures
script: bin/phpunit --exclude-group=transcoding,youtube -d memory_limit=512M