Skip to content

Instantly share code, notes, and snippets.

@flenter
Created August 19, 2015 13:58
Show Gist options
  • Save flenter/b5203655a6db71e6ea3f to your computer and use it in GitHub Desktop.
Save flenter/b5203655a6db71e6ea3f to your computer and use it in GitHub Desktop.
box: google/golang
dev:
steps:
- script:
name: build libstatgrab
code: |
curl -o libstatgrab-0.91.tar.gz http://www.mirrorservice.org/pub/i-scream/libstatgrab/libstatgrab-0.91.tar.gz
tar zxf libstatgrab-0.91.tar.gz
cd libstatgrab-0.91
./configure --prefix=/usr
sudo make install
cd ..
rm -rf libstatgrab-0.91 libstatgrab-0.91.tar.gz
- internal/watch:
code: |
go build ./...
reload: true
# Build definition
build:
# The steps that will be executed on build
steps:
- script:
name: build libstatgrab
code: |
curl -o libstatgrab-0.91.tar.gz http://www.mirrorservice.org/pub/i-scream/libstatgrab/libstatgrab-0.91.tar.gz
tar zxf libstatgrab-0.91.tar.gz
cd libstatgrab-0.91
./configure --prefix=/usr
sudo make install
cd ..
rm -rf libstatgrab-0.91 libstatgrab-0.91.tar.gz
# golint step!
- wercker/golint
# Build the project
- script:
name: go build
code: |
go build ./...
# Test the project
- script:
name: go test
code: |
go get github.com/stretchr/testify/assert
go test -v ./...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment