Skip to content

Commit

Permalink
Add common files
Browse files Browse the repository at this point in the history
  • Loading branch information
knesmeyanov committed Jan 18, 2019
1 parent 79aaaf8 commit 7157de8
Show file tree
Hide file tree
Showing 15 changed files with 3,748 additions and 6 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.yml]
indent_style = space
indent_size = 2
18 changes: 18 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
* text=auto
*.pp linguist-language=EBNF
*.pp2 linguist-language=EBNF
*.gql linguist-language=GraphQL
*.graphqls linguist-language=GraphQL
*.graphql linguist-language=GraphQL
*.phpt linguist-language=PHP

/.github export-ignore
/.packages export-ignore
/tests export-ignore
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.travis.yml export-ignore
phpunit.xml export-ignore
CONTRIBUTING.md export-ignore
CODE_OF_CONDUCT.md export-ignore
17 changes: 17 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Thank you for contributing Railt!
=========================================

Thank you for considering contributing to the Railt Framework!
The contribution guide can be found in the [documentation](https://ru.railt.org/docs/extra/contributions).

English and Russian languages are available.
English is better but Russian is also OK.

## If you creating issue...

Please write following issue template.
Do not forget describing how to reproduce.

## If you creating pull request...

Please write following pull request template.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
### Expected Behavior

...

### What happens instead?

...

### Description

...

### Steps To Reproduce

...

### Environment

- Railt Version: dev-master
- PHP Version: 7.1
11 changes: 11 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### What was a problem?

...

### How this PR fixes the problem?

...

### Additional Comments (if any)

...
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.idea/
vendor/
composer.phar
.DS_Store
Thumbs.db
*.phpt.out
*.phpt.exp
*.phpt.diff
46 changes: 46 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
language: php

php:
- 7.1
- 7.2
- 7.3
- nightly

env:
matrix:
- setup=lowest
- setup=highest

matrix:
fast_finish: true
allow_failures:
- php: nightly
- php: 7.3

sudo: required

addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-5
- g++-5

cache:
directories:
- $HOME/.composer/cache

before_script:
- sudo unlink /usr/bin/gcc && sudo ln -s /usr/bin/gcc-5 /usr/bin/gcc
- sudo unlink /usr/bin/g++ && sudo ln -s /usr/bin/g++-5 /usr/bin/g++
- gcc --version
- g++ --version
- pecl install -f parle
- echo "extension=parle.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- composer self-update -q
- if [ -z "$setup" ]; then composer install; fi;
- if [ "$setup" = "lowest" ]; then composer update --prefer-lowest --no-interaction --prefer-dist --no-suggest; fi;
- if [ "$setup" = "highest" ]; then composer update --no-interaction --prefer-dist --no-suggest; fi;

script: vendor/bin/phpunit
10 changes: 10 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
The Railt code of conduct is derived from the Ruby code of conduct.
Any violations of the code of conduct may be reported to Kirill Nesmeyanov (nesk@xakep.ru)

- Participants will be tolerant of opposing views.

- Participants must ensure that their language and actions are free of personal attacks and disparaging personal remarks.

- When interpreting the words and actions of others, participants should always assume good intentions.

- Behavior which can be reasonably considered harassment will not be tolerated.
6 changes: 6 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Railt Contribution Guide

Thank you for considering contributing to the Railt framework!
The contribution guide can be found in the [Railt documentation](https://railt.org/docs/extra/contributions).


2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 Kirill Nesmeyanov
Copyright © 2017-2019 Kirill Nesmeyanov

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Symfony Bundle for Railt

<p align="center">
<a href="https://travis-ci.org/railt/symfony-bundle"><img src="https://travis-ci.org/railt/symfony-bundle.svg?branch=master&" alt="Travis CI" /></a>
<a href="https://scrutinizer-ci.com/g/railt/symfony-bundle/?branch=master"><img src="https://scrutinizer-ci.com/g/railt/symfony-bundle/badges/quality-score.png?b=master&" alt="Scrutinizer CI" /></a>
<a href="https://scrutinizer-ci.com/g/railt/symfony-bundle/?branch=master"><img src="https://scrutinizer-ci.com/g/railt/symfony-bundle/badges/coverage.png?b=master&" alt="Code coverage" /></a>
<a href="https://travis-ci.org/railt/symfony-bundle"><img src="https://travis-ci.org/railt/symfony-bundle.svg?branch=1.3.x" alt="Travis CI" /></a>
<a href="https://scrutinizer-ci.com/g/railt/symfony-bundle/?branch=master"><img src="https://scrutinizer-ci.com/g/railt/symfony-bundle/badges/quality-score.png?b=1.3.x" alt="Scrutinizer CI" /></a>
<a href="https://scrutinizer-ci.com/g/railt/symfony-bundle/?branch=master"><img src="https://scrutinizer-ci.com/g/railt/symfony-bundle/badges/coverage.png?b=1.3.x" alt="Code coverage" /></a>
<a href="https://packagist.org/packages/railt/symfony-bundle"><img src="https://poser.pugx.org/railt/symfony-bundle/version?" alt="Latest Stable Version"></a>
<a href="https://packagist.org/packages/railt/symfony-bundle"><img src="https://poser.pugx.org/railt/symfony-bundle/v/unstable?" alt="Latest Unstable Version"></a>
<a href="https://raw.githubusercontent.com/railt/symfony-bundle/master/LICENSE"><img src="https://poser.pugx.org/railt/symfony-bundle/license?" alt="License MIT"></a>
Expand Down
11 changes: 9 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
"type": "symfony-bundle",
"description": "The Symfony Framework Bundle for Railt.",
"license": "MIT",
"keywords": [ "graphql", "railt", "symfony", "bundle", "adapter", "bridge" ],
"keywords": [
"graphql",
"railt",
"symfony",
"bundle",
"adapter",
"bridge"
],
"homepage": "http://railt.org",
"support": {
"issues": "https://github.com/railt/railt/issues",
Expand All @@ -17,7 +24,7 @@
],
"require": {
"php": ">=7.1",
"railt/railt": "1.3.*|dev-master",
"railt/railt": "~1.3.0|1.3.x-dev",
"symfony/framework-bundle": "~3.4|~4.0",
"symfony/console": "~3.4|~4.0",
"symfony/dependency-injection": "~3.4|~4.0"
Expand Down
Loading

0 comments on commit 7157de8

Please sign in to comment.