Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version=$(shell git describe | sed -e 's/-g.*$$//')
- seconds=$(shell date +%s)
- all: install
- clean:
- pip uninstall gibgummi -y || true
- install: clean
- pip install . -I --no-deps
- run: install
- gibgummi-serve --host 0.0.0.0 --port 5000
- git-clean:
- git fetch
- git status | grep -E 'up-to-date[\w\W\n]*nothing to commit, working tree clean'
- on-release:
- git status | grep 'origin/release'
- grep -v '.post' setup.py
- update-version:
- sed -i -e "s/version='.*'/version='$(version)'/g" setup.py
- update-version-dev:
- sed -i -e "s/version='.*'/version='$(version).dev$(seconds)'/g" setup.py
- remove-version:
- sed -i -e "s/version='.*'/version=''/g" setup.py
- nosetests:
- nosetests --rednose
- distribute:
- pip wheel . -w /mnt/wheelhouse/
- dev: update-version-dev distribute remove-version
- test: nosetests git-clean update-version distribute remove-version
- release: nosetests git-clean on-release update-version distribute remove-version
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement