Skip to content

Commit 1211886

Browse files
NaktibaldaGintautas Miselis
authored and
Gintautas Miselis
committed
Added package files
1 parent 1d4cdae commit 1211886

8 files changed

+1692
-0
lines changed

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Exclude files that don't need to be present in packages (so they're not downloaded by Composer)
2+
/.gitattributes export-ignore
3+
/.gitignore export-ignore
4+
/Robofile.php export-ignore
5+
/*.md export-ignore
6+
/*.yml export-ignore

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/.idea/
2+
/vendor/
3+
/composer.lock
4+
/framework-tests

.travis.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
language: php
2+
3+
php:
4+
- 5.6
5+
- 7.0
6+
- 7.1
7+
- 7.2
8+
- 7.3
9+
env:
10+
global:
11+
- TEST_PATH='framework-tests'
12+
- SYMFONY_DEPRECATIONS_HELPER=weak
13+
matrix:
14+
- VERSION=2.8 TEST_REPO='-b 2.1 https://github.com/Codeception/symfony-demo.git' SUITES=functional TEST_PATH=framework-tests/src/AppBundle
15+
- VERSION=3.4 TEST_REPO='--recurse-submodules https://github.com/Naktibalda/codeception-symfony-tests'
16+
- VERSION=4 TEST_REPO='https://github.com/Codeception/symfony-demo.git' SUITES=functional,unit
17+
matrix:
18+
exclude:
19+
- php: 7.0
20+
env: VERSION=2.8 TEST_REPO='-b 2.1 https://github.com/Codeception/symfony-demo.git' SUITES=functional TEST_PATH=framework-tests/src/AppBundle
21+
- php: 7.1
22+
env: VERSION=2.8 TEST_REPO='-b 2.1 https://github.com/Codeception/symfony-demo.git' SUITES=functional TEST_PATH=framework-tests/src/AppBundle
23+
- php: 7.2
24+
env: VERSION=2.8 TEST_REPO='-b 2.1 https://github.com/Codeception/symfony-demo.git' SUITES=functional TEST_PATH=framework-tests/src/AppBundle
25+
- php: 7.3
26+
env: VERSION=2.8 TEST_REPO='-b 2.1 https://github.com/Codeception/symfony-demo.git' SUITES=functional TEST_PATH=framework-tests/src/AppBundle
27+
- php: 5.6
28+
env: VERSION=3.4 TEST_REPO='--recurse-submodules https://github.com/Naktibalda/codeception-symfony-tests'
29+
- php: 7.0
30+
env: VERSION=3.4 TEST_REPO='--recurse-submodules https://github.com/Naktibalda/codeception-symfony-tests'
31+
- php: 7.3
32+
env: VERSION=3.4 TEST_REPO='--recurse-submodules https://github.com/Naktibalda/codeception-symfony-tests'
33+
- php: 5.6
34+
env: VERSION=4 TEST_REPO='https://github.com/Codeception/symfony-demo.git' SUITES=functional,unit
35+
- php: 7.0
36+
env: VERSION=4 TEST_REPO='https://github.com/Codeception/symfony-demo.git' SUITES=functional,unit
37+
services:
38+
- mysql
39+
before_install:
40+
- export INI=~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
41+
- echo memory_limit = -1 >> $INI
42+
install:
43+
- '[[ -z "$CI_USER_TOKEN" ]] || composer config github-oauth.github.com ${CI_USER_TOKEN};'
44+
- travis_retry composer self-update && composer --version
45+
- git clone -q --depth=1 $TEST_REPO framework-tests
46+
- git --git-dir framework-tests/.git log -n 1
47+
- composer require symfony/finder=~$VERSION --no-update --ignore-platform-reqs
48+
- composer require symfony/yaml=~$VERSION --no-update --ignore-platform-reqs
49+
- composer require symfony/console=~$VERSION --no-update --ignore-platform-reqs
50+
- composer require symfony/event-dispatcher=~$VERSION --no-update --ignore-platform-reqs
51+
- composer require symfony/css-selector=~$VERSION --no-update --ignore-platform-reqs
52+
- composer require symfony/dom-crawler=~$VERSION --no-update --ignore-platform-reqs
53+
- composer require symfony/browser-kit=~$VERSION --no-update --ignore-platform-reqs
54+
- composer require symfony/browser-kit=~$VERSION --no-update --ignore-platform-reqs
55+
- travis_retry composer install
56+
- travis_retry composer update -d framework-tests --no-dev --prefer-dist --no-interaction
57+
before_script:
58+
- mysql -e "create database symfony_test;"
59+
- '[[ "$VERSION" != "2.8" ]] || php framework-tests/app/console doctrine:schema:create -n --env test'
60+
- '[[ "$VERSION" != "2.8" ]] || php framework-tests/app/console doctrine:fixtures:load -n --env test'
61+
- '[[ "$VERSION" != "3.4" ]] || php framework-tests/bin/console doctrine:schema:update --force -n'
62+
- php ./vendor/bin/codecept build -c $TEST_PATH
63+
script:
64+
- php ./vendor/bin/codecept run functional -c $TEST_PATH

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2011 Michael Bodnarchuk and contributors
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

Robofile.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
require __DIR__ . '/vendor/autoload.php';
4+
5+
use Codeception\Module\Symfony;
6+
use Codeception\Util\DocumentationHelpers;
7+
8+
class RoboFile extends \Robo\Tasks
9+
{
10+
use DocumentationHelpers;
11+
12+
public function buildDocs()
13+
{
14+
$className = Symfony::class;
15+
$classPath = str_replace('\\', '/', $className);
16+
$source = "https://github.com/Codeception/module-symfony/tree/master/src/$classPath.php";
17+
$sourceMessage = '<p>&nbsp;</p><div class="alert alert-warning">Module reference is taken from the source code. <a href="' . $source . '">Help us to improve documentation. Edit module reference</a></div>';
18+
$documentationFile = 'documentation.md';
19+
$this->generateDocumentationForClass($className, $documentationFile, $sourceMessage);
20+
}
21+
}

composer.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name":"codeception/module-symfony",
3+
"description":"Codeception module for Symfony framework",
4+
"keywords":["codeception", "symfony"],
5+
"homepage":"http://codeception.com/",
6+
"type":"library",
7+
"license":"MIT",
8+
"authors":[
9+
{
10+
"name":"Michael Bodnarchuk"
11+
}
12+
],
13+
"minimum-stability": "RC",
14+
15+
"require": {
16+
"php": ">=5.6.0 <8.0",
17+
"codeception/lib-innerbrowser": "dev-master | ^1.0",
18+
"codeception/codeception": "4.0.x-dev | ^4.0"
19+
},
20+
"require-dev": {
21+
"codeception/util-robohelpers": "dev-master",
22+
"codeception/module-asserts": "dev-master | ^1.0",
23+
"codeception/module-doctrine2": "dev-master | ^1.0",
24+
"codeception/module-phpbrowser": "dev-master | ^1.0",
25+
"codeception/module-rest": "dev-master | ^1.0",
26+
"codeception/module-sequence": "dev-master | ^1.0",
27+
"vlucas/phpdotenv": "^3.6"
28+
},
29+
"autoload":{
30+
"classmap": ["src/"]
31+
},
32+
"config": {
33+
"classmap-authoritative": true
34+
}
35+
}

0 commit comments

Comments
 (0)