1 # This is a sample build configuration for PHP.
2 # Check our guides at https://confluence.atlassian.com/x/e8YWN for more examples.
3 # Only use spaces to indent your .yml configuration.
5 # You can specify a custom docker image from Docker Hub as your build environment.
6 image: derh4nnes/pipeline-behat:latest
18 - apt-get install -y screen php7.1-sqlite libsqlite3-dev sqlite3
19 - curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh -o install_nvm.sh
23 - export PATH="$HOME/.composer/vendor/bin:$PATH"
25 - mkdir permissions_by_term/
26 - mv build/* permissions_by_term/
27 - mv permissions_by_term/ build/
29 - composer create-project drupal-composer/drupal-project:8.x-dev drupal --stability dev --no-interaction
30 - (cd drupal && composer require behat/behat:^3.0 behat/mink-extension:^2.2 drupal/drupal-extension:^3.2 --dev)
31 - mv permissions_by_term drupal/web/modules/
32 - (cd drupal/web/modules/permissions_by_term/tests/ && ../../../../vendor/bin/phpunit --testdox)
33 - (cd drupal/web/modules/permissions_by_term/js/ && npm install && npm run bat)
34 - (cd drupal/web && ../vendor/drush/drush/drush si standard --db-url=sqlite://sites/default/files/db.sqlite -y && ../vendor/drush/drush/drush en permissions_by_term -y)
35 - (cd drupal && cp web/modules/permissions_by_term/tests/src/Behat/composer-require-namespace.php . && php composer-require-namespace.php && composer dump-autoload)
36 - (cd drupal && cat composer.json)
37 - screen -dmS php-server php -S localhost:8000 -t ./drupal/web
38 - (cd drupal/web && cp modules/permissions_by_term/tests/src/Behat/behat.yml.dist behat.yml && ../vendor/bin/behat)
44 - apt-get update && apt-get install -y unzip git
45 - git remote add d.o jepSter@git.drupal.org:project/permissions_by_term.git
46 - git config --global push.default simple
47 - git config --global user.name "Peter Majmesku"
53 image: darksolar/selenium-chrome-headless