From 1899cb5b868f44e662fe9d7ab4aa09dce2355802 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Thu, 19 May 2022 20:49:48 +0200 Subject: [PATCH] Added scripts to workspace --- cpl-workspace.json | 57 +++++++++++++++++++++++++++++++++++++++++++++- scripts/upload.sh | 2 +- 2 files changed, 57 insertions(+), 2 deletions(-) diff --git a/cpl-workspace.json b/cpl-workspace.json index 75cdad9d..9dbe38e9 100644 --- a/cpl-workspace.json +++ b/cpl-workspace.json @@ -7,7 +7,62 @@ "cpl_query": "src/cpl_query/cpl_query.json" }, "Scripts": { - "hello-world": "echo 'Hello World'" + "hello-world": "echo 'Hello World'", + "docs-build": "echo 'Build Documentation'; cd docs/; sphinx-apidoc -o source/ ../src/cpl_core; sphinx-apidoc -o source/ ../src/cpl_query; make clean; make html; rm source/cpl_query.tests.rst;", + "db": "cpl build-docs", + "docs-open": "xdg-open $PWD/docs/build/html/index.html &", + "do": "cpl docs-open", + + "build-all": "cpl build-cli; cpl build-core; cpl build-query;", + "ba": "cpl build-all", + "build-cli": "echo 'Build cpl_cli'; cd ./src/cpl_cli; cpl build; cd ../../;", + "build-core": "echo 'Build cpl_core'; cd ./src/cpl_core; cpl build; cd ../../;", + "build-query": "echo 'Build cpl_query'; cd ./src/cpl_query; cpl build; cd ../../;", + + "publish-all": "cpl publish-cli; cpl publish-core; cpl publish-query;", + "pa": "cpl build-all", + "publish-cli": "echo 'Publish cpl_cli'; cd ./src/cpl_cli; cpl publish; cd ../../;", + "publish-core": "echo 'Publish cpl_core'; cd ./src/cpl_core; cpl publish; cd ../../;", + "publish-query": "echo 'Publish cpl_query'; cd ./src/cpl_query; cpl publish; cd ../../;", + + "upload-prod-cli": "echo 'PROD Upload cpl_cli'; cpl upl-prod-cli;", + "upload-prod-core": "echo 'PROD Upload cpl_core'; cpl upl-prod-core;", + "upload-prod-query": "echo 'PROD Upload cpl_query'; cpl upl-prod-query;", + + "upload-exp-cli": "echo 'EXP Upload cpl_cli'; cpl upl-exp-cli;", + "upload-exp-core": "echo 'EXP Upload cpl_core'; cpl upl-exp-core;", + "upload-exp-query": "echo 'EXP Upload cpl_query'; cpl upl-exp-query;", + + "upload-dev-cli": "echo 'DEV Upload cpl_cli'; cpl upl-dev-cli;", + "upload-dev-core": "echo 'DEV Upload cpl_core'; cpl upl-dev-core;", + "upload-dev-query": "echo 'DEV Upload cpl_query'; cpl upl-dev-query;", + + "upl-prod-cli": "twine upload -r pip.sh-edraft.de dist/cpl-cli/publish/setup/*", + "upl-prod-core": "twine upload -r pip.sh-edraft.de dist/cpl-core/publish/setup/*", + "upl-prod-query": "twine upload -r pip.sh-edraft.de dist/cpl-query/publish/setup/*", + + "upl-exp-cli": "twine upload -r pip-exp.sh-edraft.de dist/cpl-cli/publish/setup/*", + "upl-exp-core": "twine upload -r pip-exp.sh-edraft.de dist/cpl-core/publish/setup/*", + "upl-exp-query": "twine upload -r pip-exp.sh-edraft.de dist/cpl-query/publish/setup/*", + + "upl-dev-cli": "twine upload -r pip-dev.sh-edraft.de dist/cpl-cli/publish/setup/*", + "upl-dev-core": "twine upload -r pip-dev.sh-edraft.de dist/cpl-core/publish/setup/*", + "upl-dev-query": "twine upload -r pip-dev.sh-edraft.de dist/cpl-query/publish/setup/*", + + "deploy-prod": "cpl deploy-prod-cli; cpl deploy-prod-core; cpl deploy-prod-query;", + "deploy-prod-cli": "cpl publish-cli; cpl upload-prod-cli", + "deploy-prod-core": "cpl publish-core; cpl upload-prod-core", + "deploy-prod-query": "cpl publish-query; cpl upload-prod-query", + + "deploy-exp": "cpl deploy-exp-cli; cpl deploy-exp-core; cpl deploy-exp-query;", + "deploy-exp-cli": "cpl publish-cli; cpl upload-exp-cli", + "deploy-exp-core": "cpl publish-core; cpl upload-exp-core", + "deploy-exp-query": "cpl publish-query; cpl upload-exp-query", + + "deploy-dev": "cpl deploy-dev-cli; cpl deploy-dev-core; cpl deploy-dev-query;", + "deploy-dev-cli": "cpl publish-cli; cpl upload-dev-cli", + "deploy-dev-core": "cpl publish-core; cpl upload-dev-core", + "deploy-dev-query": "cpl publish-query; cpl upload-dev-query" } } } \ No newline at end of file diff --git a/scripts/upload.sh b/scripts/upload.sh index 19e38a46..825782d5 100644 --- a/scripts/upload.sh +++ b/scripts/upload.sh @@ -7,7 +7,7 @@ if [ $1 == "-prod" ]; then elif [ $1 == "-exp" ]; then twine upload -r pip-exp.sh-edraft.de dist/cpl-cli/publish/setup/* twine upload -r pip-exp.sh-edraft.de dist/cpl-core/publish/setup/* - twine upload -r pip-.sh-edraft.de dist/cpl-query/publish/setup/* + twine upload -r pip-exp.sh-edraft.de dist/cpl-query/publish/setup/* else twine upload -r pip-dev.sh-edraft.de dist/cpl-cli/publish/setup/*