Skip to content
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

Adding contributing guide #3

Merged
merged 2 commits into from
Jan 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
32 changes: 32 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Contributing

Hi! Thank you for considering contributing to GraphQLite. You'll
find below useful information about how to contribute to the GraphQLite project.

## Contributing code

### Install from sources

1. Verify your PHP version (>= 7.1)
2. Fork this repository
3. Run `composer install`

### Working with git

1. Create your feature branch (`git checkout -b my-new-feature`)
2. Commit your changes (`git commit -am 'Add some feature'`)
3. Push to the branch (`git push origin my-new-feature`)
4. Create a new pull request

### Testing

1. Run static analyzer (`composer phpstan`)
2. Run tests (`./vendor/bin/phpunit`)

## Reporting bugs and feature request

Your issue or feature request may already be reported!
Please search on the [issue tracker](../../../issues) before creating one.

If you do not find any relevant issue or feature request, feel free to
add a new one!
21 changes: 12 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ language: php
cache:
directories:
- $HOME/.composer/cache
matrix:
jobs:
include:
- php: 7.3
- stage: test
php: 7.3
env: PREFER_LOWEST=""
before_script:
- &composerupdate
Expand All @@ -15,30 +16,32 @@ matrix:
- composer phpstan
after_script:
- ./vendor/bin/coveralls -v
- php: 7.2
- stage: test
php: 7.2
env: PREFER_LOWEST=""
before_script:
- *composerupdate
script:
- *phpunit
- php: 7.1
- stage: test
php: 7.1
env: PREFER_LOWEST=""
before_script:
- *composerupdate
script:
- *phpunit
- php: 7.1
- stage: test
php: 7.1
env: PREFER_LOWEST="--prefer-lowest"
before_script:
- *composerupdate
script:
- *phpunit
- name: "Doc generation"
- stage: doc
if: branch = master
name: "Doc generation"
language: node_js
node_js: 8
branches:
only:
- master
cache:
yarn: true
script:
Expand Down