Commit 989ef308 authored by Matt Butcher's avatar Matt Butcher

Merge pull request #536 from technosophos/fix/circleci-go16

fix(circleci): add Go 1.6
parents 68e1d820 bb0e2711
machine: machine:
environment: environment:
GLIDE_VERSION: "0.9.1" GLIDE_VERSION: "0.10.1"
GO15VENDOREXPERIMENT: 1 GO15VENDOREXPERIMENT: 1
GOPATH: /usr/local/go_workspace GOPATH: /usr/local/go_workspace
HOME: /home/ubuntu HOME: /home/ubuntu
IMPORT_PATH: "github.com/kubernetes/helm" IMPORT_PATH: "github.com/kubernetes/helm"
PATH: $HOME/go/bin:$PATH
GOROOT: $HOME/go
dependencies: dependencies:
override: override:
- mkdir -p $HOME/go
- wget "https://storage.googleapis.com/golang/go1.6.linux-amd64.tar.gz"
- tar -C $HOME -xzf go1.6.linux-amd64.tar.gz
- go version
- go env
- sudo chown -R $(whoami):staff /usr/local - sudo chown -R $(whoami):staff /usr/local
- cd $GOPATH - cd $GOPATH
- mkdir -p $GOPATH/src/$IMPORT_PATH - mkdir -p $GOPATH/src/$IMPORT_PATH
......
package pkg
import (
"testing"
"text/template"
)
// TestGoFeatures is a canary test to make sure that features that are invisible at API level are supported.
func TestGoFeatures(t *testing.T) {
// Test that template with Go 1.6 syntax can compile.
_, err := template.New("test").Parse(`{{- printf "hello"}}`)
if err != nil {
t.Fatalf("You must use a version of Go that supports {{- template syntax. (1.6+)")
}
}
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