bitbucket-pipelines.yml in Permissions by Term 8.2
File
bitbucket-pipelines.yml
View source
- image: jepster/drupal-dev:1.0.2
- clone:
- depth: full
- options:
- size: 2x
- pipelines:
- default:
- - step:
- name: Build and test
- caches:
- - composer
- script:
- - nvm install 9.11.1
- - cd ..
- - mkdir permissions_by_term/
- - mv build/* permissions_by_term/
- - mv permissions_by_term/ build/
- - cd build
- - composer create-project drupal-composer/drupal-project:8.x-dev drupal --stability dev --no-interaction
- - (cd drupal && composer require behat/behat:^3.0 behat/mink-extension:^2.2 drupal/drupal-extension:^3.2 phpunit/phpunit:^7.0 mikey179/vfsstream:^1.6 phpstan/phpstan:~0.12.75 phpstan/extension-installer:~1.1.0 mglaman/phpstan-drupal:~0.12.8 --dev)
- - mv permissions_by_term drupal/web/modules/
- - (cd drupal && cp web/modules/permissions_by_term/tests/phpstan* . && vendor/bin/phpstan analyse web/modules/permissions_by_term/)
- - (cd drupal/web/modules/permissions_by_term/tests/ && ../../../../vendor/bin/phpunit --testdox)
- - (cd drupal/web/modules/permissions_by_term/js/ && npm install && npm run bat)
- - (cd drupal/web && ../vendor/drush/drush/drush si standard --db-url=mysql://root:testing@127.0.01/testing -y && ../vendor/drush/drush/drush en permissions_by_term -y)
- - (cd drupal/web && screen -dmS php-server php -S localhost:80 .ht.router.php)
- - (cd drupal/web && ../vendor/drush/drush/drush pm:uninstall page_cache -y && ../vendor/drush/drush/drush en dynamic_page_cache -y)
- - (cd drupal/web && cp modules/permissions_by_term/tests/src/Behat/behat.yml.dist behat.yml && ../vendor/bin/behat --strict)
- services:
- - testing
- - mysql
- definitions:
- services:
- testing:
- image: darksolar/selenium-chrome-headless
- mysql:
- image: mechtecs/docker_big_mysql
- environment:
- MYSQL_ROOT_PASSWORD: testing
- MYSQL_DATABASE: testing