Jenkinsfile: Install ui2walk tool.

pull/10/head
Icedream 2017-04-21 02:29:44 +02:00
parent 61a2f9ce74
commit a2895609ed
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
1 changed files with 11 additions and 1 deletions

12
Jenkinsfile vendored
View File

@ -1,3 +1,9 @@
// icecon_linux_amd64
// icecon_linux_arm
// icecon_linux_i386
// icecon_windows_amd64.exe
// icecon_windows_i386.exe
def binext(os) { def binext(os) {
switch(os) { switch(os) {
case "windows": case "windows":
@ -79,7 +85,11 @@ def build(os, arch) {
docker.image("dockcross/${os}-${arch}").inside { docker.image("dockcross/${os}-${arch}").inside {
withGoEnv(os, arch) { withGoEnv(os, arch) {
def binfilename = "icecon_${env.GOOS}_${env.GOARCH}${binext os}" def binfilename = "icecon_${env.GOOS}_${env.GOARCH}${binext os}"
sh "GOOS= GOARCH= go get -v github.com/josephspurrier/goversioninfo/cmd/goversioninfo" sh """
GOOS= GOARCH= go get -v \
github.com/josephspurrier/goversioninfo/cmd/goversioninfo \
github.com/icedream/ui2walk \
"""
sh "go generate -v ./..." sh "go generate -v ./..."
sh "go get -v -d ./..." sh "go get -v -d ./..."
sh "go build -o ${binfilename}" sh "go build -o ${binfilename}"