Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
runner.yml.dist 3.01 KiB
Newer Older
drupal:
  root: "build"
  base_url: "http://web:8080/build"
  site:
    name: "OpenEuropa Whitelabel theme"
    profile: "minimal"
  database:
    host: "mysql"
    port: "3306"
drishu's avatar
drishu committed
    name: "drupal"
    user: "root"
    password: ""
  sparql:
    host: "sparql"
    port: "8890"
  post_install:
    # Prepare the instance.
    - "./vendor/bin/drush en config_devel -y"
    - "./vendor/bin/drush en field_ui -y"
    - "./vendor/bin/drush en oe_authentication -y"
    - "./vendor/bin/drush en oe_whitelabel_multilingual -y"
    - "./vendor/bin/drush en oe_whitelabel_contact_forms -y"
    - "./vendor/bin/drush en oe_whitelabel_extra_project -y"
    - "./vendor/bin/drush en oe_whitelabel_helper -y"
    - "./vendor/bin/drush en oe_whitelabel_search -y"
    - "./vendor/bin/drush en oe_whitelabel_list_pages -y"
    - "./vendor/bin/drush en oe_whitelabel_starter_event -y"
    - "./vendor/bin/drush en oe_whitelabel_starter_news -y"
    - "./vendor/bin/drush en oe_whitelabel_starter_person -y"
    - "./vendor/bin/drush en oe_whitelabel_paragraphs -y"
    - "./vendor/bin/drush en toolbar -y"
    - "./vendor/bin/drush theme:enable oe_whitelabel -y"
    - "./vendor/bin/drush theme:enable seven -y"
    - "./vendor/bin/drush config-set system.theme default oe_whitelabel -y"
    - "./vendor/bin/drush config-set system.theme admin seven -y"
    - "./vendor/bin/drush config-set node.settings use_admin_theme 1 -y"
    - "./vendor/bin/drush config-set cas.settings forced_login.enabled 0 -y"
    - "./vendor/bin/drush cr"
  settings:
    settings:
      file_scan_ignore_directories:
        - "node_modules"
        - "bower_components"
        - "vendor"
        - "${drupal.root}"
      file_private_path: 'sites/default/files/private'
    databases:
      sparql_default:
        default:
          prefix: ""
          host: ${drupal.sparql.host}
          port: ${drupal.sparql.port}
          namespace: 'Drupal\sparql_entity_storage\Driver\Database\sparql'
          driver: 'sparql'

selenium:
  host: "http://selenium"
  port: "4444"
  browser: "chrome"

commands:
  drupal:site-setup:
    - { task: "run", command: "drupal:symlink-project" }
    - { task: "run", command: "drupal:drush-setup" }
    - { task: "run", command: "drupal:settings-setup" }
    - { task: "run", command: "setup:phpunit" }
  setup:phpunit:
    - { task: "process", source: "phpunit.xml.dist", destination: "phpunit.xml" }
    # Generate settings.testing.php, it will be used when running functional tests.
    - { task: "process-php", type: "write", config: "drupal.settings", source: "${drupal.root}/sites/default/default.settings.php", destination: "${drupal.root}/sites/default/settings.testing.php", override: true }

release:
  tasks:
    - { task: "copy", from: "assets", to: "oe_whitelabel/assets" }
    - task: "append"
      file: "oe_whitelabel/oe_whitelabel.info.yml"
      text: |

        # Information added by OpenEuropa packaging script on ${release.date} at ${release.time}.
        project: oe_whitelabel
        version: ${release.version}
        datestamp: ${release.timestamp}