Friday, Jul 26, 2019
I have been a user of GitLab CI for a long time. I use it to check my own code before deploying and to manage deployment and building for most of the applications that I use. I use Yaml a lot, in fact, I am not sure that there are many people in DevOps that do not use Yaml a lot, it is pretty omnipotent inside modern tools.
Linting Yaml I am always trying to find ways to make my code more readable and therefore running linters over my code is a great way to do that. Yamllint is a super way of being able to lint yaml.
...
Wednesday, Apr 3, 2019
Anyone who has maintained open-source software has probably felt the burnout or challenge of maintaining software around their day job. Wouldn’t it be great if you could use CI to get some merge/pull requests against your projects when the coding standards that you are following are updated? If the answer is yes then look no further.
Drupal Coding Standard Patch Generation phpcs-drupal: image: willhallonline/drupal-phpcs:alpine allow_failure: yes script: - phpcs ./ phpcbf-drupal: image: willhallonline/drupal-phpcs:alpine allow_failure: yes script: - set +e - phpcbf ./ - git status - git -c user.name='Will Hall' -c user.email='incoming+willhallonline/[email protected]' commit -am "Coding Standards Formatting" - git diff origin/$CI_COMMIT_REF_NAME > $CI_COMMIT_SHA.patch artifacts: paths: - $CI_COMMIT_SHA.patch expire_in: 1 week The process of this is rather simple:
...
Connect on LinkedIn. Follow me on Twitter. Grab the RSS Feed