-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1109 from pulp/update-ci/main
Update CI files for branch main
- Loading branch information
Showing
10 changed files
with
237 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Pulpcore versions without the openapi command do no longer work in the CI | ||
pulpcore>=3.21.30,!=3.23.*,!=3.24.*,!=3.25.*,!=3.26.*,!=3.27.*,!=3.29.*,!=3.30.*,!=3.31.*,!=3.32.*,!=3.33.*,!=3.34.*,!=3.35.*,!=3.36.*,!=3.37.*,!=3.38.*,!=3.40.*,!=3.41.*,!=3.42.*,!=3.43.*,!=3.44.*,!=3.45.*,!=3.46.*,!=3.47.*,!=3.48.*,!=3.50.*,!=3.51.*,!=3.52.*,!=3.53.*,!=3.54.* | ||
|
||
|
||
|
||
tablib!=3.6.0 | ||
# 3.6.0: This release introduced a regression removing the "html" optional dependency. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2021.08.26-342-g13e7dc5 | ||
2021.08.26-347-gc4a2504 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#!/bin/bash | ||
|
||
# This script expects all <app_label>-api.json files to exist in the plugins root directory. | ||
# It produces a <app_label>-python-client.tar and <app_label>-python-client-docs.tar file in the plugins root directory. | ||
|
||
# WARNING: DO NOT EDIT! | ||
# | ||
# This file was generated by plugin_template, and is managed by it. Please use | ||
# './plugin-template --github pulp_deb' to update this file. | ||
# | ||
# For more info visit https://github.com/pulp/plugin_template | ||
|
||
set -mveuo pipefail | ||
|
||
# make sure this script runs at the repo root | ||
cd "$(dirname "$(realpath -e "$0")")"/../../.. | ||
|
||
pushd ../pulp-openapi-generator | ||
rm -rf "pulp_deb-client" | ||
|
||
# We need to copy that over to be visible in the container. | ||
cp "../pulp_deb/deb-api.json" . | ||
./gen-client.sh "deb-api.json" "deb" python "pulp_deb" | ||
|
||
pushd pulp_deb-client | ||
python setup.py sdist bdist_wheel --python-tag py3 | ||
|
||
twine check "dist/pulp_deb_client-"*"-py3-none-any.whl" | ||
twine check "dist/pulp_deb-client-"*".tar.gz" | ||
|
||
tar cvf "../../pulp_deb/deb-python-client.tar" ./dist | ||
|
||
find ./docs/* -exec sed -i 's/Back to README/Back to HOME/g' {} \; | ||
find ./docs/* -exec sed -i 's/README//g' {} \; | ||
cp README.md docs/index.md | ||
sed -i 's/docs\///g' docs/index.md | ||
find ./docs/* -exec sed -i 's/\.md//g' {} \; | ||
|
||
cat >> mkdocs.yml << DOCSYAML | ||
--- | ||
site_name: PulpDeb Client | ||
site_description: Deb bindings | ||
site_author: Pulp Team | ||
site_url: https://docs.pulpproject.org/pulp_deb_client/ | ||
repo_name: pulp/pulp_deb | ||
repo_url: https://github.com/pulp/pulp_deb | ||
theme: readthedocs | ||
DOCSYAML | ||
|
||
# Building the bindings docs | ||
mkdocs build | ||
|
||
# Pack the built site. | ||
tar cvf ../../pulp_deb/deb-python-client-docs.tar ./site | ||
popd | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
|
||
# This script expects all <app_label>-api.json files to exist in the plugins root directory. | ||
# It produces a <app_label>-ruby-client.tar file in the plugins root directory. | ||
|
||
# WARNING: DO NOT EDIT! | ||
# | ||
# This file was generated by plugin_template, and is managed by it. Please use | ||
# './plugin-template --github pulp_deb' to update this file. | ||
# | ||
# For more info visit https://github.com/pulp/plugin_template | ||
|
||
set -mveuo pipefail | ||
|
||
# make sure this script runs at the repo root | ||
cd "$(dirname "$(realpath -e "$0")")"/../../.. | ||
|
||
pushd ../pulp-openapi-generator | ||
rm -rf "pulp_deb-client" | ||
|
||
# We need to copy that over to be visible in the container. | ||
#cp "../pulp_deb/deb-api.json" . | ||
#./gen-client.sh "deb-api.json" "deb" ruby "pulp_deb" | ||
|
||
# ------------- | ||
# The generator still needs to have it called api.json at this time... | ||
cp "../pulp_deb/api.json" . | ||
./gen-client.sh "api.json" "deb" ruby "pulp_deb" | ||
# ------------- | ||
|
||
pushd pulp_deb-client | ||
gem build pulp_deb_client | ||
tar cvf "../../pulp_deb/deb-ruby-client.tar" "./pulp_deb_client-"*".gem" | ||
popd | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.