-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile.PL
More file actions
38 lines (29 loc) · 876 Bytes
/
Makefile.PL
File metadata and controls
38 lines (29 loc) · 876 Bytes
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
use strict;
use warnings;
use ExtUtils::MakeMaker;
use FindBin;
WriteMakefile(
NAME => 'grnoc-routerproxy',
AUTHOR => 'GRNOC Software Engineering <globalnoc@iu.edu>',
VERSION_FROM => 'lib/GRNOC/RouterProxy.pm',
PL_FILES => {},
PREREQ_PM => {},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => 'grnoc-routerproxy-*.gz' },
);
sub MY::test {
q(
TEST_VERBOSE=1
test : pure_all
$(FULLPERL) t/TEST $(TEST_VERBOSE)
test_jenkins : pure_all
$(FULLPERL) t/TEST $(TEST_VERBOSE) --formatter=TAP::Formatter::Console
);
}
sub MY::postamble { <<'END'; }
BUILD_NUMBER ?= 1
rpm: dist
rpmbuild -ta grnoc-routerproxy-$(VERSION).tar.gz --define="_buildno ${BUILD_NUMBER}"
container:
docker build . -f Dockerfile -t routerproxy:$(VERSION)
END