File tree 2 files changed +76
-0
lines changed
2 files changed +76
-0
lines changed Original file line number Diff line number Diff line change
1
+ language : php
2
+
3
+ php :
4
+ - 7.0
5
+ - 7.1
6
+ - 7.2
7
+ - 7.3
8
+ - nightly
9
+
10
+ matrix :
11
+ allow_failures :
12
+ - php : nightly
13
+
14
+ sudo : false
15
+
16
+ if : type = pull_request OR (type = push AND (branch = develop OR branch = master))
17
+
18
+ cache :
19
+ directories :
20
+ - $HOME/.composer/cache/files
21
+
22
+ install :
23
+ - git clone https://github.com/octobercms/october.git
24
+ - mkdir -p ./october/plugins/rainlab/builder
25
+ - mv !(october) october/plugins/rainlab/builder
26
+ - cd october
27
+ - composer install --no-interaction --no-progress --no-suggest
28
+ - cp config/cms.php config/testing/cms.php
29
+
30
+ before_script :
31
+ - cd ./plugins/rainlab/builder
32
+
33
+ script :
34
+ - ../../../vendor/bin/parallel-lint .
35
+ - ../../../vendor/bin/phpunit
36
+
37
+ jobs :
38
+ include :
39
+ - stage : code quality
40
+ if : type = pull_request
41
+ php : 7.1
42
+ script :
43
+ - git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" && git fetch
44
+ - ../../../vendor/bin/phpcs --colors -nq --report="full" --extensions="php" $(git diff --name-only HEAD origin/$TRAVIS_BRANCH)
45
+ - stage : code quality
46
+ if : type = push AND (branch = develop OR branch = master)
47
+ php : 7.1
48
+ script : ../../../vendor/bin/phpcs --colors -nq --report="full" --extensions="php" $(git show --name-only --pretty="" $TRAVIS_COMMIT)
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <ruleset name =" October CMS Plugins" >
3
+ <description >The coding standard for October CMS Plugins.</description >
4
+ <rule ref =" PSR2" >
5
+ <!--
6
+ Exceptions to the PSR-2 guidelines as per our Developer Guide:
7
+ https://octobercms.com/help/guidelines/developer#psr-exceptions
8
+ -->
9
+ <exclude name =" PSR1.Methods.CamelCapsMethodName.NotCamelCaps" />
10
+ <exclude name =" Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace" />
11
+ <exclude name =" PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace" />
12
+ </rule >
13
+
14
+
15
+ <rule ref =" PSR1.Classes.ClassDeclaration.MissingNamespace" >
16
+ <!--
17
+ Tests do not need a namespace defined
18
+ -->
19
+ <exclude-pattern >*/tests/*</exclude-pattern >
20
+ </rule >
21
+
22
+ <arg name =" extensions" value =" php" />
23
+ <arg name =" colors" />
24
+ <arg value =" nq" />
25
+
26
+ <file >.</file >
27
+ <exclude-pattern >*/assets/*</exclude-pattern >
28
+ </ruleset >
You can’t perform that action at this time.
0 commit comments