Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / permissions_by_term / bitbucket-pipelines.yml
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.
4 # -----
5 # You can specify a custom docker image from Docker Hub as your build environment.
6 image: derh4nnes/pipeline-behat:latest
7 clone:
8   depth: full
9
10 pipelines:
11   default:
12     - step:
13         name: Build and test
14         caches:
15           - composer
16         script:
17           - apt-get update
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
20           - bash install_nvm.sh
21           - source ~/.profile
22           - nvm install 9.11.1
23           - export PATH="$HOME/.composer/vendor/bin:$PATH"
24           - cd ..
25           - mkdir permissions_by_term/
26           - mv build/* permissions_by_term/
27           - mv permissions_by_term/ build/
28           - cd 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)
39         services:
40           - testing
41     - step:
42         name: Deploy
43         script:
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"
48           - git push -u d.o
49           - git push --tags
50 definitions:
51   services:
52     testing:
53       image: darksolar/selenium-chrome-headless