Unverified Commit 2f48d758 authored by Jeremy Morrell's avatar Jeremy Morrell Committed by GitHub

Stub out go binary build and tests (#649)

* Stub out go binary build and tests
parent bd06b3af
language: bash language: go
go:
- "1.12"
sudo: required sudo: required
services: services:
- docker - docker
...@@ -9,6 +11,7 @@ env: ...@@ -9,6 +11,7 @@ env:
- TEST=cedar-14 STACK=cedar-14 - TEST=cedar-14 STACK=cedar-14
- TEST=hatchet - TEST=hatchet
- TEST=unit - TEST=unit
- TEST=test-binary GO111MODULE=on
install: install:
- if [[ -n $STACK ]]; then - if [[ -n $STACK ]]; then
docker pull "heroku/${STACK/-/:}"; docker pull "heroku/${STACK/-/:}";
......
package main
import "fmt"
func main() {
fmt.Println("hello world")
}
package main
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestParseObject(t *testing.T) {
assert.Equal(t, 0, 0)
}
module github.com/heroku/heroku-buildpack-nodejs
go 1.12
require github.com/stretchr/testify v1.3.0
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
test: heroku-18 heroku-16 cedar-14 test: heroku-18 heroku-16 cedar-14
build:
@GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -v -o ./vendor/resolve-version-darwin ./cmd/resolve-version
@GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -v -o ./vendor/resolve-version-linux ./cmd/resolve-version
test-binary:
go test -v ./cmd/...
shellcheck: shellcheck:
@shellcheck -x bin/compile bin/detect bin/release bin/test bin/test-compile @shellcheck -x bin/compile bin/detect bin/release bin/test bin/test-compile
@shellcheck -x lib/** @shellcheck -x lib/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment