Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions dev/test-cli-pypi-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env bash
# Description: Tests CLI mode install

set -euo pipefail

# Set the working directory
working_directory="${TMPDIR:-/tmp}/src-auth-perms-sync-pypi-install"

# Delete, recreate, and cd to working directory
rm -rf "${working_directory}" && mkdir -p "${working_directory}" && cd "${working_directory}"

# Use python3.13 to create and activate a venv
# shellcheck disable=SC1091
python3.13 -m venv .venv && source .venv/bin/activate

# pip install latest from https://pypi.org/project/src-auth-perms-sync
python3.13 -m pip install --upgrade pip src-auth-perms-sync

# Run commands
src-auth-perms-sync --help
src-auth-perms-sync get --help
src-auth-perms-sync set --help
src-auth-perms-sync restore --help
src-auth-perms-sync sync-saml-orgs --help