Skip to content

Enable Ubuntu 14.04 beta in travis #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 76 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
6e07cd5
Removed in_memory Security Providers (unused)
tzikis Jan 9, 2015
0f56ce5
Replaced OR operator with || & explicit precedence
tzikis Jan 9, 2015
8a30ae3
Removed unnecessary __FILE__ variables
tzikis Jan 9, 2015
9aeed6c
Added codebender favicon
tzikis Jan 9, 2015
e25959f
Added stricter checks for successful extractions
tzikis Jan 9, 2015
b332d4a
Added stricter checks for successful preprocessing
tzikis Jan 9, 2015
7aa2d68
Deleted Acme Bundle (Symfony2 Demo)
tzikis Jan 9, 2015
cf132dd
Fixed Error due to removal of Acme Bundle
tzikis Jan 9, 2015
01ee571
Fixed 2nd Error due to removal of Acme Bundle
tzikis Jan 9, 2015
7057acc
This should fix the Acme deletion error
tzikis Jan 9, 2015
ae8fab2
Removed dead code
tzikis Jan 9, 2015
885857c
Added 1 more strict bool check
tzikis Jan 9, 2015
13f9500
Renamed a variable for readability
tzikis Jan 9, 2015
ec1d2b7
This should fix all missing ending newlines
tzikis Jan 9, 2015
29eab63
Auto-Formated PreprocessingHandler
tzikis Jan 9, 2015
0ee4557
Auto-Formated UtilityHandler
tzikis Jan 9, 2015
8c57183
Auto-Formated PostProcessingHandler
tzikis Jan 9, 2015
21854c0
Auto-Formated MCUHandler
tzikis Jan 9, 2015
d25ee5a
Auto-Formated DefaultController
tzikis Jan 9, 2015
4260afd
Silenced PHPStorm Warning
tzikis Jan 9, 2015
ff13752
Auto-Formated DefaultControllerTest
tzikis Jan 9, 2015
65d426f
Removed unused Class
tzikis Jan 9, 2015
8b0faee
Auto-Formated CompilerHandler
tzikis Jan 9, 2015
b52fc76
Avoiding using functions in for loop
tzikis Jan 9, 2015
c1b4154
Fixed all PSR-1 Method Naming warnings (hopefuly)
tzikis Jan 9, 2015
d42172c
Initial fix for containing the deletion Actions
tzikis Jan 9, 2015
af91913
Fixed 2nd deletion Action size
tzikis Jan 9, 2015
95f8e21
Updated Symfony version and dependencies
tzikis Jan 9, 2015
1334b87
Suppressed Warning that breaks our JSON output
tzikis Jan 9, 2015
9af22c7
Added EOF Newline
tzikis Jan 9, 2015
7ca854a
Made Travis run the tests on PHP 5.3 (for now)
fpapadopou Apr 30, 2015
8e7e91e
Removed silly commented out test (tested against the produced binary)
fpapadopou Apr 30, 2015
d6e3f88
Made the test file indicate it's a set of functional tests
fpapadopou Apr 30, 2015
335d89a
Removed unnecessary comments from code used to functionally test the …
fpapadopou Apr 30, 2015
dbea937
Added functional tests for external cores/variants usage
fpapadopou Apr 30, 2015
75dd878
Moved check for created object file to the binary test function (synt…
fpapadopou Apr 30, 2015
9884dd7
Made the external core test work on any environment, with any externa…
fpapadopou Apr 30, 2015
8e9da06
Silenced archive creation output (prints output on local testing)
fpapadopou Apr 30, 2015
74e84f7
Added a simple test for archive creation
fpapadopou Apr 30, 2015
ffb82c6
Merge remote-tracking branch 'origin/dev' into sensiolabs-insight-fixes
fpapadopou Jul 17, 2015
96a5e19
Merge pull request #33 from codebendercc/sensiolabs-insight-fixes
fpapadopou Jul 17, 2015
98dcec6
Code style changes in PreprocessingHandler
fpapadopou Jul 17, 2015
46dfc7c
CamelCased a bunch of variables in the UtilityHandler
fpapadopou Jul 17, 2015
60985a3
Removed unused parameters from config file
fpapadopou Jul 23, 2015
9b467bb
Updated the code of the deletion actions and handler methods
fpapadopou Jul 24, 2015
15a46f9
Merge remote-tracking branch 'origin/dev' into sensiolabs-insight-del…
fpapadopou Jul 24, 2015
e431319
Merge pull request #36 from codebendercc/parameters-revision
fpapadopou Jul 24, 2015
756fce4
Removed update coveralls statement (it's already installed along with…
fpapadopou Jul 24, 2015
b05358d
Silenced arduino core file unzipping (produces more than 7K lines of …
fpapadopou Jul 24, 2015
290356e
Merge pull request #35 from codebendercc/sensiolabs-insight-deletiona…
fpapadopou Jul 24, 2015
5fd92ab
Merge remote-tracking branch 'origin/dev' into travis
fpapadopou Jul 24, 2015
1b07b90
Added coded that removes unnecessary paths info from linking error ou…
fpapadopou Aug 21, 2015
ab69a71
Code formatting in tests class
fpapadopou Aug 21, 2015
5a7c0ba
Added functional test for the linker output cleanup function
fpapadopou Aug 21, 2015
3e2b0e9
Removed 'files', 'libraries', 'cb_personal_libraries' paths from comp…
fpapadopou Aug 28, 2015
7c226ff
Merge remote-tracking branch 'origin/master' into dev
fpapadopou Aug 28, 2015
e48b6fe
Removed '$' from class parameters usages in DeletionHandler
fpapadopou Sep 2, 2015
2fa9595
Decode HTML entities in project files and library files before compil…
fpapadopou Sep 23, 2015
1dbc0d0
Added a test for html encoded input to the compiler
fpapadopou Sep 23, 2015
dbaa56d
Updated test and html encoding-decoding code (didn't really work as e…
fpapadopou Sep 28, 2015
ccdf2da
Updated Apache VirtualHost setup (2.4.7 compatibility)
fpapadopou Oct 15, 2015
969e4de
Removed cache-fs & logs-fs setup (unnecessary in 14.04)
fpapadopou Oct 15, 2015
2b12d33
Apache 2.4.7 needs a .conf extension in VirtualHost files
fpapadopou Oct 15, 2015
6f9519d
Updated PHPUnit to version 4.8.13
fpapadopou Oct 15, 2015
342df73
Updated vendors (most significant is Symfony 2.3.33)
fpapadopou Oct 15, 2015
c64ef0b
Add PHP XDebug ( needed for coverage generation)
fpapadopou Oct 15, 2015
add4d26
Fixed some issues that came up during review
fpapadopou Oct 23, 2015
0436535
Revert "Updated test and html encoding-decoding code (didn't really w…
fpapadopou Oct 23, 2015
86e5832
Revert "Added a test for html encoded input to the compiler"
fpapadopou Oct 23, 2015
3f36a4d
Revert "Decode HTML entities in project files and library files befor…
fpapadopou Oct 23, 2015
dc855d4
Updated complete.py file
fpapadopou Nov 5, 2015
a857683
Updated CompilerHandler
fpapadopou Nov 5, 2015
292511c
enable Ubuntu 14.04 beta in travis
Nov 11, 2015
0b3c14c
remove old php versions from travis.yml
Nov 11, 2015
9c22c78
add explicit php version in travis.yml
Nov 11, 2015
eefbf70
remove php-specific-config from travis.yml
Nov 11, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
language: php
php:
- 5.5
- 5.4
sudo: required
dist: trusty

before_install:
- sudo apt-get update
Expand All @@ -14,7 +12,6 @@ script:
- ../scripts/run_tests.sh

after_script:
- php composer.phar update satooshi/php-coveralls --dev
- php bin/coveralls -v

notifications:
Expand Down
3 changes: 2 additions & 1 deletion Symfony/app/.htaccess
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
deny from all
deny from all

1 change: 0 additions & 1 deletion Symfony/app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public function registerBundles()
);

if (in_array($this->getEnvironment(), array('dev', 'test'))) {
$bundles[] = new Acme\DemoBundle\AcmeDemoBundle();
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
Expand Down
2 changes: 1 addition & 1 deletion Symfony/app/Resources/autocompletion/complete.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,4 @@ def __init__(self, fname, line, column, args):
log_error(COMPL_TU_LOAD)

self.code_completion = \
self.TU.codeComplete(self.fname, self.line, self.column)
self.TU.codeComplete(self.fname, self.line, self.column, include_macros=True)
81 changes: 50 additions & 31 deletions Symfony/app/SymfonyRequirements.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function getTestMessage()
}

/**
* Returns the help text for resolving the problem
* Returns the help text for resolving the problem.
*
* @return string The help text
*/
Expand Down Expand Up @@ -119,14 +119,14 @@ class PhpIniRequirement extends Requirement
*
* @param string $cfgName The configuration name used for ini_get()
* @param Boolean|callback $evaluation Either a Boolean indicating whether the configuration should evaluate to true or false,
or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement
* @param Boolean $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false.
This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin.
Example: You require a config to be true but PHP later removes this config and defaults it to true internally.
* @param string|null $testMessage The message for testing the requirement (when null and $evaluation is a Boolean a default message is derived)
* @param string|null $helpHtml The help text formatted in HTML for resolving the problem (when null and $evaluation is a Boolean a default help is derived)
* @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags)
* @param Boolean $optional Whether this is only an optional recommendation not a mandatory requirement
* or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement
* @param Boolean $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false.
* This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin.
* Example: You require a config to be true but PHP later removes this config and defaults it to true internally.
* @param string|null $testMessage The message for testing the requirement (when null and $evaluation is a Boolean a default message is derived)
* @param string|null $helpHtml The help text formatted in HTML for resolving the problem (when null and $evaluation is a Boolean a default help is derived)
* @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags)
* @param Boolean $optional Whether this is only an optional recommendation not a mandatory requirement
*/
public function __construct($cfgName, $evaluation, $approveCfgAbsence = false, $testMessage = null, $helpHtml = null, $helpText = null, $optional = false)
{
Expand Down Expand Up @@ -221,13 +221,13 @@ public function addRecommendation($fulfilled, $testMessage, $helpHtml, $helpText
*
* @param string $cfgName The configuration name used for ini_get()
* @param Boolean|callback $evaluation Either a Boolean indicating whether the configuration should evaluate to true or false,
or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement
* @param Boolean $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false.
This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin.
Example: You require a config to be true but PHP later removes this config and defaults it to true internally.
* @param string $testMessage The message for testing the requirement (when null and $evaluation is a Boolean a default message is derived)
* @param string $helpHtml The help text formatted in HTML for resolving the problem (when null and $evaluation is a Boolean a default help is derived)
* @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags)
* or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement
* @param Boolean $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false.
* This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin.
* Example: You require a config to be true but PHP later removes this config and defaults it to true internally.
* @param string $testMessage The message for testing the requirement (when null and $evaluation is a Boolean a default message is derived)
* @param string $helpHtml The help text formatted in HTML for resolving the problem (when null and $evaluation is a Boolean a default help is derived)
* @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags)
*/
public function addPhpIniRequirement($cfgName, $evaluation, $approveCfgAbsence = false, $testMessage = null, $helpHtml = null, $helpText = null)
{
Expand All @@ -239,13 +239,13 @@ public function addPhpIniRequirement($cfgName, $evaluation, $approveCfgAbsence =
*
* @param string $cfgName The configuration name used for ini_get()
* @param Boolean|callback $evaluation Either a Boolean indicating whether the configuration should evaluate to true or false,
or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement
* @param Boolean $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false.
This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin.
Example: You require a config to be true but PHP later removes this config and defaults it to true internally.
* @param string $testMessage The message for testing the requirement (when null and $evaluation is a Boolean a default message is derived)
* @param string $helpHtml The help text formatted in HTML for resolving the problem (when null and $evaluation is a Boolean a default help is derived)
* @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags)
* or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement
* @param Boolean $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false.
* This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin.
* Example: You require a config to be true but PHP later removes this config and defaults it to true internally.
* @param string $testMessage The message for testing the requirement (when null and $evaluation is a Boolean a default message is derived)
* @param string $helpHtml The help text formatted in HTML for resolving the problem (when null and $evaluation is a Boolean a default help is derived)
* @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags)
*/
public function addPhpIniRecommendation($cfgName, $evaluation, $approveCfgAbsence = false, $testMessage = null, $helpHtml = null, $helpText = null)
{
Expand Down Expand Up @@ -530,11 +530,22 @@ function_exists('simplexml_import_dom'),

/* optional recommendations follow */

$this->addRecommendation(
file_get_contents(__FILE__) === file_get_contents(__DIR__.'/../vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/skeleton/app/SymfonyRequirements.php'),
'Requirements file should be up-to-date',
'Your requirements file is outdated. Run composer install and re-check your configuration.'
);
if (file_exists(__DIR__.'/../vendor/composer')) {
require_once __DIR__.'/../vendor/autoload.php';

try {
$r = new \ReflectionClass('Sensio\Bundle\DistributionBundle\SensioDistributionBundle');

$contents = file_get_contents(dirname($r->getFileName()).'/Resources/skeleton/app/SymfonyRequirements.php');
} catch (\ReflectionException $e) {
$contents = '';
}
$this->addRecommendation(
file_get_contents(__FILE__) === $contents,
'Requirements file should be up-to-date',
'Your requirements file is outdated. Run composer install and re-check your configuration.'
);
}

$this->addRecommendation(
version_compare($installedPhpVersion, '5.3.4', '>='),
Expand Down Expand Up @@ -614,15 +625,15 @@ class_exists('Locale'),
'Install and enable the <strong>intl</strong> extension (used for validators).'
);

if (class_exists('Collator')) {
if (extension_loaded('intl')) {
// in some WAMP server installations, new Collator() returns null
$this->addRecommendation(
null !== new Collator('fr_FR'),
'intl extension should be correctly configured',
'The intl extension does not behave properly. This problem is typical on PHP 5.3.X x64 WIN builds.'
);
}

if (class_exists('Locale')) {
// check for compatible ICU versions (only done when you have the intl extension)
if (defined('INTL_ICU_VERSION')) {
$version = INTL_ICU_VERSION;
} else {
Expand All @@ -641,6 +652,14 @@ class_exists('Locale'),
'intl ICU version should be at least 4+',
'Upgrade your <strong>intl</strong> extension with a newer ICU version (4+).'
);

$this->addPhpIniRecommendation(
'intl.error_level',
create_function('$cfgValue', 'return (int) $cfgValue === 0;'),
true,
'intl.error_level should be 0 in php.ini',
'Set "<strong>intl.error_level</strong>" to "<strong>0</strong>" in php.ini<a href="#phpini">*</a> to inhibit the messages when an error occurs in ICU functions.'
);
}

$accelerator =
Expand Down
12 changes: 0 additions & 12 deletions Symfony/app/config/parameters.yml.dist
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
parameters:
# database_driver: pdo_mysql
# database_host: 127.0.0.1
# database_port: ~
# database_name: symfony
# database_user: root
# database_password: ~
#
# mailer_transport: smtp
# mailer_host: 127.0.0.1
# mailer_user: ~
# mailer_password: ~

locale: en
secret: CSRF-Token-Not-Really-Used

Expand Down
4 changes: 0 additions & 4 deletions Symfony/app/config/routing_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,3 @@ _configurator:

_main:
resource: routing.yml

# AcmeDemoBundle routes (to be removed)
_acme_demo:
resource: "@AcmeDemoBundle/Resources/config/routing.yml"
37 changes: 3 additions & 34 deletions Symfony/app/config/security.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,8 @@
security:
encoders:
Symfony\Component\Security\Core\User\User: plaintext

role_hierarchy:
ROLE_ADMIN: ROLE_USER
ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
firewalls:
anonymous:
anonymous: ~

providers:
in_memory:
memory:
users:
user: { password: userpass, roles: [ 'ROLE_USER' ] }
admin: { password: adminpass, roles: [ 'ROLE_ADMIN' ] }

firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false

login:
pattern: ^/demo/secured/login$
security: false

secured_area:
pattern: ^/demo/secured/
form_login:
check_path: _security_check
login_path: _demo_login
logout:
path: _demo_logout
target: _demo
#anonymous: ~
#http_basic:
# realm: "Secured Demo Area"

access_control:
- { path: ^/demo/secured/hello/admin/, roles: ROLE_ADMIN }
#- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https }
19 changes: 11 additions & 8 deletions Symfony/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,17 @@
"sensio/generator-bundle": "2.3.*",
"incenteev/composer-parameter-handler": "~2.0"
},
"require-dev": {
"phpunit/phpunit": "3.7.*",
"satooshi/php-coveralls": "dev-master",
"squizlabs/php_codesniffer": "1.*",
"sebastian/phpcpd": "*",
"phpmd/phpmd": "2.0.*"
},
"scripts": {
"require-dev": {
"phpunit/phpunit": "4.8.*",
"satooshi/php-coveralls": "dev-master",
"squizlabs/php_codesniffer": "1.*",
"sebastian/phpcpd": "*",
"phpmd/phpmd" : "2.0.*",
"phpunit/php-code-coverage": "~2.1",
"phpunit/php-token-stream": "~1.3",
"phpunit/phpunit-mock-objects": "~2.3"
},
"scripts": {
"post-install-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
Expand Down
Loading