This repository was archived by the owner on Jan 15, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ before_install:
1313 - go get -u github.com/alecthomas/gometalinter
1414 - gometalinter --install --update
1515 - go get -t -d ./...
16+ - mkdir -p /tmp/image-tools
1617
1718install : true
1819
@@ -22,3 +23,4 @@ script:
2223 - make check-license
2324 - make test
2425 - make tools
26+ - make install DESTDIR=/tmp/image-tools
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ TOOLS := \
88 oci-create-runtime-bundle \
99 oci-image-validate \
1010 oci-unpack
11+ DESTDIR ?= /usr/bin/
1112
1213default : help
1314
1920 @echo " * 'lint' - Execute the source code linter"
2021 @echo " * 'test' - Execute the unit tests"
2122 @echo " * 'update-deps' - Update vendored dependencies"
23+ @echo " * 'install' - Install the binaries into system path"
2224
2325check-license :
2426 @echo " checking license headers"
@@ -44,6 +46,9 @@ update-deps:
4446 # see http://sed.sourceforge.net/sed1line.txt
4547 find vendor -type f -exec sed -i -e :a -e ' /^\n*$$/{$$d;N;ba' -e ' }' " {}" \;
4648
49+ install :
50+ install -D -m 755 -t ${DESTDIR} ${TOOLS}
51+
4752.PHONY : .gitvalidation
4853
4954# When this is running in travis, it will only check the travis commit range
8186 check-license \
8287 clean \
8388 lint \
84- test
89+ test \
90+ install
You can’t perform that action at this time.
0 commit comments