Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit f197b62

Browse files
committed
Merge pull request #127 from grasmash/blt-coder
Make phpcs test 1st for faster test fail
2 parents 441e8d7 + d5e32c6 commit f197b62

File tree

3 files changed

+43
-6
lines changed

3 files changed

+43
-6
lines changed

.travis.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ before_script:
5050
- git diff --exit-code
5151

5252
script:
53+
# Ensure code quality of 'blt' itself.
54+
- phpcs --standard=./vendor/drupal/coder/coder_sniffer/Drupal/ruleset.xml tests
5355
# Generate a new 'blted' project.
5456
- ./blt.sh configure
5557
# The local.hostname must be set to 127.0.0.1:8888 because we are using drush runserver to run the site on Travis CI.
@@ -61,11 +63,9 @@ script:
6163
- ./blt.sh ci:build:validate:test -Dcreate_alias=false -Dbehat.run-server=true -Dbehat.launch-phantom=true
6264
# Deploy build artifact.
6365
- ./blt.sh deploy:artifact:build -Ddeploy.commitMsg="Automated commit by Travis CI for Build ${TRAVIS_BUILD_ID}" -Ddeploy.branch="8.x-build"
64-
# Validate and run 'blt' phpunit tests.
65-
- phpcs --standard=../blted8/vendor/drupal/coder/coder_sniffer/Drupal/ruleset.xml tests
6666
# Switch back to 'blt' directory
6767
- cd ../blt
68-
# Run phpunit tests, excluding deploy-push tests.
68+
# Run 'blt' phpunit tests, excluding deploy-push tests.
6969
- phpunit tests/phpunit --exclude-group deploy-push
7070

7171
deploy:

composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"phpunit/phpunit": "5.4.*",
99
"platinumpixs/phing-random-string": "dev-master",
1010
"squizlabs/php_codesniffer": "^2.4",
11-
"symfony/yaml": "~2.7"
11+
"symfony/yaml": "~2.7",
12+
"drupal/coder": "~8.2"
1213
}
1314
}

composer.lock

+38-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)