Skip to content

Commit 66fc7af

Browse files
committed
Merge from 1.2
2 parents edaefb8 + ea25475 commit 66fc7af

16 files changed

Lines changed: 181 additions & 3384 deletions

File tree

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ vendor
33
composer.lock
44
composer.phar
55
build/*
6-
Tests/app/Resources/local_config.php
6+
Tests/app/Resources/local_config.php
7+
Resources/public/js/fp_js_validator.js
8+
phpunit.xml

.travis.yml

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
language: php
22

3-
php: [5.3,5.4,5.5,5.6,7]
3+
php: [5.3,5.4,5.5,5.6]
44

55
env:
6-
- SF_VERSION='>=2.5.3,<2.6.0'
6+
- SF_VERSION='>=2.5.5,<2.6.0'
77
- SF_VERSION='~2.6.0'
88
- SF_VERSION='~2.7.0'
99

@@ -14,28 +14,41 @@ before_script:
1414
- export DISPLAY=:99.0
1515
- sleep 4
1616

17-
- Tests/app/switch_sf_version.sh "$SF_VERSION"
18-
- composer require "symfony/symfony:${SF_VERSION}"
19-
- composer install -n
20-
- composer info -i
17+
- curl -sS https://getcomposer.org/installer | php
18+
- php -d memory_limit=-1 composer.phar require "symfony/symfony:${SF_VERSION}"
19+
- php -d memory_limit=-1 composer.phar install -n
20+
- php -d memory_limit=-1 composer.phar info -i
21+
22+
- Tests/app/console assets:install -v Tests/app || Tests/app/console assets:install -v Tests/app
23+
- Tests/app/console assetic:dump -v Tests/app
2124

22-
- Tests/app/console assets:install Tests/app
2325
- sudo chmod -R 0777 Tests/app/cache Tests/app/logs
24-
- sudo chmod 0777 Resources/public/js/fp_js_validator.js
26+
- sudo chmod 0777 Resources/public/js
2527
# just show the current directory tree
2628
- ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'
2729

2830
- sudo apt-get update > /dev/null
29-
- sudo apt-get install -y --force-yes apache2 libapache2-mod-php5 > /dev/null
30-
31-
- sudo sed -i -e "s,/var/www,$(pwd)/Tests/app,g" /etc/apache2/sites-available/default
32-
- sudo /etc/init.d/apache2 restart
33-
34-
- vendor/bin/selenium-server-standalone &> selenium.log &
31+
- sudo apt-get install -y --force-yes apache2 libapache2-mod-fastcgi > /dev/null
32+
# enable php-fpm
33+
- sudo cp ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf.default ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf
34+
- sudo a2enmod rewrite actions fastcgi alias
35+
- echo "cgi.fix_pathinfo = 1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
36+
- ~/.phpenv/versions/$(phpenv version-name)/sbin/php-fpm
37+
# configure apache virtual hosts
38+
- sudo cp -f Tests/app/Resources/travis-ci-apache /etc/apache2/sites-available/default
39+
- sudo sed -e "s?%TRAVIS_BUILD_DIR%?$(pwd)/Tests/app?g" --in-place /etc/apache2/sites-available/default
40+
- sudo /etc/init.d/apache2 restart || (sudo cat /var/log/apache2/error.log && exit 1)
41+
42+
- vendor/bin/selenium-server-standalone &> Tests/app/logs/selenium.log &
3543
- sleep 4
3644

37-
script: phpunit -v
45+
46+
script: ./vendor/bin/phpunit -v --debug
3847
#after_script:
3948
# - php vendor/bin/coveralls -v
4049
after_failure:
41-
- cat selenium.log
50+
- cat Tests/app/logs/selenium.log
51+
- cat Tests/app/logs/apache-access.log
52+
- cat Tests/app/logs/apache-error.log
53+
- cat Tests/app/logs/cgi.log
54+
- firefox-bin -v

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# FpJsFormValidatorBundle
2-
[![Build Status](https://travis-ci.org/formapro/JsFormValidatorBundle.png?branch=master)](https://travis-ci.org/formapro/JsFormValidatorBundle)
2+
[![Build Status](https://travis-ci.org/formapro/JsFormValidatorBundle.svg?branch=master)](https://travis-ci.org/formapro/JsFormValidatorBundle)
33
[![Total Downloads](https://poser.pugx.org/fp/jsformvalidator-bundle/downloads.png)](https://packagist.org/packages/fp/jsformvalidator-bundle)
44

5-
This module enables validation of the Symfony 2.5.3+ forms on the JavaScript side.
5+
This module enables validation of the Symfony 2.5.5+ forms on the JavaScript side.
66
It converts form type constraints into JavaScript validation rules.
77

8-
If you have Symfony 2.5.2* or less* - you need to use [Version 1.2.*](https://github.com/formapro/JsFormValidatorBundle/tree/1.2)
8+
If you have Symfony 2.5.4* or less* - you need to use [Version 1.2.*](https://github.com/formapro/JsFormValidatorBundle/tree/1.2)
99

1010
* More details here [Symfony2](https://github.com/symfony/symfony/commit/97243bcd024bbfa458d66a4263a50ee7f16bbe74)
1111

0 commit comments

Comments
 (0)