-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·54 lines (39 loc) · 1.42 KB
/
build.sh
File metadata and controls
executable file
·54 lines (39 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
set -e -x
rm db.sqlite3 || true
rm -rf private _site public
mkdir private _site public
META_REVIEW_DATA="meta_review.json"
EXPORTED_DATA="static/tasks.yaml static/instances.yaml static/$META_REVIEW_DATA"
ISSUES_JSON="issues.json"
python manage.py fetch_deployed_data --allow-failure _site $EXPORTED_DATA
if [[ -n "$GCI_TOKEN" ]]; then
python manage.py fetch_gci_task_data private
python manage.py cleanse_gci_task_data private _site
rm -rf private/
fi
# fetch deployed issues data in gh-board repo
python manage.py fetch_deployed_data _site $ISSUES_JSON \
--repo-name gh-board --hoster github
python manage.py migrate
python manage.py import_contributors_data
python manage.py create_org_cluster_map_and_activity_graph org_map
python manage.py import_issues_data
python manage.py import_merge_requests_data
python manage.py create_config_data
python manage.py create_participants
python manage.py update_participants_data
if [[ -f "_site/$META_REVIEW_DATA" ]]; then
echo "File $META_REVIEW_DATA exists."
# Load meta_review data
python manage.py loaddata _site/$META_REVIEW_DATA
else
echo "File $META_REVIEW_DATA does not exist."
fi
# Run meta review system
python manage.py run_meta_review_system
rm _site/$ISSUES_JSON
# Dump meta_review data
python manage.py dumpdata meta_review > _site/$META_REVIEW_DATA
python manage.py collectstatic --noinput
python manage.py distill-local public --force