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

Automate go tools with bios.sh #1

Merged
merged 4 commits into from Jan 5, 2018

Conversation

Projects
None yet
1 participant
@nzoschke
Owner

nzoschke commented Jan 4, 2018

  • adds bios.sh to the repo
  • addresses errors from go lint by adding comments
  • addresses errors from go build by vendoring dependencies
@bios

This comment has been minimized.

bios bot commented on cd3f9da Jan 4, 2018

Failed in 0.7 seconds. 🈵

Statuses

+ Cloning
- Linting

Logs

...
out |     /tmp/952570049/src/github.com/nzoschke/run/main.go:26:6: exported type PrefixWriter should have comment or be unexported
err | 
err | EXIT: 1
err | TIME: 0.1s
err | STAT: Linting failed
show all
000:0 $ grep -v PASS=
000:0 $ env
out | USER=x-access-token
out | PATH=/usr/local/bin:/usr/bin/:/bin:/var/task/usr/bin:/var/task/usr/libexec/git-core:/var/task/usr/local/go/bin:/tmp/952570049/bin
out | OWNER=nzoschke
out | PWD=/tmp/952570049
out | PKG=github.com/nzoschke/run
out | URL=https://github.com/nzoschke/run.git
out | SHLVL=1
out | HOME=/tmp/952570049
out | GOROOT=/var/task/usr/local/go
out | REF=bios
out | SHA=cd3f9da38c0dc64e09ce4d86f31f92811499179f
out | TMP=/tmp/952570049
out | REPO=run
out | GOPATH=/tmp/952570049
out | _=/usr/bin/env

000:0 $ mkdir -p src/github.com/nzoschke/run
000:0 $ cd src/github.com/nzoschke/run
000:0 $ pwd
out | /tmp/952570049/src/github.com/nzoschke/run

000:0 $ run -s Cloning git clone https://github.com/nzoschke/run.git --branch bios --single-branch .
err | STAT: Cloning
err | EXEC: "git clone https://github.com/nzoschke/run.git --branch bios --single-branch ."
err |     Cloning into '.'...
err | 
err | EXIT: 0
err | TIME: 0.4s

000:4 $ git branch --set-upstream-to=origin/bios bios
out | Branch 'bios' set up to track remote branch 'bios' from 'origin'.

000:4 $ git reset --hard cd3f9da38c0dc64e09ce4d86f31f92811499179f
out | HEAD is now at cd3f9da golang bios

err | ++ go list ./...
000:6 $ PKGS=github.com/nzoschke/run
000:6 $ run -s Linting golint -set_exit_status github.com/nzoschke/run
err | STAT: Linting
err | EXEC: "golint -set_exit_status github.com/nzoschke/run"
err |     Found 3 lint suggestions; failing.
out |     /tmp/952570049/src/github.com/nzoschke/run/main.go:16:6: exported type Devices should have comment or be unexported
out |     /tmp/952570049/src/github.com/nzoschke/run/main.go:21:5: exported var Dev should have comment or be unexported
out |     /tmp/952570049/src/github.com/nzoschke/run/main.go:26:6: exported type PrefixWriter should have comment or be unexported
err | 
err | EXIT: 1
err | TIME: 0.1s
err | STAT: Linting failed
@bios

This comment has been minimized.

bios bot commented on 3591df7 Jan 4, 2018

Failed in 2.3 seconds. 🈵

Statuses

+ Cloning
+ Linting
+ Vetting
- Building

Logs

...
err |     	/tmp/137584940/src/github.com/kballard/go-shellquote (from $GOPATH)
err | 
err | EXIT: 1
err | TIME: 0.0s
err | STAT: Building failed
show all
000:0 $ env
000:0 $ grep -v PASS=
out | USER=x-access-token
out | PATH=/usr/local/bin:/usr/bin/:/bin:/var/task/usr/bin:/var/task/usr/libexec/git-core:/var/task/usr/local/go/bin:/tmp/137584940/bin
out | OWNER=nzoschke
out | PWD=/tmp/137584940
out | PKG=github.com/nzoschke/run
out | URL=https://github.com/nzoschke/run.git
out | SHLVL=1
out | HOME=/tmp/137584940
out | GOROOT=/var/task/usr/local/go
out | REF=bios
out | SHA=3591df72f177a66cb80a8853fd9c910a950bf0eb
out | TMP=/tmp/137584940
out | REPO=run
out | GOPATH=/tmp/137584940
out | _=/usr/bin/env

000:0 $ mkdir -p src/github.com/nzoschke/run
000:0 $ cd src/github.com/nzoschke/run
000:0 $ pwd
out | /tmp/137584940/src/github.com/nzoschke/run

000:0 $ run -s Cloning git clone https://github.com/nzoschke/run.git --branch bios --single-branch .
err | STAT: Cloning
err | EXEC: "git clone https://github.com/nzoschke/run.git --branch bios --single-branch ."
err |     Cloning into '.'...
err | 
err | EXIT: 0
err | TIME: 2.0s

002:0 $ git branch --set-upstream-to=origin/bios bios
out | Branch 'bios' set up to track remote branch 'bios' from 'origin'.

002:0 $ git reset --hard 3591df72f177a66cb80a8853fd9c910a950bf0eb
out | HEAD is now at 3591df7 document exported structs

err | ++ go list ./...
002:0 $ PKGS=github.com/nzoschke/run
002:0 $ run -s Linting golint -set_exit_status github.com/nzoschke/run
err | STAT: Linting
err | EXEC: "golint -set_exit_status github.com/nzoschke/run"
err | 
err | EXIT: 0
err | TIME: 0.0s

002:0 $ run -s Vetting go vet -x github.com/nzoschke/run
out |     /var/task/usr/local/go/pkg/tool/linux_amd64/vet main.go run_test.go
err | STAT: Vetting
err | EXEC: "go vet -x github.com/nzoschke/run"
err | 
err | EXIT: 0
err | TIME: 0.1s

002:2 $ run -s Building go build -v github.com/nzoschke/run
err | STAT: Building
err | EXEC: "go build -v github.com/nzoschke/run"
err |     main.go:13:2: cannot find package "github.com/kballard/go-shellquote" in any of:
err |     	/var/task/usr/local/go/src/github.com/kballard/go-shellquote (from $GOROOT)
err |     	/tmp/137584940/src/github.com/kballard/go-shellquote (from $GOPATH)
err | 
err | EXIT: 1
err | TIME: 0.0s
err | STAT: Building failed

nzoschke added some commits Jan 4, 2018

@bios

This comment has been minimized.

bios bot commented on 71903ea Jan 4, 2018

Succeeded in 2.0 seconds. 🆗

Statuses

+ Cloning
+ Linting
+ Vetting
+ Building
+ Testing

Logs

...
out |     PASS
out |     ok  	github.com/nzoschke/run	0.012s
err | 
err | EXIT: 0
err | TIME: 1.2s
show all
000:0 $ env
000:0 $ grep -v PASS=
out | USER=x-access-token
out | PATH=/usr/local/bin:/usr/bin/:/bin:/var/task/usr/bin:/var/task/usr/libexec/git-core:/var/task/usr/local/go/bin:/tmp/009001627/bin
out | OWNER=nzoschke
out | PWD=/tmp/009001627
out | PKG=github.com/nzoschke/run
out | URL=https://github.com/nzoschke/run.git
out | SHLVL=1
out | HOME=/tmp/009001627
out | GOROOT=/var/task/usr/local/go
out | REF=bios
out | SHA=71903ea0fe5bb362ecdacce530e53711cee2528b
out | TMP=/tmp/009001627
out | REPO=run
out | GOPATH=/tmp/009001627
out | _=/usr/bin/env

000:0 $ mkdir -p src/github.com/nzoschke/run
000:0 $ cd src/github.com/nzoschke/run
000:0 $ pwd
out | /tmp/009001627/src/github.com/nzoschke/run

000:0 $ run -s Cloning git clone https://github.com/nzoschke/run.git --branch bios --single-branch .
err | STAT: Cloning
err | EXEC: "git clone https://github.com/nzoschke/run.git --branch bios --single-branch ."
err |     Cloning into '.'...
err | 
err | EXIT: 0
err | TIME: 0.2s

