Skip to content

armadillo1234/hel-fi-drupal-grants

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,824 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Helsinki grants applications

CI pipeline

This project offers citizens a way to apply for different city grants for their associations or themselves...

Environments

Env Branch Url
local * https://hel-fi-drupal-grant-applications.docker.so/
development * https://avustukset.dev.hel.ninja
testing develop https://avustukset.test.hel.ninja
staging release/* https://avustukset.stage.hel.ninja
production main https://avustukset.hel.fi (https://nginx-avustusasiointi-prod.apps.platta.hel.fi/ before release)

Requirements

You need to have these applications installed to operate on all environments:

  • Docker
  • Stonehenge
  • For the new person: Your SSH public key needs to be added to servers

Create and start the environment

For the first time (new project):

$ make new

And following times to create and start the environment:

$ make fresh

NOTE: Change these according of the state of your project.

Login to Drupal container

This will log you inside the app container:

$ make shell

Enable debugging

To enable xdebug, run export XDEBUG_ENABLE=true before (re)starting your project. More info in docker-composer.yml

Links & information

Works is done & issues tracked on our Jira board.

Production monitoring dashboard.

Tests for custom modules

Drupal uses phpunit library for tests and it is installed via composer as a development dependency. Tests are configured using phpunit.xml file in module root. Drupal documentation about tests an be found here

There are three kind of tests. Unit tests are for testing code without loading Drupal. Kernel tests are run always with Drupal core and during the test setup phase modules can be installed and configurations loaded. These can be used to test features that tied to Drupal fore features like services and events. Functional tests are run with whole Drupal and they can be used to test any Drupal functionality.

Each kind of test case has base class that are extended to create tests.

Run tests related to AtvSchema: vendor/bin/phpunit -c public/core public/modules/custom/grants_metadata

Changelog

Can be found from here.

About

No description, website, or topics provided.

Resources

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • PHP 71.4%
  • Twig 10.8%
  • SCSS 7.3%
  • JavaScript 5.4%
  • Makefile 2.6%
  • RobotFramework 2.2%
  • Other 0.3%