-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
19 additions
and
16 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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
. venv/bin/activate | ||
[ -d $HOME/.config ] || mkdir $HOME/.config | ||
echo $COPR_BASE64 | base64 -d > $HOME/.config/copr | ||
mkdir /tmp/results | ||
docker run -v $PWD:/workdir -v /tmp/results:/tmp/results quay.io/karmab/rpkg --path /workdir srpm --outdir /tmp/results --spec /workdir/assisted-service-client.spec | ||
podman run -v $PWD:/workdir -v /tmp/results:/tmp/results quay.io/karmab/rpkg --path /workdir srpm --outdir /tmp/results --spec /workdir/assisted-service-client.spec | ||
copr-cli build --nowait aicli /tmp/results/assisted-service-client*.rpm | ||
docker run -v $PWD:/workdir -v /tmp/results:/tmp/results quay.io/karmab/rpkg --path /workdir srpm --outdir /tmp/results --spec /workdir/aicli.spec | ||
podman run -v $PWD:/workdir -v /tmp/results:/tmp/results quay.io/karmab/rpkg --path /workdir srpm --outdir /tmp/results --spec /workdir/aicli.spec | ||
copr-cli build --nowait aicli /tmp/results/aicli*src.rpm |
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,8 +1,6 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
. venv/bin/activate | ||
|
||
pip3 install pep8 wheel | ||
|
||
# find . -type f -iname "*.py" -exec pep8 --ignore=E402,W504,E721 --max-line-length=120 {} + | ||
# find . -name '*.py' | misspellings -f - | ||
find aicli -type f -iname "*.py" -exec pycodestyle --ignore=E402,W504,E721,E722,E741 --max-line-length=120 {} + | ||
find aicli -name '*.py' | codespell -f - |
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,6 @@ | ||
pip3 install copr-cli | ||
apt-get update | ||
apt-get -y install podman pycodestyle codespell | ||
|
||
python3 -m venv venv | ||
. venv/bin/activate | ||
pip3 install copr-cli pep8 wheel setuptools twine |
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,13 +1,12 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
. venv/bin/activate | ||
|
||
docker login -u $QUAY_USERNAME -p $QUAY_PASSWORD quay.io | ||
docker push quay.io/karmab/aicli:latest | ||
podman login -u $QUAY_USERNAME -p $QUAY_PASSWORD quay.io | ||
podman push quay.io/karmab/aicli:latest | ||
|
||
pip3 install setuptools | ||
export VERSION=$(date "+%Y%m%d%H%M") | ||
sed -i "s/99.0/99.0.$VERSION/" setup.py | ||
python3 setup.py bdist_wheel | ||
pip3 install twine | ||
twine upload --repository-url https://upload.pypi.org/legacy/ -u $PYPI_USERNAME -p $PYPI_PASSWORD --skip-existing dist/* |
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