File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ if [[ "${1}" == "" ]]; then
2020fi
2121
2222PROJECT_ID=" ${1} "
23+ TIMESTAMP=$( date +%s)
2324TOKEN=" ${2} "
2425
2526# Directory where this script lives.
@@ -34,17 +35,19 @@ function build_sdk {
3435 cd " ${DIR} /.."
3536 rm -f firebase-functions-* .tgz
3637 npm run build:pack
37- mv firebase-functions-* .tgz integration_test/functions/firebase-functions.tgz
38+ mv firebase-functions-* .tgz " integration_test/functions/firebase-functions- ${TIMESTAMP} .tgz"
3839}
3940
4041function pick_node8 {
4142 cd " ${DIR} "
4243 cp package.node8.json functions/package.json
44+ sed -i ' ' " s/firebase-functions.tgz/firebase-functions-${TIMESTAMP} .tgz/g" functions/package.json
4345}
4446
4547function pick_node10 {
4648 cd " ${DIR} "
4749 cp package.node10.json functions/package.json
50+ sed -i ' ' " s/firebase-functions.tgz/firebase-functions-${TIMESTAMP} .tgz/g" functions/package.json
4851}
4952
5053function install_deps {
@@ -98,7 +101,7 @@ function run_tests {
98101function cleanup {
99102 announce " Performing cleanup..."
100103 delete_all_functions
101- rm " ${DIR} /functions/firebase-functions.tgz"
104+ rm " ${DIR} /functions/firebase-functions-* .tgz"
102105 rm " ${DIR} /functions/package.json"
103106 rm -f " ${DIR} /functions/firebase-debug.log"
104107 rm -rf " ${DIR} /functions/lib"
You can’t perform that action at this time.
0 commit comments