From fe457220e4a9e22f62e7351ac5d7cb95ad9190f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Sun, 22 Apr 2018 21:55:51 +0200 Subject: [PATCH] Run PHP CS Fixer in the CI. Add Travis badge. --- .travis.yml | 4 ++++ README.md | 2 ++ 2 files changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index 4935983b..0d2a9b1b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,9 +9,13 @@ cache: directories: - $HOME/.composer/cache +before_install: + - wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.11.1/php-cs-fixer.phar + before_script: - phpenv config-rm xdebug.ini - composer install script: - phpunit + - php php-cs-fixer.phar fix --dry-run --diff --no-ansi diff --git a/README.md b/README.md index 3f74a773..bbefc01b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # Panthère **A browser testing and web scraping library for [PHP](https://php.net) and [Symfony](https://symfony.com)** +[![Build Status](https://travis-ci.org/dunglas/panthere.svg?branch=master)](https://travis-ci.org/dunglas/panthere) + *Panthère* is a convenient standalone library to scrape websites and to run end-to-end tests **using real browsers**. Panthère is super powerful, it leverages [the W3C's WebDriver protocol](https://www.w3.org/TR/webdriver/) to drive native web browsers such as Google Chrome and Firefox.