-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
14 changed files
with
131 additions
and
104 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 was deleted.
Oops, something went wrong.
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
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,4 +1,8 @@ | ||
pycodestyle | ||
mock | ||
pytest | ||
pytest-cov | ||
pytest-cov | ||
wheel | ||
setuptools | ||
setuptools-rust | ||
build |
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,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o nounset | ||
set -o xtrace | ||
|
||
docker_run() { | ||
local image_type=$1 | ||
local script_file=$2 | ||
echo building "${image_type}" image -- first time it could take a few minutes | ||
docker build -t awscurl-ci-"$image_type" -f ./ci/ci-"$image_type"/Dockerfile . && \ | ||
docker run -t awscurl-ci-"$image_type" bash -c "$script_file" | ||
} | ||
|
||
docker_run "ubuntu" "./scripts/ci.sh" | ||
docker_run "alpine" "./scripts/ci.sh" | ||
docker_run "centos" "./scripts/ci.sh" |
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,52 @@ | ||
#!/bin/bash | ||
|
||
DETOX_ROOT_DIR=./build/detox | ||
|
||
grep -v '^ *#' < .python-version | while IFS= read -r PYENV_VERSION | ||
do | ||
# echo PYENV_VERSION="$PYENV_VERSION" | ||
# echo SHELL="$SHELL" | ||
# echo $PATH | ||
# pyenv install -sv "${PYENV_VERSION}" | ||
# https://github.com/pyenv/pyenv/issues/1819#issuecomment-780803524 | ||
# /root/.pyenv/bin/pyenv shell "${PYENV_VERSION}" | ||
export PYENV_VERSION="$PYENV_VERSION" | ||
eval "$(pyenv init -)" | ||
|
||
PER_VER_DIR=${DETOX_ROOT_DIR}/v${PYENV_VERSION} | ||
VENV_DIR=${PER_VER_DIR}/venv${PYENV_VERSION} | ||
( | ||
echo "##### NEW DETOX ENV: " "$(uname) " "${PER_VER_DIR}" " #####" | ||
python3 -m venv "${VENV_DIR}" | ||
source "${VENV_DIR}"/bin/activate | ||
|
||
echo which python="$(which python)" | ||
echo python --version="$(python --version)" | ||
echo pip --version="$(pip --version)" | ||
|
||
PS4='[$(date "+%Y-%m-%d %H:%M:%S")] ' | ||
set -o errexit -o pipefail -o nounset -o xtrace | ||
|
||
pip -q -q install --upgrade pip | ||
# python -m ensurepip --upgrade | ||
# pip install -r requirements.txt | ||
pip -q -q install -r requirements-test.txt | ||
|
||
pycodestyle . | ||
|
||
# python -m build . | ||
pip -q install . | ||
|
||
export AWS_ACCESS_KEY_ID=MOCK_AWS_ACCESS_KEY_ID | ||
export AWS_SECRET_ACCESS_KEY=MOCK_AWS_SECRET_ACCESS_KEY | ||
export AWS_SESSION_TOKEN=MOCK_AWS_SESSION_TOKEN | ||
|
||
pytest \ | ||
--cov=awscurl \ | ||
--cov-fail-under=77 \ | ||
--cov-report html \ | ||
--cov-report=html:"${PER_VER_DIR}"/htmlcov \ | ||
--durations=2 \ | ||
--strict-config | ||
) | ||
done |
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 |
---|---|---|
|
@@ -41,4 +41,3 @@ grep -v '^ *#' < .python-version | while IFS= read -r line | |
do | ||
pyenv install -s "${line}" | ||
done | ||
pip install tox |
File renamed without changes.
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