Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
tmilos committed Dec 19, 2016
1 parent 84df322 commit a2948fb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
13 changes: 6 additions & 7 deletions .travis.yml
@@ -1,23 +1,22 @@
language: php

php:
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
- 7.1

before_install:
- composer self-update
- composer --version
- wget http://get.sensiolabs.org/php-cs-fixer.phar -O php-cs-fixer.phar
- php php-cs-fixer.phar --version

install:
- COMPOSER_ROOT_VERSION=dev-master composer update --prefer-source $COMPOSER_FLAGS
- COMPOSER_ROOT_VERSION=dev-master composer update --prefer-source

script:
- php php-cs-fixer.phar fix --dry-run -v
- bin/phpunit --coverage-clover build/logs/clover.xml
- if [ "$TRAVIS_PHP_VERSION" == "7.0" ]; then php php-cs-fixer.phar fix --dry-run -v; fi
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml

after_script:
- php bin/coveralls -v
- if [ "$TRAVIS_PHP_VERSION" == "7.0" ]; then vendor/bin/coveralls -v; fi
5 changes: 5 additions & 0 deletions README.md
Expand Up @@ -2,6 +2,11 @@

PHP implementation of Lexical Analyzer.

[![Author](http://img.shields.io/badge/author-@tmilos-blue.svg?style=flat-square)](https://twitter.com/tmilos77)
[![Build Status](https://travis-ci.org/tmilos/lexer.svg?branch=master)](https://travis-ci.org/tmilos/lexer)
[![Coverage Status](https://coveralls.io/repos/github/tmilos/lexer/badge.svg?branch=master)](https://coveralls.io/github/tmilos/lexer?branch=master)
[![License](https://img.shields.io/packagist/l/tmilos/lexer.svg)](https://packagist.org/packages/tmilos/lexer)

> **Warning**
> This is not a GENERATOR like classical lex is. It does not produce any php code. It's a simple plain scanner
> of the given input string and tokenizer into given set of tokens by matching regular expressions.
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -15,6 +15,7 @@
},
"minimum-stability": "stable",
"require-dev": {
"phpunit/phpunit": "~5.6"
"phpunit/phpunit": "~5.6",
"satooshi/php-coveralls": "^1.0"
}
}

0 comments on commit a2948fb

Please sign in to comment.