Skip to content

Commit

Permalink
remove bazel
Browse files Browse the repository at this point in the history
  • Loading branch information
sbueringer committed Oct 5, 2019
1 parent e76339f commit ce58f38
Show file tree
Hide file tree
Showing 16 changed files with 9 additions and 1,163 deletions.
24 changes: 0 additions & 24 deletions .bazelrc

This file was deleted.

22 changes: 1 addition & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,19 @@
go_import_path: github.com/sbueringer/kubectl-openstack-plugin

sudo: required
dist: trusty

env:
global:
- BAZEL_VERSION="0.21.0"

before_script:
- wget "https://storage.googleapis.com/bazel-apt/pool/jdk1.8/b/bazel/bazel_${BAZEL_VERSION}_amd64.deb"
- sudo dpkg --force-all -i bazel_${BAZEL_VERSION}_amd64.deb
- sudo apt-get install moreutils -y

script:
- ./build.sh
#TODO enable again- go test -race -coverprofile=coverage.txt -covermode=atomic

cache:
directories:
- $HOME/.bzrepos


after_success:
- bash <(curl -s https://codecov.io/bash)

before_deploy:
- cp bazel-bin/cmd/kubectl-openstack/linux_amd64_pure_stripped/kubectl-openstack /tmp/kubectl-openstack
- cp bazel-bin/cmd/kubectl-openstack/kubectl-openstack_tar.tar.gz /tmp/kubectl-openstack.tar.gz
- cp ./kubectl-openstack /tmp/kubectl-openstack

deploy:
- provider: releases
api_key: $GITHUB_RELEASE_TOKEN
file:
- /tmp/kubectl-openstack
- /tmp/kubectl-openstack.tar.gz
overwrite: true
skip_cleanup: true
on:
Expand Down
34 changes: 0 additions & 34 deletions WORKSPACE

This file was deleted.

1 change: 0 additions & 1 deletion bazel/BUILD.bazel

This file was deleted.

51 changes: 0 additions & 51 deletions bazel/print-workspace-status.sh

This file was deleted.

175 changes: 0 additions & 175 deletions bazel/version.sh

This file was deleted.

57 changes: 0 additions & 57 deletions bazel/workspace_mirror.bzl

This file was deleted.

5 changes: 4 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env bash

docker run -it -w /github/workspace -v $(pwd):/github/workspace -v /tmp:/tmp --entrypoint bazel l.gcr.io/google/bazel:0.29.1 build //cmd/kubectl-openstack:kubectl-openstack //cmd/kubectl-openstack:kubectl-openstack_tar
WORKDIR=`echo $0 | sed -e s/build.sh//`
cd ${WORKDIR}

docker run --rm -v "$PWD":/usr/src/github.com/sbueringer/kubectl-openstack-plugin -w /usr/src/github.com/sbueringer/kubectl-openstack-plugin golang:1.13.1 go build -v -o ./kubectl-openstack ./cmd/kubectl-openstack
Loading

0 comments on commit ce58f38

Please sign in to comment.