Bit ugly but worth holding on to for future reference

This commit is contained in:
Mark McDonnell 2016-05-09 12:31:00 +01:00
parent 1ffe18b4f0
commit f3cd0fd06e
1 changed files with 26 additions and 0 deletions

26
Makefile Normal file
View File

@ -0,0 +1,26 @@
.PHONY: tests, release
tests:
pushd src && APP_ENV=test go test $$(glide novendor) && popd
release:
chmod 755 ./news-frameworks/scripts/tag-by-cosmos-release.sh
$(shell ./news-frameworks/scripts/tag-by-cosmos-release.sh mozart-requester)
lock_local_config:
git update-index --assume-unchanged ./src/config/cosmos.json
unlock_local_config:
git update-index --no-assume-unchanged ./src/config/cosmos.json
stash_pop:
git stash pop
stash:
git stash
rebase: stash
git rebase -i master
rebase_master: | unlock_local_config rebase stash_pop lock_local_config
# the pipe is used to enforce order in case user tries using -j (parallel jobs) flag