-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
62 lines (44 loc) · 1.38 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
.PHONY: clean
help:
@echo "clean - remove all build and test artifacts"
@echo "build - build RPM & DEB packages"
@echo "test - test RPM & DEB packages"
clean: clean-test-files clean-dist
clean-test-files:
rm -f testing/*.log
rm -f testing/*.pass
rm -f testing/dist/*
clean-dist:
rm -f dist/*
build: rpm deb
deb:
docker build --rm=true -t agent-builder-deb -f build/Dockerfile.deb .
docker run --rm=true --name agent-builder-deb -v `pwd`:/vagrant agent-builder-deb
rpm:
docker build --rm=true -t agent-builder-rpm -f build/Dockerfile.rpm .
docker run --rm=true --name agent-builder-rpm -v `pwd`:/vagrant agent-builder-rpm
test: test-centos6 test-centos7 test-debian7 test-debian8 test-ubuntu12 test-ubuntu14 test-ubuntu15 test-ubuntu16
test-centos6:
cd testing; ./runtest.sh centos6
cd testing; ./check.sh centos6
test-centos7:
cd testing; ./runtest.sh centos7
cd testing; ./check.sh centos7
test-debian7:
cd testing; ./runtest.sh debian7
cd testing; ./check.sh debian7
test-debian8:
cd testing; ./runtest.sh debian8
cd testing; ./check.sh debian8
test-ubuntu12:
cd testing; ./runtest.sh ubuntu12
cd testing; ./check.sh ubuntu12
test-ubuntu14:
cd testing; ./runtest.sh ubuntu14
cd testing; ./check.sh ubuntu14
test-ubuntu15:
cd testing; ./runtest.sh ubuntu15
cd testing; ./check.sh ubuntu15
test-ubuntu16:
cd testing; ./runtest.sh ubuntu16
cd testing; ./check.sh ubuntu16