-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add travis support #127
Add travis support #127
Conversation
ba91358
to
81066cd
Compare
Makefile
Outdated
@@ -50,22 +50,24 @@ KUBECFG_CMD = $(DOCKER) run \ | |||
$(KSONNET_BUILD_IMAGE) \ | |||
kubecfg show -o yaml -V RBAC_ENABLED=$(RBAC_ENABLED) -J $(WORKDIR) -o yaml $< > $@ | |||
|
|||
DOCKER_RUN ?= $(DOCKER) run --rm -v $(DIR):$(BUILDMNT) -w $(BUILDMNT) $(BUILD_IMAGE) /bin/sh -c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might want to change the alias name. DOCKER_BUILDER..?
Makefile
Outdated
.PHONY: all container push clean cbuild test local generate | ||
|
||
all: container | ||
|
||
test: | ||
$(DOCKER) run --rm -v $(DIR):$(BUILDMNT) -w $(BUILDMNT) $(BUILD_IMAGE) /bin/sh -c '$(TEST)' | ||
$(DOCKER_RUN) '$(TEST)' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
want to have the test: cbuild
and you could get rid of the other stage above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't quite understand this. They are running different commands?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are, but you probably shouldn't run the tests if the builds fail.
So making it a dependent target makes sense to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
legit!
.travis.yml
Outdated
include: | ||
- stage: test | ||
script: make test | ||
- script: make cbuild |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a separate stage with no name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnamed stages inherit the previous stage's name, so you can have multiple simultaneous jobs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm :) nice work!
Makefile
Outdated
|
||
container: cbuild | ||
container: test cbuild |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you do the test: cbuild
change
then this can become container: test
Signed-off-by: liz <liz@heptio.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
thx @liztio !
@chuckha now to switch the default checks on the repo and setup the webhooks. Also nix a jenkins job! It will make @davecheney smile ;-) |
Add travis support Signed-off-by: Jesse Hamilton jesse.hamilton@heptio.com
Add travis support Signed-off-by: Jesse Hamilton jesse.hamilton@heptio.com Signed-off-by: Jesse Hamilton jesse.hamilton@heptio.com
Signed-off-by: liz liz@heptio.com
Fixes: #123