Skip to content

Commit

Permalink
Hook up Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Babker committed Aug 31, 2017
1 parent 4b19286 commit 9064526
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
language: php
sudo: false
dist: trusty

env:
global:
- RUN_PHPCS="no"

matrix:
include:
- php: 7.0
env: RUN_PHPCS="yes"

before_script:
# Make sure all dev dependencies are installed
- composer install

script:
- if [ "$RUN_PHPCS" == "yes" ]; then vendor/bin/phpcs --config-set installed_paths vendor/joomla/coding-standards && vendor/bin/phpcs -p --report=full --extensions=php --standard=ruleset.xml bin/ src/ www/; fi;
8 changes: 8 additions & 0 deletions ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,12 @@
<rule ref="Joomla.Commenting.FileComment.MissingPackageTag">
<exclude-pattern>*/phinx.php</exclude-pattern>
</rule>

<!-- Extend the line length to avoid the need for goofy concatenation or sprintf on a query string -->
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="250" />
<property name="absoluteLineLimit" value="0" />
</properties>
</rule>
</ruleset>

0 comments on commit 9064526

Please sign in to comment.