Skip to content

Commit

Permalink
Add .travis file - maybe now we can have CI?
Browse files Browse the repository at this point in the history
Also we need dep.

Maybe

Maybe

Maybe

Definitely not

Maybe

Maybe

Maybe

Maybe

Definitely not

Definitely not

Maybe

Maybe

Maybe

Maybe

Maybe

Definitely not

Maybe

Maybe

This was a casualty of some earlier folly.

Remove operator-sdk stuff
  • Loading branch information
distortedsignal committed Oct 3, 2018
1 parent 4d5f6d5 commit f5e9185
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .travis.yml
@@ -0,0 +1,19 @@
language: go

go:
- "1.11"

env:
- DEP_VERSION="0.5.0" # I'm using 0.5.0, so Travis gets to use 0.5.0

before_install:
# if we're in a mainline build, don't make a symlink
# if we're not in a mainline build, symlink the proper dir to point to this dir.
- if [["github.com/BlueK8S" in $(TRAVIS_BUILD_DIR)]]; then echo "mainline build, no symlink"; else mkdir -p $GOPATH/src/github.com/BlueK8S && ln -s $(pwd) $GOPATH/src/github.com/BlueK8S/kubedirector ; fi
# Get dep
- curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 -o $GOPATH/bin/dep
- chmod +x $GOPATH/bin/dep
- make dep

script:
- make compile
3 changes: 3 additions & 0 deletions Makefile
Expand Up @@ -20,6 +20,9 @@ endif

build_dir = 'tmp/_output'

compile:
make clean
go build -o tmp/_output/bin ./cmd/kubedirector

build: pkg/apis/kubedirector.bluedata.io/v1alpha1/zz_generated.deepcopy.go | $(build_dir)
@echo
Expand Down

0 comments on commit f5e9185

Please sign in to comment.