-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathMakefile
21 lines (16 loc) · 1.29 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
BUILDDIR = build
VERSION = 0.7
.PHONY: clean rpm deb test
clean:
-rm -rf tests/*.pyc
-rm -rf saboteur/*.pyc
-rm -rf $(BUILDDIR)
rpm:
-mkdir -p build
fpm -s dir -t rpm -d "python >= 2.6" -p build -n saboteur --license "Apache 2.0" --vendor "Tom Akehurst" -m "Tom Akehurst" --url "https://github.com/tomakehurst/saboteur" --description "A fault injection tool for resilience testing" -a noarch -v $(VERSION) --before-install packaging/before-install.sh --after-install packaging/after-install.sh --after-remove packaging/after-remove.sh --rpm-user saboteur --rpm-group saboteur saboteur=/usr/lib/ packaging/saboteur.sudo=/etc/sudoers.d/saboteur packaging/saboteur.init=/etc/init.d/saboteur-agent
deb:
-mkdir -p build
fpm -s dir -t deb -d "python >= 2.6" -n saboteur --license "Apache 2.0" --vendor "Tom Akehurst" -m "Tom Akehurst" --url "https://github.com/tomakehurst/saboteur" --description "A fault injection tool for resilience testing" -a all -v $(VERSION) --before-install packaging/before-install.sh --after-install packaging/after-install.sh --after-remove packaging/after-remove.sh --deb-user saboteur --deb-group saboteur saboteur=/usr/lib/ packaging/saboteur.sudo=/etc/sudoers.d/saboteur packaging/saboteur.init=/etc/init.d/saboteur-agent
mv saboteur*.deb build
test:
python -m tests.__main__