Skip to content

Commit 0743317

Browse files
committed
Also lint PHP files as part of CI build
1 parent 61b5ba2 commit 0743317

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ php:
66
before_script:
77
- nvm install 4
88
- npm install
9+
- composer install
910

1011
script:
1112
- npm test
13+
- composer test
1214

1315
notifications:
1416
irc:

DataValuesJavaScript.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
require_once __DIR__ . '/vendor/autoload.php';
1515
}
1616

17+
if ( !defined( 'MEDIAWIKI' ) ) {
18+
return 1;
19+
}
20+
1721
$GLOBALS['wgExtensionCredits']['datavalues'][] = [
1822
'path' => __DIR__,
1923
'name' => 'DataValues JavaScript',

0 commit comments

Comments
 (0)