feat: do not reinstall pack during bats tests

This commit is contained in:
Jose Diaz-Gonzalez
2021-03-25 20:12:10 -04:00
parent 376d7bdac6
commit 97aa934343
2 changed files with 10 additions and 7 deletions

View File

@@ -2,9 +2,11 @@
load test_helper
setup_file() {
add-apt-repository --yes ppa:cncf-buildpacks/pack-cli
apt-get update
apt-get --yes install pack-cli
if ! command -v "pack" &>/dev/null; then
add-apt-repository --yes ppa:cncf-buildpacks/pack-cli
apt-get update
apt-get --yes install pack-cli
fi
}
setup() {
@@ -48,7 +50,6 @@ teardown() {
assert_success
}
@test "(app-json) app.json scripts postdeploy" {
run deploy_app python dokku@dokku.me:$TEST_APP add_postdeploy_command
echo "output: $output"

View File

@@ -3,9 +3,11 @@
load test_helper
setup_file() {
add-apt-repository --yes ppa:cncf-buildpacks/pack-cli
apt-get update
apt-get --yes install pack-cli
if ! command -v "pack" &>/dev/null; then
add-apt-repository --yes ppa:cncf-buildpacks/pack-cli
apt-get update
apt-get --yes install pack-cli
fi
}
setup() {