Skip to content

Commit 2f8d8e4

Browse files
committed
Improve README and CI
1 parent 7c24114 commit 2f8d8e4

File tree

8 files changed

+659
-608
lines changed

8 files changed

+659
-608
lines changed

.travis.yml

Lines changed: 13 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,25 @@
1-
language: php
1+
env:
2+
global:
3+
secure: sYePGMV6S8rUks5i3BRBgNHXv2yDP6vJOeHJQt0Cej9ZFNC70GhiGENblrQ0DC1wqlwgsLoGOt6QEVgBlvlceEIPBNxdLNU/7fHIR+AEi3RjXfIzpf1C7ZrBS3kCxu2CjZ4YzkonD0YTRTatQfJI5GT/ABdokn3jqePq5ffwNu9HmzkRkc0r2eP4l7M97JF19XAGBw99gaTfv6AMMROwcMuCzAoCTo8dWy3jsKUVmUOVQtRjQyTO9BX2M5HLUfVUYHS4XGZ44BAanmmsAri6TpaBN7bSWDHO56Vx4Gl0a2tBPwoYFpoAYZH87/sT3NwxQo8NIgpzk5QElKOYbJirStqYZRFtUX+GbOrmj+6kHvTGuDzYfhEKS9FjUw6ueDrQs2riknhBEeHp7K179ejT7y6NwicEpRhIXM8wSgjq37YjLFW5dkbVtwLd/Dyv3KNGRlMRNR6bOmXRklIpJ+UkXaFmq3hHJsKongFNrLxpLhBRa4EonkPwQTccKW+B/vo24Fo8d5SxL1UmT1PBRSpauEJe4k/nMNAc4WUdhWgAavNnoW3CHPou2e2v3d3FFl6VnHw3KC8scU4j9eMuNlcqivJQHt3NkPTIqoMGjlzYmWwqLPppAsyeRv9W/TCjZmMKG7ClRUdFIRsF80LmekAjTVHUDt8+ZGiqZlFMiSoHB6M=
24

5+
language: php
36
sudo: false
4-
57
matrix:
68
include:
7-
- php: '5.4'
8-
- php: '5.5'
9-
- php: '5.6'
10-
env:
11-
- EXECUTE_AFTER_SCRIPT=true
12-
- php: '7.0'
13-
- php: '7.1'
14-
15-
addons:
16-
apt:
17-
packages:
18-
- graphviz
9+
- php: '7.2'
10+
- php: '7.3'
11+
env:
12+
- EXECUTE_AFTER_SCRIPT=true
1913

2014
cache:
2115
directories:
2216
- "$HOME/.composer/cache"
23-
17+
2418
before_install:
25-
- mkdir -p ~/.composer
26-
- cp .travis.composer.json ~/.composer/config.json
27-
- composer self-update
28-
- composer install --prefer-dist --dev
29-
- pear channel-discover pear.phpdoc.org
30-
- pear install phpdoc/phpDocumentor
31-
- phpenv rehash
32-
33-
before_script:
34-
- mkdir -p build/{logs,coverage,phpdoc}
19+
- travis_retry composer self-update
20+
- travis_retry composer update --prefer-dist --no-interaction --prefer-stable --no-suggest
3521

