Skip to content

Commit

Permalink
[FEATURE] faster travis (#2)
Browse files Browse the repository at this point in the history
* [WIP] update readme

* [FEATURE] add SensioLabsInsights shield

* [BUGFIX] fix travis caching

* [FEATURE] speed up travis if cache is found
  • Loading branch information
Kanti authored Jul 26, 2017
1 parent de9d9c1 commit c016a22
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@

/.idea/
/vendor/
composer.lock
17 changes: 10 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ language: php
dist: trusty
sudo: false

git:
depth: 5

php:
- 5.6
- 7.0
Expand All @@ -11,23 +14,23 @@ php:
env:
matrix:
-
- DEPENDENCIES=--prefer-lowest
- REQUIRE=composer require phpro/grumphp:* --no-progress --profile --no-scripts --no-suggest
- dependencies=lowest
- dependencies=highest

cache:
directories:
- .composer/cache
- $HOME/.composer/cache

matrix:
fast_finish: true

before_install:
- alias composer=composer\ --no-interaction && composer selfupdate
- composer global require hirak/prestissimo
- phpenv config-rm xdebug.ini || echo "xdebug not available"

install:
- travis_retry composer update --no-progress --profile --no-scripts --no-suggest $DEPENDENCIES
- travis_retry $REQUIRE
- if [ -z "$dependencies" ]; then composer install --no-progress --no-scripts --no-suggest -n; fi;
- if [ "$dependencies" = "lowest" ]; then composer update --no-progress --no-scripts --no-suggest -n --prefer-lowest; fi;
- if [ "$dependencies" = "highest" ]; then composer require phpro/grumphp:* --no-progress --no-scripts --no-suggest -n; fi;

script:
- ./vendor/bin/grumphp run
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
[![Packagist](https://img.shields.io/packagist/l/pluswerk/grumphp-xliff-task.svg?style=flat-square)](https://opensource.org/licenses/LGPL-3.0)
[![Travis](https://img.shields.io/travis/Kanti/LJSON.svg?style=flat-square)](https://travis-ci.org/Pluswerk/grumphp-xliff-task)
[![Code Climate](https://img.shields.io/codeclimate/github/pluswerk/grumphp-xliff-task.svg?style=flat-square)](https://codeclimate.com/github/pluswerk/grumphp-xliff-task)
[![SensioLabsInsight](https://img.shields.io/sensiolabs/i/0dffac96-6dda-48b1-b0a4-452bddaffc50.svg?style=flat-square)](https://insight.sensiolabs.com/projects/0dffac96-6dda-48b1-b0a4-452bddaffc50)
# grumphp-xliff-task
GrumPHP task to lint xlf/xliff Files
### grumphp.yml:
Expand Down

0 comments on commit c016a22

Please sign in to comment.