Skip to content
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

Merged
merged 1 commit into from
Nov 2, 2017
Merged

Add travis support #127

merged 1 commit into from
Nov 2, 2017

Conversation

liztio
Copy link
Contributor

@liztio liztio commented Nov 2, 2017

Signed-off-by: liz liz@heptio.com

Fixes: #123

@liztio liztio force-pushed the liz-travis branch 2 times, most recently from ba91358 to 81066cd Compare November 2, 2017 17:24
@liztio liztio changed the title (WIP) travis support Add travis support Nov 2, 2017
@liztio liztio requested review from timothysc and chuckha November 2, 2017 17:24
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
Copy link
Contributor

@timothysc timothysc Nov 2, 2017

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)'
Copy link
Contributor

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.

Copy link
Contributor Author

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?

Copy link
Contributor

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.

Copy link
Contributor Author

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
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

@chuckha chuckha left a 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
Copy link
Contributor

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>
Copy link
Contributor

@timothysc timothysc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

thx @liztio !

@liztio liztio merged commit ce9517b into vmware-tanzu:master Nov 2, 2017
@liztio liztio deleted the liz-travis branch November 2, 2017 17:58
@timothysc
Copy link
Contributor

@chuckha now to switch the default checks on the repo and setup the webhooks.

Also nix a jenkins job! It will make @davecheney smile ;-)

jhamilton1 pushed a commit to jhamilton1/sonobuoy that referenced this pull request Jun 27, 2018
Add travis support
Signed-off-by: Jesse Hamilton jesse.hamilton@heptio.com
jhamilton1 pushed a commit to jhamilton1/sonobuoy that referenced this pull request Jun 27, 2018
Add travis support
Signed-off-by: Jesse Hamilton jesse.hamilton@heptio.com

Signed-off-by: Jesse Hamilton jesse.hamilton@heptio.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants