mirror of
https://github.com/dokku/dokku.git
synced 2026-02-24 04:00:36 +01:00
tests: add test for builder-pack:set projectoml-path
This commit is contained in:
15
tests/apps/python/cnb/1/bin/build
Executable file
15
tests/apps/python/cnb/1/bin/build
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
layers_dir=$1
|
||||
|
||||
echo "Building with buildpack 1"
|
||||
bp_layer=$layers_dir/1
|
||||
bp_env_dir=$bp_layer/env
|
||||
mkdir -p $bp_env_dir
|
||||
|
||||
echo "TESTENV_1" > $bp_env_dir/TESTENV
|
||||
|
||||
echo "[types]" > ${bp_layer}.toml
|
||||
echo "launch = true" >> ${bp_layer}.toml
|
||||
echo "build = true" >> ${bp_layer}.toml
|
||||
echo "cache = true" >> ${bp_layer}.toml
|
||||
3
tests/apps/python/cnb/1/bin/detect
Executable file
3
tests/apps/python/cnb/1/bin/detect
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
echo "1" && exit 0
|
||||
9
tests/apps/python/cnb/1/buildpack.toml
Normal file
9
tests/apps/python/cnb/1/buildpack.toml
Normal file
@@ -0,0 +1,9 @@
|
||||
api = "0.6"
|
||||
|
||||
[buildpack]
|
||||
id = "1"
|
||||
version = "0.1.0"
|
||||
name = "1 Packages Buildpack"
|
||||
|
||||
[[stacks]]
|
||||
id = "heroku-20"
|
||||
21
tests/apps/python/cnb/2/bin/build
Executable file
21
tests/apps/python/cnb/2/bin/build
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
layers_dir=$1
|
||||
|
||||
echo "Building with buildpack 2"
|
||||
bp_layer=$layers_dir/2
|
||||
bp_env_dir=$bp_layer/env
|
||||
mkdir -p $bp_env_dir
|
||||
|
||||
export TESTENV="$TESTENV:anotherenv"
|
||||
|
||||
echo "===> env start"
|
||||
env
|
||||
echo "===> env end"
|
||||
|
||||
echo "TESTENV_2" > $bp_env_dir/TESTENV
|
||||
|
||||
echo "[types]" > ${bp_layer}.toml
|
||||
echo "launch = true" >> ${bp_layer}.toml
|
||||
echo "build = true" >> ${bp_layer}.toml
|
||||
echo "cache = true" >> ${bp_layer}.toml
|
||||
3
tests/apps/python/cnb/2/bin/detect
Executable file
3
tests/apps/python/cnb/2/bin/detect
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
echo "2" && exit 0
|
||||
9
tests/apps/python/cnb/2/buildpack.toml
Normal file
9
tests/apps/python/cnb/2/buildpack.toml
Normal file
@@ -0,0 +1,9 @@
|
||||
api = "0.6"
|
||||
|
||||
[buildpack]
|
||||
id = "2"
|
||||
version = "0.1.0"
|
||||
name = "2 Packages Buildpack"
|
||||
|
||||
[[stacks]]
|
||||
id = "heroku-20"
|
||||
10
tests/apps/python/project2.toml
Normal file
10
tests/apps/python/project2.toml
Normal file
@@ -0,0 +1,10 @@
|
||||
[project]
|
||||
id = "python"
|
||||
name = "python"
|
||||
version = "1.0.0"
|
||||
|
||||
[[build.buildpacks]]
|
||||
uri = "./cnb/1"
|
||||
|
||||
[[build.buildpacks]]
|
||||
uri = "./cnb/1"
|
||||
Reference in New Issue
Block a user