From 81cb9d3a75a24d84d2ad93bcf19e692611c22426 Mon Sep 17 00:00:00 2001 From: Erik Ziegler Date: Wed, 26 Jun 2019 22:46:08 +0200 Subject: [PATCH] ci(rollbar): Add Rollbar script during CI deploy --- .circleci/config.yml | 1 + .circleci/rollbar.html | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 .circleci/rollbar.html diff --git a/.circleci/config.yml b/.circleci/config.yml index c44c64d2c..e7656a046 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -170,6 +170,7 @@ jobs: name: 'Build Demo Site, Upload SourceMaps, Send Deploy Notification' command: | yarn build:demo:ci + perl -i -pe 's##`cat .circleci/rollbar.html` #e' build/index.html export FILE_1=$(find ./build/static/js -type f -name "2.*.js" -exec basename {} \;) export FILE_MAIN=$(find ./build/static/js -type f -name "main.*.js" -exec basename {} \;) export FILE_RUNTIME_MAIN=$(find ./build/static/js -type f -name "runtime~main.*.js" -exec basename {} \;) diff --git a/.circleci/rollbar.html b/.circleci/rollbar.html new file mode 100644 index 000000000..e7b086fe1 --- /dev/null +++ b/.circleci/rollbar.html @@ -0,0 +1,15 @@ + + \ No newline at end of file