000:2 $ git branch --set-upstream-to=origin/bios bios
out | Branch 'bios' set up to track remote branch 'bios' from 'origin'.

000:2 $ git reset --hard 71903ea0fe5bb362ecdacce530e53711cee2528b
out | HEAD is now at 71903ea vendor

err | ++ go list ./...
000:3 $ PKGS=github.com/nzoschke/run
000:3 $ run -s Linting golint -set_exit_status github.com/nzoschke/run
err | STAT: Linting
err | EXEC: "golint -set_exit_status github.com/nzoschke/run"
err | 
err | EXIT: 0
err | TIME: 0.0s

000:3 $ run -s Vetting go vet -x github.com/nzoschke/run
err | STAT: Vetting
err | EXEC: "go vet -x github.com/nzoschke/run"
out |     /var/task/usr/local/go/pkg/tool/linux_amd64/vet main.go run_test.go
err | 
err | EXIT: 0
err | TIME: 0.1s

000:4 $ run -s Building go build -v github.com/nzoschke/run
err | STAT: Building
err | EXEC: "go build -v github.com/nzoschke/run"
err |     github.com/nzoschke/run/vendor/github.com/kballard/go-shellquote
err |     github.com/nzoschke/run
err | 
err | EXIT: 0
err | TIME: 0.4s

000:8 $ run -s Testing go test -v github.com/nzoschke/run
err | STAT: Testing
err | EXEC: "go test -v github.com/nzoschke/run"
out |     === RUN   TestEcho
out |     --- PASS: TestEcho (0.01s)
out |     PASS
out |     ok  	github.com/nzoschke/run	0.012s
err | 
err | EXIT: 0
err | TIME: 1.2s

This comment has been minimized.

bios bot replied Jan 12, 2018

Failed in 0.3 seconds. 🈵

Statuses

- Cloning

Logs

...
err |     fatal: Remote branch bios not found in upstream origin
err | 
err | EXIT: 128
err | TIME: 0.3s
err | FAIL: Cloning
show all
000:0 $ grep -v PASS=
000:0 $ env
out | USER=x-access-token
out | PATH=/usr/local/bin:/usr/bin/:/bin:/var/task/usr/bin:/var/task/usr/libexec/git-core:/var/task/usr/local/go/bin:/tmp/489104922/bin
out | BREF=master
out | OWNER=nzoschke
out | PWD=/tmp/489104922
out | BSHA=1d8dfce4137d0a8e5a0b6260c2ac860d89a8c524
out | PKG=github.com/nzoschke/run
out | URL=https://github.com/nzoschke/run.git
out | SHLVL=1
out | HOME=/tmp/489104922
out | GOROOT=/var/task/usr/local/go
out | REF=bios
out | SHA=71903ea0fe5bb362ecdacce530e53711cee2528b
out | TMP=/tmp/489104922
out | REPO=run
out | GOPATH=/tmp/489104922
out | _=/usr/bin/env

000:0 $ mkdir -p src/github.com/nzoschke/run
000:0 $ cd src/github.com/nzoschke/run
000:0 $ pwd
out | /tmp/489104922/src/github.com/nzoschke/run

000:0 $ run -s Cloning git clone https://github.com/nzoschke/run.git --branch bios --single-branch .
err | STAT: Cloning
err | EXEC: "git clone https://github.com/nzoschke/run.git --branch bios --single-branch ."
err |     Cloning into '.'...
err |     warning: Could not find remote branch bios to clone.
err |     fatal: Remote branch bios not found in upstream origin
err | 
err | EXIT: 128
err | TIME: 0.3s
err | FAIL: Cloning

@nzoschke nzoschke changed the title from golang bios to Automate go tools with bios.sh Jan 4, 2018

@nzoschke nzoschke merged commit cfce341 into master Jan 5, 2018

1 check passed

BIOS Succeeded (Testing)
Details

@nzoschke nzoschke deleted the bios branch Jan 5, 2018

@nzoschke

This comment has been minimized.

Owner

nzoschke commented Jan 12, 2018

bios initialize

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment