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
20
20
fi
21
21
22
22
PROJECT_ID=" ${1} "
23
+ TIMESTAMP=$( date +%s)
23
24
TOKEN=" ${2} "
24
25
25
26
# Directory where this script lives.
@@ -34,17 +35,19 @@ function build_sdk {
34
35
cd " ${DIR} /.."
35
36
rm -f firebase-functions-* .tgz
36
37
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"
38
39
}
39
40
40
41
function pick_node8 {
41
42
cd " ${DIR} "
42
43
cp package.node8.json functions/package.json
44
+ sed -i ' ' " s/firebase-functions.tgz/firebase-functions-${TIMESTAMP} .tgz/g" functions/package.json
43
45
}
44
46
45
47
function pick_node10 {
46
48
cd " ${DIR} "
47
49
cp package.node10.json functions/package.json
50
+ sed -i ' ' " s/firebase-functions.tgz/firebase-functions-${TIMESTAMP} .tgz/g" functions/package.json
48
51
}
49
52
50
53
function install_deps {
@@ -98,7 +101,7 @@ function run_tests {
98
101
function cleanup {
99
102
announce " Performing cleanup..."
100
103
delete_all_functions
101
- rm " ${DIR} /functions/firebase-functions.tgz"
104
+ rm " ${DIR} /functions/firebase-functions-* .tgz"
102
105
rm " ${DIR} /functions/package.json"
103
106
rm -f " ${DIR} /functions/firebase-debug.log"
104
107
rm -rf " ${DIR} /functions/lib"
You can’t perform that action at this time.
0 commit comments