Refactor file/directory/release structure and infrastructure (InventoryAPI)
From LibreFoodPantry&14:
-
1. Collapse /specification
to a single/specification/openapi.yaml
file.-
Run commands/build.sh
to generate a single file. -
Move to /specification
-
Delete the three comment lines from the beginning of /specification/openapi.yaml
-
Delete from /specification
:/paths
,/responses
,/schemas
,index.yaml
-
Update /specification/README.md
-
-
2. Delete /docs/openapi.yaml
-
3. Delete /commands/build.sh
-
4. Modify /commands/prepare-release.sh
#!/usr/bin/env bash
set -e
VERSION="$1"
mkdir -p ./artifacts/release
sed -r "s/version: [0-9]+\.[0-9]+\.[0-9]+/version: $VERSION/" \
specification/openapi.yaml > ./artifacts/release/openapi.yaml
-
5. Modify .gitlab-ci.yaml
-
Disable the build
job
-
-
6. Update files in /docs/developer
-
7. Modify last line of commands/test.sh
.-
Change index.yaml
toopenapi.yaml
.
-
Edited by Noelan Chabot