feat: do not reinstall pack during bats tests
This commit is contained in:
@@ -2,9 +2,11 @@
|
|||||||
load test_helper
|
load test_helper
|
||||||
|
|
||||||
setup_file() {
|
setup_file() {
|
||||||
add-apt-repository --yes ppa:cncf-buildpacks/pack-cli
|
if ! command -v "pack" &>/dev/null; then
|
||||||
apt-get update
|
add-apt-repository --yes ppa:cncf-buildpacks/pack-cli
|
||||||
apt-get --yes install pack-cli
|
apt-get update
|
||||||
|
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"
|
||||||
|
|||||||
@@ -3,9 +3,11 @@
|
|||||||
load test_helper
|
load test_helper
|
||||||
|
|
||||||
setup_file() {
|
setup_file() {
|
||||||
add-apt-repository --yes ppa:cncf-buildpacks/pack-cli
|
if ! command -v "pack" &>/dev/null; then
|
||||||
apt-get update
|
add-apt-repository --yes ppa:cncf-buildpacks/pack-cli
|
||||||
apt-get --yes install pack-cli
|
apt-get update
|
||||||
|
apt-get --yes install pack-cli
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
setup() {
|
setup() {
|
||||||
|
|||||||
Reference in New Issue
Block a user