forked from formapro/JsFormValidatorBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (31 loc) · 1.15 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
language: php
php: [5.3]
env:
- SF_VERSION='~2.3.0'
- SF_VERSION='~2.4.0'
- SF_VERSION='>=2.5,<2.5.3'
before_script:
- export WEB_FIXTURES_HOST=http://localhost/index.php
- sh -e /etc/init.d/xvfb start
- export DISPLAY=:99.0
- sleep 4
- Tests/app/switch_sf_version.sh "$SF_VERSION"
- composer require "symfony/symfony:${SF_VERSION}"
- composer install -n
- Tests/app/console assets:install Tests/app
- sudo chmod -R 0777 Tests/app/cache Tests/app/logs
- sudo chmod 0777 Resources/public/js/fp_js_validator.js
# just show the current directory tree
- ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'
- sudo apt-get update > /dev/null
- sudo apt-get install -y --force-yes apache2 libapache2-mod-php5 > /dev/null
- sudo sed -i -e "s,/var/www,$(pwd)/Tests/app,g" /etc/apache2/sites-available/default
- sudo /etc/init.d/apache2 restart
- curl http://selenium.googlecode.com/files/selenium-server-standalone-2.35.0.jar > selenium.jar
- java -jar selenium.jar > selenium.log &
- sleep 4
script: phpunit -v
#after_script:
# - php vendor/bin/coveralls -v
after_failure:
- cat selenium.log