Update build scripts

This commit is contained in:
Michael Kuzmin 2017-07-30 03:56:10 +03:00
parent deec897718
commit 566e2131d1
4 changed files with 9 additions and 7 deletions

View File

@ -1,9 +1,12 @@
#!/bin/sh -eux
#!/bin/sh
set -eux
glide install -v
export CGO_ENABLED=0
export GOARCH=amd64
mkdir -p bin
rm bin/*
GOOS=darwin go build -o bin/packer-builder-vsphere.macos
GOOS=linux go build -o bin/packer-builder-vsphere.linux

View File

@ -1,5 +1,5 @@
build:
build: docker/
image: jetbrainsinfra/golang:1.8.3
volumes:
- .:/go/src/github.com/jetbrains-infra/packer-builder-vsphere
working_dir: /go/src/github.com/jetbrains-infra/packer-builder-vsphere

View File

@ -1,5 +0,0 @@
FROM golang:1.8.3
ARG GLIDE_VERSION=0.12.3
RUN wget -nv https://github.com/Masterminds/glide/releases/download/v$GLIDE_VERSION/glide-v$GLIDE_VERSION-linux-amd64.tar.gz -O- | \
tar xzf - -C /usr/local/bin/ --strip-components=1 linux-amd64/glide

4
test.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
export PACKER_ACC=1
go test -v