Commit graph

322 commits

Author SHA1 Message Date
Oliver Davies e5892e1904 Fix Drupal CI errors 2024-07-17 20:14:56 +01:00
Oliver Davies c888fc2c28 Update build configuration files 2024-06-27 12:16:40 +01:00
Oliver Davies bb9820e052 Set the default URL for Drush to use when
...executing commands
2024-06-27 12:14:45 +01:00
Oliver Davies e00140d4af Add .tmux 2024-06-27 12:14:45 +01:00
Oliver Davies 0aa6d18cd4 Create a Nix derivation with a default package 2024-05-22 09:11:58 +01:00
Oliver Davies 2e701e7dd5 Fix app:generate command
Without this commit, I get this error:

> Unable to find template "common/.githooks/prepare-commit-msg.twig"
(looked into:
phar:///home/opdavies/Code/personal/build-configs/nix-derivation/dist/build-configs/templates).

I don't know why this isn't added by the `templates` value that's
already there, but adding `templates/common/.githooks` explicitly fixes
the error when running the `app:generate` command.
2024-05-21 07:59:36 +01:00
Oliver Davies 605849cb80 Rename the proxy network to proxy
This makes its intent clearer and avoids confusion with the `web`
service.
2024-05-10 23:57:44 +02:00
Oliver Davies abf76c50bb Update hostname to *.docker.localhost
Following updates in https://github.com/opdavies/traefik-development to
add HTTPS support to Docker Compose-based projects, this commit changes
the host name from `*.localhost` to `*.docker.localhost`.

This should allow each project to be available at
https://{project_name}.docker.localhost instead of
http://{project_name}.localhost.
2024-05-10 23:05:38 +02:00
Oliver Davies 43849524a2 Add PHP opcache 2024-04-08 18:12:57 +01:00
Oliver Davies 1369ee750a Remove createInclusiveGitIgnoreFile option 2024-04-04 23:39:37 +01:00
Oliver Davies 988a677ded Always ignore .phpunit.result.cache 2024-04-04 23:37:20 +01:00
Oliver Davies ec44eb402b Add todo 2024-04-04 23:28:00 +01:00
Oliver Davies e84c22b721 Fix build recipe 2024-04-04 19:10:12 +01:00
Oliver Davies 3065597f64 Add Apache support to Drupal 2024-04-04 19:09:53 +01:00
Oliver Davies 2f6673d941 Add just 2024-04-04 18:41:36 +01:00
Oliver Davies 0e33324fd0 Rename .tmuxinator.yml 2024-03-31 10:25:39 +01:00
Oliver Davies b0f7e872e9 Remove flake parts 2024-03-30 18:03:40 +00:00
Oliver Davies f55e19b6b7 Add tmuxinator configuration 2024-03-27 09:33:33 +00:00
Oliver Davies 5957e20d63 Update to PHP 8.2 2024-03-20 13:00:48 +00:00
Oliver Davies 5edd45c121 Update lock file 2024-03-20 13:00:24 +00:00
Oliver Davies bdfc54379a Update CI commands to use just 2024-03-01 20:46:04 +00:00
Oliver Davies 5029aab415 Add just and justfile 2024-03-01 20:38:29 +00:00
Oliver Davies 0d774daca0 Add Behat
Add Behat as a dev dependency and add the example `ls` example.

Due to a deprecation error, I needed to downgrade to PHP 8.1 on stream,
though this would error the main `app:generate` command as I'm using
`readonly` classes that were introduced in PHP 8.2.
2024-03-01 20:35:26 +00:00
Oliver Davies 65070dfb2b Coding standards fix 2024-03-01 20:32:38 +00:00
Oliver Davies a5fe4dada8 Use non-empty-string 2024-03-01 20:32:38 +00:00
Oliver Davies ea43e67da8 Don't generate files if the --dry-run option is set
* Add the --dry-run option.
* Add a warning if --dry-run is used saying no files have been
  generated.
2024-03-01 20:32:38 +00:00
Oliver Davies 85c370c438 Add phpcs configuration with PSR-12 standard 2024-03-01 20:32:38 +00:00
Oliver Davies e64b340af2 Allow extra fields
Since removing `useNewDatabaseCredentials`, projects with it in its
build.yaml file were failing as it was an additional value.

Allowing extra fields prevents the project from erroring.
2024-03-01 20:32:38 +00:00
Oliver Davies 6d7caad37a Format with alejandra 2024-03-01 07:15:48 +00:00
Oliver Davies b60cd7ae1b Revert "Make the PHP test runner conifigurable"
This reverts commit 5f62b02d14.
2024-02-19 10:52:09 +00:00
Oliver Davies bc9b18268f Fix generated .gitignore files in snapshots 2024-02-18 23:13:46 +00:00
Oliver Davies 98650ac11c Sort .gitignore paths 2024-02-18 23:13:46 +00:00
Oliver Davies 3d0a8215f9 Remove feature flag for different database credentials 2024-02-18 23:13:46 +00:00
Oliver Davies f602b6e1e6 Move Drupal templates into the PHP directory 2024-02-18 23:13:46 +00:00
Oliver Davies 30942b2d95 git: allow for creating inclusive gitignore files 2024-02-18 23:13:46 +00:00
Oliver Davies e3362270f4 Add missing managed text 2024-02-18 23:13:46 +00:00
Oliver Davies 226d6ad990 Allow for arguments to generate 2024-02-18 23:13:46 +00:00
Oliver Davies 5f62b02d14 Make the PHP test runner conifigurable
PHPUnit, Pest or Paratest.
2024-02-18 16:35:37 +00:00
Oliver Davies e1dc284a61 Update build configuration files 2024-01-31 09:17:35 +00:00
Oliver Davies 3adee3f531 Use PHP 8.2, fix CI tests 2024-01-28 21:51:02 +00:00
Oliver Davies 95159abc94 Fix web server type checks 2024-01-27 21:00:04 +00:00
Oliver Davies 09da2bc403 Create .tmux files
If `experimental.createTmuxStartupFile` is set in `build.yaml`.
2024-01-26 15:00:24 +00:00
Oliver Davies 8818baed58 Manage Build Configs with Build Configs 2024-01-26 15:00:24 +00:00
Oliver Davies ed36ac2e28 Create flake.nix files for Symfony projects 2024-01-26 15:00:24 +00:00
Oliver Davies f98a69e21f Initial Sculpin support
* Add Sculpin as a project type
* Declare initial files to generate
* Add flake.nix.twig
* Add .gitignore.twig
* Add run.twig
2024-01-26 14:59:54 +00:00
Oliver Davies 7bab7e91f4 Remove Astro 2024-01-21 22:02:59 +00:00
Oliver Davies 98a337bdcd Update snapshots 2023-12-18 21:04:45 +00:00
Oliver Davies 88af924ee4 Don't exit if the .env file is skipped 2023-12-18 20:58:31 +00:00
Oliver Davies 932c8f4bc7 Add install task for Drupal projects
Add an `install` task to Drupal `run` files to install Drupal with
Drush.
2023-12-16 17:04:29 +00:00
Oliver Davies c7fddd8ca4 Revert "Add snapshot tests to PHPUnit"
This reverts commit fd9a18dd92.
2023-12-16 00:43:57 +00:00