Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 1885764: Don't try to build changelogs for BMO in CircleCI #112

Merged
merged 2 commits into from
Mar 17, 2024
Merged
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
48 changes: 24 additions & 24 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,27 +49,27 @@ jobs:
docker compose -f docker-compose.test.yml run --name version_json --entrypoint true bmo.test
docker cp version_json:/app/version.json build_info/version.json
docker rm version_json
- run:
name: build push data
command: |
docker compose -f docker-compose.test.yml run --name push_data bmo.test push_data
docker cp push_data:/app/build_info/blog.push.txt build_info/blog.push.txt
docker cp push_data:/app/build_info/bug.push.txt build_info/bug.push.txt
docker cp push_data:/app/build_info/email.push.txt build_info/email.push.txt
docker cp push_data:/app/build_info/tag.txt build_info/tag.txt
docker cp push_data:/app/build_info/wiki.push.txt build_info/wiki.push.txt
docker rm push_data
- run:
name: only publish if tag exists
command: |
git fetch --tags
tag="$(cat build_info/tag.txt)"
if git tag | fgrep -q "$tag"; then
echo "tag $tag exists!"
else
echo "tag $tag does not exist"
echo yes > build_info/publish.txt
fi
# - run:
# name: build push data
# command: |
# docker compose -f docker-compose.test.yml run --name push_data bmo.test push_data
# docker cp push_data:/app/build_info/blog.push.txt build_info/blog.push.txt
# docker cp push_data:/app/build_info/bug.push.txt build_info/bug.push.txt
# docker cp push_data:/app/build_info/email.push.txt build_info/email.push.txt
# docker cp push_data:/app/build_info/tag.txt build_info/tag.txt
# docker cp push_data:/app/build_info/wiki.push.txt build_info/wiki.push.txt
# docker rm push_data
# - run:
# name: only publish if tag exists
# command: |
# git fetch --tags
# tag="$(cat build_info/tag.txt)"
# if git tag | fgrep -q "$tag"; then
# echo "tag $tag exists!"
# else
# echo "tag $tag does not exist"
# echo yes > build_info/publish.txt
# fi
- run:
name: check if only version changed
command: |
Expand All @@ -86,9 +86,9 @@ jobs:
exit 0
fi
echo yes > build_info/only_version_changed.txt
- persist_to_workspace:
root: /tmp/bzbuild/build_info
paths: ["*.txt"]
# - persist_to_workspace:
# root: /tmp/bzbuild/build_info
# paths: ["*.txt"]
- store_artifacts:
path: /tmp/bzbuild/build_info
- *store_log
Expand Down
Loading