mirror of
https://github.com/jongracecox/anybadge.git
synced 2025-12-15 18:20:04 +01:00
- Add `--version` to cli - Add invoke tasks: - `package.build` - `package.install` - `test.cli` - Refactor invoke task implementation - Refactor `run_pypi_tests.sh` - Split into separate files to support running locally
17 lines
389 B
Bash
Executable File
17 lines
389 B
Bash
Executable File
#!/bin/bash
|
|
|
|
source "${SOURCE_DIR:-.}/helpers.sh" || { echo "Failed to load helpers." ; exit 1 ; }
|
|
|
|
if [[ -z ${VERSION} ]] || [[ ${VERSION} = latest ]]; then
|
|
version_str=""
|
|
else
|
|
version_str="==$VERSION"
|
|
fi
|
|
|
|
echo -n "Installing anybadge${version_str}... "
|
|
pip install "anybadge${version_str}" > "${TEST_FILES}/pip_install.log" 2>&1
|
|
check_rc
|
|
echo "OK"
|
|
|
|
"${SOURCE_DIR:-.}/shell_tests.sh"
|