This commit is contained in:
Vladimir Safonkin
2020-10-05 13:41:50 +03:00
parent 958f252984
commit d26db64941
3 changed files with 11 additions and 9 deletions

View File

@@ -19,13 +19,11 @@ for package in $pipx_packages; do
echo "Install $package into python $python_path"
pipx install $package --python $python_path
fi
done
# Run tests to determine that the software installed as expected
echo "Testing to make sure that script performed as expected, and basic scenarios work"
for cmd in $pipx_packages; do
cmd=$(jq ".pipx[] | select(.package == $package) .cmd" $toolset)
if ! command -v $cmd; then
echo "$cmd was not installed"
echo "$package was not installed"
exit 1
fi
done

View File

@@ -192,11 +192,13 @@
"pipx": [
{
"package": "yamllint",
"python": "default"
"python": "default",
"cmd": "yamllint"
},
{
"package": "aws-sam-cli",
"python": "/opt/hostedtoolcache/Python/3.7*/x64/bin/python3.7"
"python": "/opt/hostedtoolcache/Python/3.7*/x64/bin/python3.7",
"cmd": "sam"
}
]
}

View File

@@ -155,11 +155,13 @@
"pipx": [
{
"package": "yamllint",
"python": "default"
"python": "default",
"cmd": "yamllint"
},
{
"package": "aws-sam-cli",
"python": "/opt/hostedtoolcache/Python/3.7*/x64/bin/python3.7"
"python": "/opt/hostedtoolcache/Python/3.7*/x64/bin/python3.7",
"cmd": "sam"
}
]
}