Skip to content

Commit

Permalink
Added package files
Browse files Browse the repository at this point in the history
  • Loading branch information
Naktibalda committed Oct 10, 2019
1 parent 135d90f commit db9f605
Show file tree
Hide file tree
Showing 13 changed files with 481 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Exclude files that don't need to be present in packages (so they're not downloaded by Composer)
/tests export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/Robofile.php export-ignore
/*.md export-ignore
/*.yml export-ignore
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/.idea/
/vendor/
/composer.lock
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
language: php

php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3

# faster builds on new travis setup not using sudo
sudo: false

install:
- '[[ -z "$CI_USER_TOKEN" ]] || composer config github-oauth.github.com ${CI_USER_TOKEN};'
- travis_retry composer self-update && composer --version
- travis_retry composer update --prefer-dist --no-interaction

script:
- php ./vendor/bin/codecept run
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\Doctrine2;
use Codeception\Util\DocumentationHelpers;

class RoboFile extends \Robo\Tasks
{
use DocumentationHelpers;

public function buildDocs()
{
$className = Doctrine2::class;
$classPath = str_replace('\\', '/', $className);
$source = "https://github.com/Codeception/module-doctrine2/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);
}
}
7 changes: 7 additions & 0 deletions codeception.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
paths:
tests: tests
output: tests/_output
data: tests/_data
support: tests/_support
envs: tests/_envs
actor_suffix: Tester
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-doctrine2",
"description":"Doctrine2 module for Codeception",
"keywords":["codeception", "doctrine2"],
"homepage":"http://codeception.com/",
"type":"library",
"license":"MIT",
"authors":[
{
"name":"Michael Bodnarchuk"
},
{
"name":"Alex Kunin"
}
],
"minimum-stability": "RC",

"require": {
"php": ">=5.6.0 <8.0",
"codeception/codeception": "4.0.x-dev | ^4.0"
},
"require-dev": {
"codeception/util-robohelpers": "dev-master",
"doctrine/orm": "^2",
"doctrine/annotations": "^1",
"doctrine/data-fixtures": "^1",
"ramsey/uuid-doctrine": "^1.5"
},
"autoload":{
"classmap": ["src/"]
},
"config": {
"classmap-authoritative": true
}
}

0 comments on commit db9f605

Please sign in to comment.