Skip to content

Commit

Permalink
Add appveyor config file
Browse files Browse the repository at this point in the history
  • Loading branch information
csstaub committed Jan 10, 2018
1 parent a292fee commit fc40a1f
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
version: '{build}-{branch}'

os: 'Visual Studio 2015'

environment:
matrix:
- ARCH: x64
MSYS2_ARCH: x86_64
MSYS2_DIR: msys64
MSYSTEM: MINGW64
GOPATH: c:\gopath
GOARCH: amd64
CGO_ENABLED: 1
- ARCH: x86
MSYS2_ARCH: i686
MSYS2_DIR: msys64
MSYSTEM: MINGW32
GOPATH: c:\gopath
GOARCH: 386
CGO_ENABLED: 1

branches:
only:
- master

clone_folder: C:\gopath\src\github.com\square\ghostunnel

before_build:
# Go paths
- set PATH=C:\go19\bin;C:\%GOPATH%\bin;%PATH%
# MSYS paths
- set PATH=C:\%MSYS2_DIR%\%MSYSTEM%\bin;C:\%MSYS2_DIR%\usr\bin;%PATH%
# Install build deps
- bash -lc "for n in `seq 1 3`; do pacman --noconfirm -Syyuu && break || sleep 15; done"
- bash -lc "for n in `seq 1 3`; do pacman --noconfirm -S mingw-w64-%MSYS2_ARCH%-libtool && break || sleep 15; done"

build_script:
- go build -o ghostunnel.exe -i .

0 comments on commit fc40a1f

Please sign in to comment.