File: Makefile

package info (click to toggle)
pypass 0.2.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 284 kB
  • sloc: python: 1,058; makefile: 22
file content (20 lines) | stat: -rw-r--r-- 633 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.PHONY: build kill setup_gpg

build:
	sudo docker build -t pypass_image .

kill:
	- sudo docker stop pypass
	- sudo docker rm pypass

run: kill build
	sudo docker run -i -t --name pypass pypass_image bash

test: kill build
	sudo docker run -t --name pypass pypass_image bash -c "cd pypass && tox"

setup_gpg: pypass/tests/gnupg
pypass/tests/gnupg: pypass/tests/test_key_sec.asc pypass/tests/test_ownertrust.txt
	mkdir -m 700 -p pypass/tests/gnupg
	GNUPGHOME=pypass/tests/gnupg gpg --allow-secret-key-import --import pypass/tests/test_key_sec.asc
	GNUPGHOME=pypass/tests/gnupg gpg --import-ownertrust pypass/tests/test_ownertrust.txt