summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2017-11-03 14:37:22 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2017-11-17 02:07:18 +0000
commitd2eda1a8648b7e6053627e48bf500f9671f0a6c2 (patch)
tree0b86ea7165ab02003b9e6fc480432774a72724a6 /Makefile
parentbf8b9a37df2aeead009996875f58c59625110472 (diff)
downloadpodman-d2eda1a8648b7e6053627e48bf500f9671f0a6c2.tar.gz
podman-d2eda1a8648b7e6053627e48bf500f9671f0a6c2.tar.bz2
podman-d2eda1a8648b7e6053627e48bf500f9671f0a6c2.zip
Enhancements to papr tests
The PR contains several enhancements to our CI testing. - enable lint testing on Fedora - add Centos Atomic as test platform - integration tests on run on the OS natively (uncontainerized) - builds are done in containers - inclusion of Vagrant file for local testing Signed-off-by: baude <bbaude@redhat.com> Closes: #18 Approved by: mheon
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 06d558dfc..f5a464d40 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
GO ?= go
-EPOCH_TEST_COMMIT ?= 2b74391
+EPOCH_TEST_COMMIT ?= 5cfd7a3
+HEAD ?= HEAD
PROJECT := github.com/projectatomic/libpod
GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD 2>/dev/null)
GIT_BRANCH_CLEAN := $(shell echo $(GIT_BRANCH) | sed -e "s/[^[:alnum:]]/-/g")
@@ -41,6 +42,8 @@ KPOD_LDFLAGS := -X main.kpodVersion=${KPOD_VERSION}
LDFLAGS := -ldflags '${BASE_LDFLAGS}'
LDFLAGS_KPOD := -ldflags '${BASE_LDFLAGS} ${KPOD_LDFLAGS}'
+BOX="fedora_atomic"
+
all: binaries docs
default: help
@@ -114,6 +117,9 @@ testunit:
localintegration: test-binaries
bash -i ./test/test_runner.sh ${TESTFLAGS}
+vagrant-check:
+ BOX=$(BOX) sh ./vagrant.sh
+
binaries: conmon kpod
test-binaries: test/bin2img/bin2img test/copyimg/copyimg test/checkseccomp/checkseccomp
@@ -151,13 +157,8 @@ uninstall:
done
.PHONY: .gitvalidation
-# When this is running in travis, it will only check the travis commit range
.gitvalidation: .gopathok
-ifeq ($(TRAVIS),true)
- GIT_CHECK_EXCLUDE="./vendor" $(GOPATH)/bin/git-validation -q -run DCO,short-subject,dangling-whitespace
-else
- GIT_CHECK_EXCLUDE="./vendor" $(GOPATH)/bin/git-validation -v -run DCO,short-subject,dangling-whitespace -range $(EPOCH_TEST_COMMIT)..HEAD
-endif
+ GIT_CHECK_EXCLUDE="./vendor" $(GOPATH)/bin/git-validation -v -run DCO,short-subject,dangling-whitespace -range $(EPOCH_TEST_COMMIT)..$(HEAD)
.PHONY: install.tools