Skip to content

Commit

Permalink
Added package files
Browse files Browse the repository at this point in the history
  • Loading branch information
Naktibalda authored and Gintautas Miselis committed Oct 11, 2019
1 parent 1d4cdae commit 1211886
Show file tree
Hide file tree
Showing 8 changed files with 1,692 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Exclude files that don't need to be present in packages (so they're not downloaded by Composer)
/.gitattributes export-ignore
/.gitignore export-ignore
/Robofile.php export-ignore
/*.md export-ignore
/*.yml export-ignore
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/.idea/
/vendor/
/composer.lock
/framework-tests
64 changes: 64 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
language: php

php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
env:
global:
- TEST_PATH='framework-tests'
- SYMFONY_DEPRECATIONS_HELPER=weak
matrix:
- VERSION=2.8 TEST_REPO='-b 2.1 https://github.com/Codeception/symfony-demo.git' SUITES=functional TEST_PATH=framework-tests/src/AppBundle
- VERSION=3.4 TEST_REPO='--recurse-submodules https://github.com/Naktibalda/codeception-symfony-tests'
- VERSION=4 TEST_REPO='https://github.com/Codeception/symfony-demo.git' SUITES=functional,unit
matrix:
exclude:
- php: 7.0
env: VERSION=2.8 TEST_REPO='-b 2.1 https://github.com/Codeception/symfony-demo.git' SUITES=functional TEST_PATH=framework-tests/src/AppBundle
- php: 7.1
env: VERSION=2.8 TEST_REPO='-b 2.1 https://github.com/Codeception/symfony-demo.git' SUITES=functional TEST_PATH=framework-tests/src/AppBundle
- php: 7.2
env: VERSION=2.8 TEST_REPO='-b 2.1 https://github.com/Codeception/symfony-demo.git' SUITES=functional TEST_PATH=framework-tests/src/AppBundle
- php: 7.3
env: VERSION=2.8 TEST_REPO='-b 2.1 https://github.com/Codeception/symfony-demo.git' SUITES=functional TEST_PATH=framework-tests/src/AppBundle
- php: 5.6
env: VERSION=3.4 TEST_REPO='--recurse-submodules https://github.com/Naktibalda/codeception-symfony-tests'
- php: 7.0
env: VERSION=3.4 TEST_REPO='--recurse-submodules https://github.com/Naktibalda/codeception-symfony-tests'
- php: 7.3
env: VERSION=3.4 TEST_REPO='--recurse-submodules https://github.com/Naktibalda/codeception-symfony-tests'
- php: 5.6
env: VERSION=4 TEST_REPO='https://github.com/Codeception/symfony-demo.git' SUITES=functional,unit
- php: 7.0
env: VERSION=4 TEST_REPO='https://github.com/Codeception/symfony-demo.git' SUITES=functional,unit
services:
- mysql
before_install:
- export INI=~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- echo memory_limit = -1 >> $INI
install:
- '[[ -z "$CI_USER_TOKEN" ]] || composer config github-oauth.github.com ${CI_USER_TOKEN};'
- travis_retry composer self-update && composer --version
- git clone -q --depth=1 $TEST_REPO framework-tests
- git --git-dir framework-tests/.git log -n 1
- composer require symfony/finder=~$VERSION --no-update --ignore-platform-reqs
- composer require symfony/yaml=~$VERSION --no-update --ignore-platform-reqs
- composer require symfony/console=~$VERSION --no-update --ignore-platform-reqs
- composer require symfony/event-dispatcher=~$VERSION --no-update --ignore-platform-reqs
- composer require symfony/css-selector=~$VERSION --no-update --ignore-platform-reqs
- composer require symfony/dom-crawler=~$VERSION --no-update --ignore-platform-reqs
- composer require symfony/browser-kit=~$VERSION --no-update --ignore-platform-reqs
- composer require symfony/browser-kit=~$VERSION --no-update --ignore-platform-reqs
- travis_retry composer install
- travis_retry composer update -d framework-tests --no-dev --prefer-dist --no-interaction
before_script:
- mysql -e "create database symfony_test;"
- '[[ "$VERSION" != "2.8" ]] || php framework-tests/app/console doctrine:schema:create -n --env test'
- '[[ "$VERSION" != "2.8" ]] || php framework-tests/app/console doctrine:fixtures:load -n --env test'
- '[[ "$VERSION" != "3.4" ]] || php framework-tests/bin/console doctrine:schema:update --force -n'
- php ./vendor/bin/codecept build -c $TEST_PATH
script:
- php ./vendor/bin/codecept run functional -c $TEST_PATH
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2011 Michael Bodnarchuk and contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
21 changes: 21 additions & 0 deletions Robofile.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

require __DIR__ . '/vendor/autoload.php';

use Codeception\Module\Symfony;
use Codeception\Util\DocumentationHelpers;

class RoboFile extends \Robo\Tasks
{
use DocumentationHelpers;

public function buildDocs()
{
$className = Symfony::class;
$classPath = str_replace('\\', '/', $className);
$source = "https://github.com/Codeception/module-symfony/tree/master/src/$classPath.php";
$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>';
$documentationFile = 'documentation.md';
$this->generateDocumentationForClass($className, $documentationFile, $sourceMessage);
}
}
35 changes: 35 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name":"codeception/module-symfony",
"description":"Codeception module for Symfony framework",
"keywords":["codeception", "symfony"],
"homepage":"http://codeception.com/",
"type":"library",
"license":"MIT",
"authors":[
{
"name":"Michael Bodnarchuk"
}
],
"minimum-stability": "RC",

"require": {
"php": ">=5.6.0 <8.0",
"codeception/lib-innerbrowser": "dev-master | ^1.0",
"codeception/codeception": "4.0.x-dev | ^4.0"
},
"require-dev": {
"codeception/util-robohelpers": "dev-master",
"codeception/module-asserts": "dev-master | ^1.0",
"codeception/module-doctrine2": "dev-master | ^1.0",
"codeception/module-phpbrowser": "dev-master | ^1.0",
"codeception/module-rest": "dev-master | ^1.0",
"codeception/module-sequence": "dev-master | ^1.0",
"vlucas/phpdotenv": "^3.6"
},
"autoload":{
"classmap": ["src/"]
},
"config": {
"classmap-authoritative": true
}
}
Loading

0 comments on commit 1211886

Please sign in to comment.