Skip to content

Commit

Permalink
Added travis yml.
Browse files Browse the repository at this point in the history
  • Loading branch information
arshadkhan53 committed May 11, 2022
1 parent 423f6ae commit 92f4aaf
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
language: php
dist: trusty

services:
- docker

php:
- 8.0
before_install:
- curl -LO https://raw.githubusercontent.com/drud/ddev/master/scripts/install_ddev.sh && bash install_ddev.sh
- ddev
25 changes: 25 additions & 0 deletions RoboFile.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

/**
* Base tasks for setting up a module to test within a full Drupal environment.
*
* @class RoboFile
* @codeCoverageIgnore
*/
class RoboFile extends \Robo\Tasks
{

public function __construct()
{
$this->stopOnFail();
}

public function jobRunCodingStandardCheck() {
return $this->taskExecStack()
->stopOnFail()
->exec('vendor/bin/phpcs --config-set installed_path vendor/drupal/coder/coder_sniffer')
->exec('vendor/bin/phpcs --standard=Drupal web/modules')
->exec('vendor/bin/phpcs --standard=DrupalPractice web/modules')
->run();
}
}
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"pantheon-upstreams/upstream-configuration": "self.version"
},
"require-dev": {
"drupal/core-dev": "^9.2"
"drupal/core-dev": "^9.2",
"phpspec/prophecy-phpunit": "^2"
},
"conflict": {
"drupal/drupal": "*"
Expand Down
54 changes: 53 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 92f4aaf

Please sign in to comment.