1
0
Fork 0
mirror of https://github.com/kbumsik/VirtScreen.git synced 2025-03-09 15:40:18 +00:00

Travis: Fixed bash interpreter

This commit is contained in:
Bumsik Kim 2018-06-18 03:11:21 -04:00
parent 7ebe935805
commit d1563d14bc
No known key found for this signature in database
GPG key ID: E31041C8EC5B01C6
6 changed files with 30 additions and 26 deletions

View file

@ -2,17 +2,19 @@
# for python packaging reference.
DOCKER_NAME=kbumsik/virtscreen
DOCKER_RUN=docker run -v $(shell pwd)/package/debian:/app $(DOCKER_NAME)
DOCKER_RUN_TTY=docker run --interactive --tty -v $(shell pwd)/package/debian:/app $(DOCKER_NAME)
.PHONY:
python-wheel:
/usr/bin/python3 setup.py bdist_wheel --universal
python3 setup.py bdist_wheel --universal
python-install:
/usr/bin/pip3 install . --user
pip3 install . --user
python-uninstall:
/usr/bin/pip3 uninstall virtscreen
pip3 uninstall virtscreen
python-clean:
rm -rf build dist virtscreen.egg-info virtscreen/qml/*.qmlc
@ -27,7 +29,7 @@ docker-build:
docker build -f Dockerfile -t $(DOCKER_NAME) .
docker:
docker run --interactive --tty -v $(shell pwd)/package/debian:/app $(DOCKER_NAME) /bin/bash
$(DOCKER_RUN_TTY) /bin/bash
docker-rm:
docker image rm -f $(DOCKER_NAME)
@ -41,24 +43,27 @@ docker-push:
# For Debian packaging, https://www.debian.org/doc/manuals/debmake-doc/ch08.en.html#setup-py
deb-make:
docker run -v $(shell pwd)/package/debian:/app $(DOCKER_NAME) /app/debmake.sh
$(DOCKER_RUN) /app/debmake.sh
deb-build: deb-clean deb-make
package/debian/copy_debian.sh
docker run -v $(shell pwd)/package/debian:/app $(DOCKER_NAME) /app/debuild.sh
deb-build: deb-make
$(DOCKER_RUN) /app/copy_debian.sh
$(DOCKER_RUN) /app/debuild.sh
deb-contents:
docker run -v $(shell pwd)/package/debian:/app $(DOCKER_NAME) /app/contents.sh
$(DOCKER_RUN) /app/contents.sh
deb-env-make:
docker run -v $(shell pwd)/package/debian:/app $(DOCKER_NAME) /app/debmake.sh virtualenv
$(DOCKER_RUN) /app/debmake.sh virtualenv
deb-env-build: deb-clean deb-env-make
package/debian/copy_debian.sh virtualenv
docker run -v $(shell pwd)/package/debian:/app $(DOCKER_NAME) /app/debuild.sh virtualenv
deb-env-build: deb-env-make
$(DOCKER_RUN) /app/copy_debian.sh virtualenv
$(DOCKER_RUN) /app/debuild.sh virtualenv
deb-chown:
$(DOCKER_RUN) chown -R $(shell id -u):$(shell id -u) /app/build
deb-clean:
rm -rf package/debian/build
$(DOCKER_RUN) rm -rf /app/build
# For AUR: https://wiki.archlinux.org/index.php/Python_package_guidelines
# and: https://wiki.archlinux.org/index.php/Creating_packages