feat: do not reinstall pack during bats tests

This commit is contained in:
Jose Diaz-Gonzalez committed 2021-03-25 20:12:39 -04:00
1 parent 376d7bdac6
commit 97aa934343
2 files changed
+4 -1

No files matched your search

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