Skip to content

Commit 6068d61

Browse files
authored
Clean up files before and after integration test. (#78)
1 parent 39aa015 commit 6068d61

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

integration_test/run_tests.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22
echo "#### Building SDK..." &&
3-
(cd ../ && npm run build:pack && cp firebase-functions-*.tgz integration_test/functions/firebase-functions.tgz) &&
3+
(cd ../ && rm firebase-functions-*.tgz && npm run build:pack &&
4+
mv firebase-functions-*.tgz integration_test/functions/firebase-functions.tgz) &&
45
echo "#### Installing dependencies..." &&
56
(cd functions && npm install) &&
67
echo "##### Deploying empty index.js to project..." &&
@@ -22,5 +23,6 @@ read -n1 -r -p "##### Press [return] when you've confirmed the tests have passed
2223
echo "##### Removing all functions" &&
2324
echo "" > functions/lib/index.js &&
2425
firebase deploy --debug 2> ./deploy-debug.log &&
26+
rm functions/firebase-functions.tgz
2527
echo &&
2628
echo "##### Done! Please verify that your project is empty."

0 commit comments

Comments
 (0)