Skip to content

Commit

Permalink
Do code linting in Travis.
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-1-anderson committed Sep 21, 2017
1 parent dec371f commit 5760f8f
Show file tree
Hide file tree
Showing 4 changed files with 1,036 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
language: php

branches:
# Only test the master branch and SemVer tags.
only:
- master
- /^[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+.*$/

matrix:
include:
- php: 7.1
env: dependencies=highest
- php: 7.0.11
- php: 5.6
- php: 5.5
env: dependencies=lowest

sudo: false

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

before_script:
# Do highest/lowest testing by installing dependencies per the 'dependencies' setting
- if [ -z "$dependencies" ]; then composer install --prefer-dist; fi;
- if [ "$dependencies" = "lowest" ]; then composer update --prefer-dist --prefer-lowest -n; fi;
- if [ "$dependencies" = "highest" ]; then composer update --prefer-dist -n; fi;

script:
- composer -n test

after_success:
- travis_retry 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 @@ -3,6 +3,8 @@ composer-lock-updater

Run composer-lock-updater in your CI system for bot-powered `composer.lock` pull requests.

[![Build Status](https://travis-ci.org/danielbachhuber/composer-lock-updater.svg?branch=master)](https://travis-ci.org/danielbachhuber/composer-lock-updater)

When you run `clu`, it:

1. Clones a given GitHub repository to a working `/tmp/` directory.
Expand Down
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
],
"require": {},
"require-dev": {
"satooshi/php-coveralls": "~1",
"phpunit/php-code-coverage": "~2|~4",
"squizlabs/php_codesniffer": "^2.7"
},
"bin": [
Expand Down
Loading

0 comments on commit 5760f8f

Please sign in to comment.