Skip to content

Commit ce58f38

Browse files
committed
remove bazel
1 parent e76339f commit ce58f38

16 files changed

+9
-1163
lines changed

.bazelrc

-24
This file was deleted.

.travis.yml

+1-21
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,19 @@
1-
go_import_path: github.com/sbueringer/kubectl-openstack-plugin
21

32
sudo: required
43
dist: trusty
54

6-
env:
7-
global:
8-
- BAZEL_VERSION="0.21.0"
9-
10-
before_script:
11-
- wget "https://storage.googleapis.com/bazel-apt/pool/jdk1.8/b/bazel/bazel_${BAZEL_VERSION}_amd64.deb"
12-
- sudo dpkg --force-all -i bazel_${BAZEL_VERSION}_amd64.deb
13-
- sudo apt-get install moreutils -y
14-
155
script:
166
- ./build.sh
17-
#TODO enable again- go test -race -coverprofile=coverage.txt -covermode=atomic
18-
19-
cache:
20-
directories:
21-
- $HOME/.bzrepos
22-
237

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

279
before_deploy:
28-
- cp bazel-bin/cmd/kubectl-openstack/linux_amd64_pure_stripped/kubectl-openstack /tmp/kubectl-openstack
29-
- cp bazel-bin/cmd/kubectl-openstack/kubectl-openstack_tar.tar.gz /tmp/kubectl-openstack.tar.gz
10+
- cp ./kubectl-openstack /tmp/kubectl-openstack
3011

3112
deploy:
3213
- provider: releases
3314
api_key: $GITHUB_RELEASE_TOKEN
3415
file:
3516
- /tmp/kubectl-openstack
36-
- /tmp/kubectl-openstack.tar.gz
3717
overwrite: true
3818
skip_cleanup: true
3919
on:

WORKSPACE

-34
This file was deleted.

bazel/BUILD.bazel

-1
This file was deleted.

bazel/print-workspace-status.sh

-51
This file was deleted.

bazel/version.sh

-175
This file was deleted.

bazel/workspace_mirror.bzl

-57
This file was deleted.

build.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
#!/usr/bin/env bash
22

3-
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
3+
WORKDIR=`echo $0 | sed -e s/build.sh//`
4+
cd ${WORKDIR}
5+
6+
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

0 commit comments

Comments
 (0)