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

Add ranges support #1

Open
wants to merge 18 commits into
base: add-ranges-support
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/tests export-ignore
34 changes: 34 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Tests
on:
push:
branches:
- 'master'
pull_request: ~
jobs:
tests:
name: PHP ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- php: '7.0'
- php: '7.1'
- php: '7.2'
- php: '7.3'
- php: '7.4'
- php: '8.0'
- php: '8.1'
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: xdebug
# Read-only OAuth token to work around GitHub API rate limits
- run: composer config -g github-oauth.github.com "4b3b0a83ea27d9544d3608a384c7a14625a98804"
- run: composer --version
- run: composer validate --strict
- run: composer update --prefer-dist
- run: vendor/bin/phpunit -c phpunit.xml --colors=always --coverage-clover=coverage.xml
- run: bash <(curl -s https://codecov.io/bash) -F all
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
composer.lock
.php_cs.cache
.phpunit.result.cache
/vendor/
46 changes: 0 additions & 46 deletions .travis.yml

This file was deleted.

14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Query Translator

[![Build Status](https://img.shields.io/travis/netgen/query-translator.svg?style=flat-square)](https://travis-ci.org/netgen/query-translator)
[![Build Status](https://img.shields.io/github/workflow/status/netgen/query-translator/Tests?style=flat-square)](https://github.com/netgen/query-translator/actions?query=workflow%3ATests)
[![Code Coverage](https://img.shields.io/codecov/c/github/netgen/query-translator.svg?style=flat-square)](https://codecov.io/gh/netgen/query-translator)
[![Downloads](https://img.shields.io/packagist/dt/netgen/query-translator.svg?style=flat-square)](https://packagist.org/packages/netgen/query-translator)
[![Latest stable](https://img.shields.io/packagist/v/netgen/query-translator.svg?style=flat-square)](https://packagist.org/packages/netgen/query-translator)
Expand Down Expand Up @@ -63,7 +63,11 @@ points to customize various parts of the translator to fit your needs. See

## Run the demo

1. Clone the repository and position into it
2. Generate autoloader using composer `composer dump-autoload -o`
3. Start the web server with demo document root `php -S localhost:8005 -t demo`
4. Open [http://localhost:8005](http://localhost:8005) in your browser ![Query Translator demo](demo/animation.gif)
Demo is available as a separate repository at [netgen/query-translator-demo](https://github.com/netgen/query-translator-demo).

Steps for running the demo:

1. Create the demo project using composer `composer create-project netgen/query-translator-demo`
2. Position into the demo project directory `cd query-translator-demo`
3. Start the web server with `src` as the document root `php -S localhost:8005 -t src`
4. Open [http://localhost:8005](http://localhost:8005) in your browser ![Query Translator demo](https://raw.githubusercontent.com/netgen/query-translator-demo/master/src/animation.gif)
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@
}
],
"require": {
"php": "^5.6||^7.0"
"php": "^7.0||^8.0"
},
"require-dev": {
"phpunit/phpunit": "^5.7||^6.0 ||^7.0",
"phpunit/phpunit": "*",
"symfony/phpunit-bridge": "*",
"friendsofphp/php-cs-fixer": "^2.11"
},
"autoload": {
Expand Down
Binary file removed demo/animation.gif
Binary file not shown.
61 changes: 0 additions & 61 deletions demo/index.php

This file was deleted.

40 changes: 0 additions & 40 deletions demo/script.js

This file was deleted.

Loading