Skip to content

Commit

Permalink
Add travis-ci and coveralls integration
Browse files Browse the repository at this point in the history
  • Loading branch information
jwentworth committed Nov 9, 2014
1 parent 1bfae1d commit 5b891cd
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 886 deletions.
6 changes: 6 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
service_name: travis-ci

# for php-coveralls
src_dir: src
coverage_clover: ./docs/coverage/clover.xml
json_path: ./docs/coverage/coveralls-upload.json
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## generic files to ignore
*~
*.lock
.DS_Store
.DS_Store?
*.swp
*.out
*.lock
._*
.Spotlight-V100
.Trashes
Expand All @@ -13,9 +13,9 @@ ehthumbs.db
Thumbs.db

## composer related
composer.lock
/vendor/
composer.phar
composer.lock

## editor related
.idea
Expand Down
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
language: php
php:
- 5.6
- 5.5
- 5.4
- 5.3
- hhvm
install:
- composer install
script:
- phpunit --coverage-text
after_script:
- php vendor/bin/coveralls -v
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ the file location and timestamp of the assets. This allows cache busting to be
used in situations where file modification timestamp may change without content
changing.

[![Build Status](https://travis-ci.org/course-hero/assetic-filehash-buster.svg)](https://travis-ci.org/course-hero/assetic-filehash-buster) [![Coverage Status](https://img.shields.io/coveralls/course-hero/assetic-filehash-buster.svg)](https://coveralls.io/r/course-hero/assetic-filehash-buster)

Installation
-------------
Install via composer:
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"kriswallsmith/assetic": "~1.2"
},
"require-dev": {
"phpunit/phpunit": "~4"
"phpunit/phpunit": "~4",
"satooshi/php-coveralls": "dev-master"
},
"autoload": {
"psr-0": { "CourseHero\\AsseticFilehashBuster": "src/" }
Expand Down
Loading

0 comments on commit 5b891cd

Please sign in to comment.