Skip to content

Commit 5ed1d86

Browse files
authored
Merge pull request #3323 from StoDevX/circle-handle-tags-properly
Circle: Handle tags more properly
2 parents 51c9547 + 7b0a99c commit 5ed1d86

File tree

3 files changed

+26
-8
lines changed

3 files changed

+26
-8
lines changed

.circleci/config.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,15 @@ jobs:
264264
- run:
265265
name: "Reconcile Git histories"
266266
command: |
267-
git checkout master
268-
git reset --hard origin/master
269-
git checkout "$CIRCLE_BRANCH"
270-
git reset --hard "origin/$CIRCLE_BRANCH"
267+
if [ -z "$CIRCLE_TAG" ];
268+
then
269+
git checkout master
270+
git reset --hard origin/master
271+
git checkout "$CIRCLE_BRANCH"
272+
git reset --hard "origin/$CIRCLE_BRANCH"
273+
else
274+
echo "CIRCLE_TAG was set, didn't do anything"
275+
fi
271276
- run: mkdir -p logs/
272277
- run: touch logs/build-status
273278
- run:
@@ -335,10 +340,15 @@ jobs:
335340
- run:
336341
name: "Reconcile Git histories"
337342
command: |
338-
git checkout master
339-
git reset --hard origin/master
340-
git checkout "$CIRCLE_BRANCH"
341-
git reset --hard "origin/$CIRCLE_BRANCH"
343+
if [ -z "$CIRCLE_TAG" ];
344+
then
345+
git checkout master
346+
git reset --hard origin/master
347+
git checkout "$CIRCLE_BRANCH"
348+
git reset --hard "origin/$CIRCLE_BRANCH"
349+
else
350+
echo "CIRCLE_TAG was set, didn't do anything"
351+
fi
342352
- run: mkdir -p logs/
343353
- run: touch logs/build-status
344354
- run:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
3636
- Fixed the touchable ref from not passing from the filter toolbar button to the popover (#3279)
3737
- Resolved some circular `require` statements in our code (#3280)
3838
- Resolved issue with OleCard login just never working (#3308)
39+
- Made build tooling always build tagged commits (#3323)
3940

4041
## [2.6.3] - 2018-09-17
4142
### Fixed

scripts/should-skip-build

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,15 @@ def should_build_nightly?
139139
anything_changed_yesterday?
140140
end
141141

142+
def tagged_build?
143+
travis = ENV['TRAVIS_TAG'] && !ENV['TRAVIS_TAG'].empty?
144+
circle = ENV['CIRCLE_TAG'] && !ENV['CIRCLE_TAG'].empty?
145+
travis || circle
146+
end
147+
142148
# checks if the native build needs to be run
143149
def should_build?
150+
return true if tagged_build?
144151
return should_build_nightly? if ENV['IS_NIGHTLY']
145152

146153
# Find the oldest common revision between HEAD's parent and our

0 commit comments

Comments
 (0)