Skip to content

Commit

Permalink
Adding site install support.
Browse files Browse the repository at this point in the history
  • Loading branch information
arshadkhan53 committed Jul 30, 2021
1 parent 3f0f01c commit 45c1101
Show file tree
Hide file tree
Showing 4 changed files with 1,561 additions and 28 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Expand Up @@ -6,12 +6,16 @@ services:
- docker

before_install:
- docker run --name drupal-cdci -d drupal:9.2-php7.4-apache-buster
- docker network create drupal-cicd-network
- docker run --name drupal-cdci --net drupal-cicd-network -d drupal:9.2-php7.4-apache-buster
- docker run --net drupal-cicd-network --name db-cicd -e MARIADB_DATABASE=drupal MARIADB_ROOT_PASSWORD=root -pw -d mariadb:10.2
- docker exec -it drupal-cdci /bin/bash -c "composer install;"
- sudo apt-get install nodejs -y

script:
- composer install
- vendor/bin/phpcs --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,ym web/modules/custom/
- vendor/bin/drush si --db-url=mysql://root:root@db-cicd:3306/drupal
- vendor/bin/drush status
- node -v
- npm -v
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -19,7 +19,8 @@
"drupal/coder": "^8.3",
"drupal/core-composer-scaffold": "^9.2",
"drupal/core-project-message": "^9.2",
"drupal/core-recommended": "^9.2"
"drupal/core-recommended": "^9.2",
"drush/drush": "^10.0"
},
"conflict": {
"drupal/drupal": "*"
Expand Down

0 comments on commit 45c1101

Please sign in to comment.