|
9 | 9 |
|
10 | 10 | set -euo pipefail
|
11 | 11 |
|
12 |
| -echo "Prerequisites" |
13 |
| -echo "" |
14 |
| -echo "Installed:" |
15 |
| -echo " - Ruby (>= 2.7.0)" |
16 |
| -echo " - Jekyll (>= 3.8.5)" |
17 |
| -echo " - Bundler (>= 2.0.1)" |
18 |
| -echo " - Node.js (>= 12.0.0)" |
19 |
| -echo " - Yarn (>= 1.22.0)" |
20 |
| -echo " - Babashka" |
21 |
| -echo "" |
22 |
| -echo "Directory Structure:" |
23 |
| -echo " - metabase.github.io (the marketing repo) should be at ../metabase.github.io relative to the root of this repo" |
24 |
| -echo "" |
25 |
| -echo "Running simulator.sh on branch: $TARGET_BRANCH" |
26 |
| - |
27 |
| -printf '\n\n\n================= bb script/_test/all.clj =================z\n' |
| 12 | +echo "Running simulator.sh on branch: $MAIN_REPO_BRANCH" |
| 13 | + |
| 14 | +printf '\n\n\n============================== bb script/_test/all.clj ==============================z\n' |
28 | 15 | bb script/_test/all.clj
|
29 | 16 |
|
30 |
| -printf "\n\n\n================= bb script/check_incoming_branchname.clj --target-branch %s =================z\n" "$TARGET_BRANCH" |
31 |
| -bb script/check_incoming_branchname.clj --target-branch "$TARGET_BRANCH" |
| 17 | +printf '\n\n\n============================== bb script/check_incoming_branchname.clj "$MAIN_REPO_BRANCH" ==============================z\n' |
| 18 | +bb script/check_incoming_branchname.clj "$MAIN_REPO_BRANCH" |
| 19 | + |
| 20 | +printf '\n\n\n============================== bb script/update_docs_for_branchname.clj "$MAIN_REPO_BRANCH" ==============================z\n' |
| 21 | +bb script/update_docs_for_branchname.clj "$MAIN_REPO_BRANCH" |
32 | 22 |
|
33 |
| -printf "\n\n\n================= bb script/update_docs_for_branchname.clj --source-branch %s --target-branch %s =================z\n" "$SOURCE_BRANCH" "$TARGET_BRANCH" |
34 |
| -bb script/update_docs_for_branchname.clj --source-branch "$SOURCE_BRANCH" --target-branch "$TARGET_BRANCH" |
| 23 | +printf '\n\n\n============================== copy marketing files ==============================z\n' |
35 | 24 |
|
36 |
| -printf '\n\n\n================= copy marketing files =================z\n' |
37 |
| -bb script/sync_repo.clj --from-repo ../metabase.github.io |
| 25 | +cp -r ../metabase.github.io/_data . |
| 26 | +cp -r ../metabase.github.io/_includes . |
| 27 | +cp -r ../metabase.github.io/_community-posts . |
| 28 | +cp -r ../metabase.github.io/_layouts . |
| 29 | +cp -r ../metabase.github.io/_plugins . |
| 30 | +cp -r ../metabase.github.io/_sass . |
38 | 31 |
|
39 |
| -printf '\n\n\n================= yarn lint-markdown =================z\n' |
| 32 | +printf '\n\n\n============================== yarn lint-markdown ==============================z\n' |
40 | 33 | yarn lint-markdown
|
41 | 34 |
|
42 |
| -printf '\n\n\n================= yarn lint-styles =================z\n' |
| 35 | +printf '\n\n\n============================== yarn lint-styles ==============================z\n' |
43 | 36 | yarn lint-styles
|
44 | 37 |
|
45 |
| -printf '\n\n\n================= yarn lint-scripts =================z\n' |
| 38 | +printf '\n\n\n============================== yarn lint-scripts ==============================z\n' |
46 | 39 | yarn lint-scripts
|
47 | 40 |
|
48 |
| -printf '\n\n\n================= yarn lint-links =================z\n' |
| 41 | +printf '\n\n\n============================== yarn lint-links ==============================z\n' |
49 | 42 | yarn lint-links
|
50 | 43 |
|
51 | 44 | # Clear the existing site:
|
52 | 45 | rm -rf _site
|
53 | 46 |
|
54 |
| -# Build the docs jekyll site: |
| 47 | +# Build the jekyll site: |
55 | 48 | bundle exec jekyll build
|
56 | 49 |
|
57 | 50 | script/links || true
|
|
0 commit comments