move scripts, allow testing both dbs with one cmd

This commit is contained in:
tsmethurst 2021-09-10 15:59:12 +02:00
commit 5510a39cf3
13 changed files with 263 additions and 99 deletions

9
scripts/generateswagger.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
set -eu
SWAGGER_FILE="docs/api/swagger.yaml"
GTS_VERSION="$(cat version)"
swagger generate spec -o "${SWAGGER_FILE}" --scan-models
sed -i "s/REPLACE_ME/${GTS_VERSION}/" "${SWAGGER_FILE}"