mirror of
https://github.com/enpaul/vault2vault.git
synced 2024-11-22 18:16:47 +00:00
Ethan Paul
98d1bf3e8e
Update CI to use Poetry 1.3 Update workflows to match patterns from tox-poetry-installer Update workflows to use newer job versions Update makefile and CI to use Poetry 1.3 command syntax
36 lines
779 B
Bash
Executable File
36 lines
779 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Environment setup script for the local project. Intended to be used with automation
|
|
# to create a repeatable local environment for tests to be run in. The python env
|
|
# this script creates can be accessed at the location defined by the CI_VENV variable
|
|
# below.
|
|
|
|
set -e;
|
|
|
|
CI_CACHE=$HOME/.cache;
|
|
POETRY_VERSION=1.3.2;
|
|
|
|
mkdir --parents "$CI_CACHE";
|
|
|
|
command -v python;
|
|
python --version;
|
|
|
|
curl --location https://install.python-poetry.org \
|
|
--output "$CI_CACHE/install-poetry.py" \
|
|
--silent \
|
|
--show-error;
|
|
python "$CI_CACHE/install-poetry.py" \
|
|
--version "$POETRY_VERSION" \
|
|
--yes;
|
|
poetry --version --no-ansi;
|
|
poetry run pip --version;
|
|
|
|
poetry install \
|
|
--quiet \
|
|
--sync \
|
|
--no-ansi \
|
|
--only ci;
|
|
|
|
poetry env info;
|
|
poetry run tox --version;
|