Skip to content

Commit

Permalink
golang bios
Browse files Browse the repository at this point in the history
  • Loading branch information
nzoschke committed Jan 4, 2018
1 parent 1d8dfce commit cd3f9da
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions bios.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
set -ex -o pipefail
env | grep -v PASS=

mkdir -p src/$PKG && cd src/$PKG && pwd

run -s "Cloning" git clone $URL --branch $REF --single-branch .
git branch --set-upstream-to=origin/$REF $REF
git reset --hard $SHA

PKGS=$(go list ./...)
run -s "Linting" golint -set_exit_status $PKGS
run -s "Vetting" go vet -x $PKGS
run -s "Building" go build -v $PKGS
run -s "Testing" go test -v $PKGS

1 comment on commit cd3f9da

@bios
Copy link

@bios bios bot commented on cd3f9da Jan 4, 2018

Choose a reason for hiding this comment

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

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

Please sign in to comment.