Skip to content

Commit

Permalink
Declare compatibility with farmOS 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
symbioquine committed Feb 18, 2024
1 parent a506704 commit 4de720c
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
run: until [ -f ./www/www-container-fs-ready ]; do sleep 0.1; done && while { ! exec 3<>/dev/tcp/localhost/5432; } > /dev/null 2>&1; do sleep 0.1; done
- name: Do a site-install
run: docker-compose exec -u www-data -T www bash -c 'drush site-install farm --locale=en --db-url=pgsql://farm:farm@db/farm --site-name=Test0 --account-name=root --account-pass=test'
- name: Enable oauth prereqs via drush
run: docker-compose exec -u www-data -T www drush en simple_oauth_password_grant farm_api_default_consumer
- name: Add farmOS_land_drawing_tool via composer
run: docker-compose exec -u www-data -T www composer require drupal/farmos_land_drawing_tool
- name: Use drush to enable farmOS_land_drawing_tool
Expand Down
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.1.0] - 2024-02-18

### Changed

- Declare compatibility with farmOS 3.x

## [1.0.5] - 2023-02-28

### Fixed
Expand Down Expand Up @@ -44,7 +50,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Initial release

[unreleased]: https://github.com/symbioquine/farmOS_land_drawing_tool/compare/unbuilt-v1.0.5...HEAD
[unreleased]: https://github.com/symbioquine/farmOS_land_drawing_tool/compare/unbuilt-v1.1.0...HEAD
[1.1.0]: https://github.com/symbioquine/farmOS_land_drawing_tool/compare/unbuilt-v1.0.5...unbuilt-v1.1.0
[1.0.5]: https://github.com/symbioquine/farmOS_land_drawing_tool/compare/unbuilt-v1.0.4...unbuilt-v1.0.5
[1.0.4]: https://github.com/symbioquine/farmOS_land_drawing_tool/compare/unbuilt-v1.0.3...unbuilt-v1.0.4
[1.0.3]: https://github.com/symbioquine/farmOS_land_drawing_tool/compare/unbuilt-v1.0.2...unbuilt-v1.0.3
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# farmOS_land_drawing_tool

A land drawing tool contrib module for [farmOS](https://farmos.org/) 2.x.
A land drawing tool contrib module for [farmOS](https://farmos.org/) 3.x.

![image](https://user-images.githubusercontent.com/30754460/124950481-4c81e800-dfc7-11eb-8c35-4545883d72ff.png)

*Note: Some branches and tags include only the built module. See the [development branch][development branch] for the full source code.*

## Installation

Use Composer and Drush to install farmOS_land_drawing_tool in farmOS 2.x;
Use Composer and Drush to install farmOS_land_drawing_tool in farmOS 3.x;

```sh
composer require drupal/farmos_land_drawing_tool
Expand Down Expand Up @@ -46,6 +46,7 @@ From the [development branch][development branch] of this repository:
git add [...]
# Update NPM package version and commit
npm --no-git-tag-version version --force patch
git add -u
git commit
# Tag the release with the unbuilt prefix
git tag unbuilt-v9000.0.1
Expand Down
5 changes: 2 additions & 3 deletions docker/docker-compose.prod-demo.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'
services:
db:
image: postgres:12
image: postgres:13
volumes:
- './db:/var/lib/postgresql/data'
ports:
Expand All @@ -14,8 +14,7 @@ services:
www:
depends_on:
- db
# TODO: change the image to remove the '-dev' part once there's a prod release of 2.x
image: farmos/farmos:2.x-dev
image: farmos/farmos:3.1.1
volumes:
- './www:/opt/drupal'
ports:
Expand Down
6 changes: 3 additions & 3 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '2'
services:
db:
image: postgres:12
image: postgres:13
volumes:
- './db:/var/lib/postgresql/data'
ports:
Expand All @@ -14,7 +14,7 @@ services:
www:
depends_on:
- db
image: farmos/farmos:2.x-dev
image: farmos/farmos:3.1.1
entrypoint: /bin/bash
command:
- -c
Expand All @@ -36,7 +36,7 @@ services:
wait_db_ready
su www-data -s /bin/bash <<'EOF'
/bin/bash <<'EOF'
set -e
composer config repositories.farmos_dev_modules '{"type": "path", "url": "/farmos_dev_modules/farmos_land_drawing_tool"}'
Expand Down
2 changes: 1 addition & 1 deletion farmos_land_drawing_tool/farmos_land_drawing_tool.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: farmOS Land Drawing Tool
description: Provides a land drawing tool for farmOS
type: module
package: farmOS Contrib
core_version_requirement: ^9
core_version_requirement: ^9 || ^10
dependencies:
- farm_land
- farm_map
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "farmOS_land_drawing_tool",
"version": "1.0.5",
"version": "1.1.0",
"description": "A land drawing tool contrib module for farmOS.",
"license": "GPL-3.0-or-later",
"repository": {
Expand Down

0 comments on commit 4de720c

Please sign in to comment.