|
9 | 9 |
|
10 | 10 | set -euo pipefail
|
11 | 11 |
|
12 |
| -echo "Running simulator.sh on branch: $MAIN_REPO_BRANCH" |
13 |
| - |
14 |
| -printf '\n\n\n============================== bb script/_test/all.clj ==============================z\n' |
| 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' |
15 | 28 | bb script/_test/all.clj
|
16 | 29 |
|
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" |
| 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" |
22 | 32 |
|
23 |
| -printf '\n\n\n============================== copy marketing files ==============================z\n' |
| 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" |
24 | 35 |
|
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 . |
| 36 | +printf '\n\n\n================= copy marketing files =================z\n' |
| 37 | +bb script/sync_repo.clj --from-repo ../metabase.github.io |
31 | 38 |
|
32 |
| -printf '\n\n\n============================== yarn lint-markdown ==============================z\n' |
| 39 | +printf '\n\n\n================= yarn lint-markdown =================z\n' |
33 | 40 | yarn lint-markdown
|
34 | 41 |
|
35 |
| -printf '\n\n\n============================== yarn lint-styles ==============================z\n' |
| 42 | +printf '\n\n\n================= yarn lint-styles =================z\n' |
36 | 43 | yarn lint-styles
|
37 | 44 |
|
38 |
| -printf '\n\n\n============================== yarn lint-scripts ==============================z\n' |
| 45 | +printf '\n\n\n================= yarn lint-scripts =================z\n' |
39 | 46 | yarn lint-scripts
|
40 | 47 |
|
41 |
| -printf '\n\n\n============================== yarn lint-links ==============================z\n' |
| 48 | +printf '\n\n\n================= yarn lint-links =================z\n' |
42 | 49 | yarn lint-links
|
43 | 50 |
|
44 | 51 | # Clear the existing site:
|
45 | 52 | rm -rf _site
|
46 | 53 |
|
47 |
| -# Build the jekyll site: |
| 54 | +# Build the docs jekyll site: |
48 | 55 | bundle exec jekyll build
|
49 | 56 |
|
50 | 57 | script/links || true
|
|
0 commit comments