3622
script:
37-
- cd tests
38-
- phpunit -d max_execution_time=0 --coverage-text --coverage-clover ../build/logs/clover.xml --coverage-html ../build/coverage/
39-
- cd ..
40-
23+
- composer test:ci
4124
after_script:
42-
- if [[ $EXECUTE_AFTER_SCRIPT == 'true' ]]; then php vendor/bin/coveralls --verbose --config;fi
43-
- if [[ $EXECUTE_AFTER_SCRIPT == 'true' ]]; then phpdoc -d "./src" -t "./build/phpdoc" --template="responsive-twig";fi
44-
- if [[ $EXECUTE_AFTER_SCRIPT == 'true' ]]; then bash <(curl -s https://gist.githubusercontent.com/neilime/769d733c52acdecea8d2548fb3aca3ff/raw/travis_ci_php_publish_build.sh);fi
25+
- if [[ $EXECUTE_AFTER_SCRIPT == 'true' ]]; then bash <(curl -s https://gist.githubusercontent.com/neilime/769d733c52acdecea8d2548fb3aca3ff/raw/travis_ci_php_publish_build.sh);fi

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
# Php CSS Lint
22

3-
[![Build Status](https://travis-ci.org/neilime/php-css-lint.svg?branch=master)](https://travis-ci.org/neilime/php-css-lint)
4-
[![Latest Stable Version](https://poser.pugx.org/neilime/php-css-lint/v/stable.svg)](https://packagist.org/packages/neilime/php-css-lint)
5-
[![Total Downloads](https://poser.pugx.org/neilime/php-css-lint/downloads.svg)](https://packagist.org/packages/neilime/php-css-lint)
6-
[![Coverage Status](https://coveralls.io/repos/github/neilime/php-css-lint/badge.svg?branch=master)](https://coveralls.io/github/neilime/php-css-lint?branch=master)
3+
[![Build Status](https://travis-ci.org/neilime/php-css-lint.png?branch=master)](https://travis-ci.org/neilime/php-css-lint)
4+
[![Coverage Status](https://coveralls.io/repos/github/neilime/php-css-lint/badge.svg)](https://coveralls.io/github/neilime/php-css-lint)
5+
[![Latest Stable Version](https://poser.pugx.org/neilime/php-css-lint/v/stable.png)](https://packagist.org/packages/neilime/php-css-lint)
6+
[![Total Downloads](https://poser.pugx.org/neilime/php-css-lint/downloads.png)](https://packagist.org/packages/neilime/php-css-lint)
7+
8+
Introduction
9+
------------
710

811
_Php CSS Lint_ is a php script that lint css files and strings :
912

@@ -30,8 +33,6 @@ _Php CSS Lint_ is a php script that lint css files and strings :
3033

3134
If this project helps you reduce time to develop and/or you want to help the maintainer of this project, you can make a donation, thank you.
3235

33-
<a href='https://pledgie.com/campaigns/33252'><img alt='Click here to lend your support to: php-css-lint and make a donation at pledgie.com !' src='https://pledgie.com/campaigns/33252.png?skin_name=chrome' border='0' ></a>
34-
3536
# Contributing
3637

3738
If you wish to contribute to this project, please read the [CONTRIBUTING.md](CONTRIBUTING.md) file.
@@ -50,7 +51,7 @@ Name | Version
5051
### With composer (the faster way)
5152

5253
```bash
53-
$ php composer.phar install neilime/php-css-lint
54+
$ php composer.phar install neilime/php-css-lint
5455
```
5556

5657
### By cloning project (manual)

composer.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "library",
44
"description": "Powerfull & memory efficiant CSS linter for PHP",
55
"keywords": ["CSS", "lint", "linter", "syntax", "validation"],
6-
"homepage": "http://neilime.github.io/php-css-lint/",
6+
"homepage": "https://neilime.github.io/php-css-lint/",
77
"license": "MIT",
88
"authors": [
99
{
@@ -27,11 +27,14 @@
2727
}
2828
},
2929
"require": {
30-
"php": ">=5.3.3"
30+
"php": "^7.2"
3131
},
3232
"require-dev": {
33-
"phpunit/phpunit": "4.*.*",
34-
"satooshi/php-coveralls": "1.*.*"
33+
"phpunit/phpunit": "^7 || ^8.2"
34+
},
35+
"scripts": {
36+
"test": "cd tests && phpunit -d max_execution_time=0 && cd ..",
37+
"test:ci": "cd tests && phpunit -d max_execution_time=0 --coverage-text --coverage-clover ../build/logs/clover.xml --coverage-html ../build/coverage/ && cd .."
3538
},
3639
"bin": [
3740
"scripts/php-css-lint"

0 commit comments

Comments
 (0)