Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions infra/nightly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,19 @@ popd
# Update HTML index page.
cp "$RESOURCE_DIR"/* "$OUTPUT_DIR"

# copy data over to output
cp -r "$DATA_DIR" "$OUTPUT_DATA_DIR"
# copy data over to output in local mode, enabling regeneration of reports with --update flag
if [ "$LOCAL" != "" ]; then
cp -r "$DATA_DIR" "$OUTPUT_DATA_DIR"
fi

# move data over to output in non-local mode
if [ "$LOCAL" == "" ]; then
mv "$DATA_DIR" "$OUTPUT_DATA_DIR"
Comment thread
oflatt marked this conversation as resolved.
fi

# gzip all JSON and svgs in the nightly dir
if [ "$LOCAL" == "" ]; then
gzip "$PROFILE_JSON"
gzip "$OUTPUT_DATA_DIR/profile.json"
find "$OUTPUT_DIR" -name '*.svg' -exec gzip {} +
find "$OUTPUT_DIR" -name '*.ll' -exec gzip {} +
fi