Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/Financial-Times/n-ui into…
Browse files Browse the repository at this point in the history
… rhys/use-hashed-bundle

* 'master' of https://github.com/Financial-Times/n-ui:
  change conditional order for rebuild (#988)
  • Loading branch information
wheresrhys committed Jun 23, 2017
2 parents 2fd533a + 5936e48 commit 8fed349
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ deploy-s3:
rebuild-user-facing-apps:
# Don't rebuild apps if a beta tag release
ifneq (,$(findstring beta,$(CIRCLE_TAG)))
echo "This looks like a beta release so I won't rebuild any apps";
else
# only autodeploy all apps in office hours
HOUR=$$(date +%H); DAY=$$(date +%u); if [ $$HOUR -ge 8 ] && [ $$HOUR -lt 16 ] && [ $$DAY -ge 0 ] && [ $$DAY -lt 6 ]; then \
echo "REBUILDING ALL APPS" && sleep 20 && nht rebuild --all --serves user-page; fi
else
echo "This looks like a beta release so I won't rebuild any apps";
endif

test-server-coverage: ## test-server-coverage: Run the unit tests with code coverage enabled.
Expand Down

0 comments on commit 8fed349

Please sign in to comment.