Skip to content

Commit b89f8c3

Browse files
committed
add a test for verifying dev profile works
1 parent 2f52d9e commit b89f8c3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/test.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,23 @@ function package_all() {
6969
ls target/lambda/release/bootstrap.zip > /dev/null 2>&1
7070
}
7171

72+
# test packaging with PROFILE=dev
73+
function package_all_dev_profile() {
74+
rm -rf target/lambda/debug > /dev/null 2>&1
75+
docker run --rm \
76+
-e PROFILE=dev \
77+
-v ${PWD}:/code \
78+
-v ${HOME}/.cargo/registry:/root/.cargo/registry \
79+
-v ${HOME}/.cargo/git:/root/.cargo/git \
80+
softprops/lambda-rust && \
81+
ls target/lambda/debug/bootstrap.zip > /dev/null 2>&1
82+
}
83+
7284
# package tests
7385
assert_success "it packages single bin" package_bin bootstrap
7486

87+
assert_success "it packaging all bins with dev profile" package_all_dev_profile
88+
7589
assert_success "it packages all bins" package_all
7690

7791
# verify packaged artifact by invoking it using the lambdaci "provided" docker image

0 commit comments

Comments
 (0)