Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
989ef308
Commit
989ef308
authored
Mar 31, 2016
by
Matt Butcher
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #536 from technosophos/fix/circleci-go16
fix(circleci): add Go 1.6
parents
68e1d820
bb0e2711
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletion
+23
-1
circle.yml
circle.yml
+8
-1
pkg_test.go
pkg/pkg_test.go
+15
-0
No files found.
circle.yml
View file @
989ef308
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
...
...
pkg/pkg_test.go
0 → 100644
View file @
989ef308
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+)"
)
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment