Skip to content

Commit 37c750a

Browse files
committed
Tidy up stages in circle ci
1 parent fd0c9ec commit 37c750a

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

.circleci/config.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,13 @@ defaults: &defaults
1414
# Any branch if there are none on the default branch - this should be unnecessary if you have your default branch configured correctly
1515
- v1-dep-
1616
- run:
17-
name: Version checks
17+
name: Output release info
1818
command: |
1919
VERSION=`fgrep '###' CHANGES.md | awk '{print $2}' | head -1`
20-
echo picked up VERSION=$VERSION from CHANGES.md
20+
echo 'picked up VERSION=$VERSION from CHANGES.md'
2121
grep -q $VERSION CHANGES.md || (echo "ERROR: Version number not found in CHANGES.md: $VERSION"; exit 1)
22-
- run:
23-
name: Output useful stuff
24-
command: |
25-
echo $VERSION > "$CIRCLE_ARTIFACTS/version.txt"
26-
# Find the lines of the changelog between releases, escape double quotes, delete empty lines
27-
# Simply gets the current changes from top of changelog.
28-
#sed -n '{ /------/= }' CHANGES.md \
29-
#| head -n 2 \
30-
#| xargs -n 2 bash -c 'sed -n "s/\"/\\\\\"/g;`expr $0 + 1`,`expr $1 - 2`p" CHANGES.md' \
31-
#| sed '/^$/d' \
32-
#> "$CIRCLE_ARTIFACTS/changes.md"
22+
echo $VERSION > "$CIRCLE_ARTIFACTS/version.txt"
23+
echo "See CHANGES.md for a list of latest improvements" > "$CIRCLE_ARTIFACTS/changes.md"
3324
- run:
3425
name: Install MongoDB
3526
command: |

0 commit comments

Comments
 (0)