-
Notifications
You must be signed in to change notification settings - Fork 37
/
.appveyor.yml
47 lines (39 loc) · 1.29 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
version: '{build}'
platform: x64
configuration: Release
os: Visual Studio 2015
clone_depth: 50
clone_folder: c:\gopath\src\github.com\cretz\tor-static
environment:
GOPATH: c:\gopath
install:
- set PATH=C:\msys64\usr\bin;%PATH%
- set MSYSTEM=MINGW64
- bash -lc "pacman -Sy --noconfirm --needed base-devel mingw-w64-i686-toolchain mingw-w64-x86_64-toolchain git mingw-w64-i686-cmake mingw-w64-x86_64-cmake"
before_build:
- set MSYSTEM=MINGW64
- cd c:\gopath\src\github.com\cretz\tor-static
- git submodule update --init --recursive
build_script:
- set MSYSTEM=MINGW64
- bash -lc "export PATH=/mingw64/bin:$PATH && cd /c/gopath/src/github.com/cretz/tor-static && /c/go/bin/go run build.go -verbose build-all"
test_script:
- set PATH=C:\msys64\mingw64\bin;%PATH%
- go get -u github.com/cretz/bine/tor
- cd c:\gopath\src\github.com\cretz\tor-static
- go test -v build_test.go -tor.verbose
after_build:
- go run build.go package-libs
- cp libs.zip tor-static-windows-amd64.zip
artifacts:
- path: tor-static-windows-amd64.zip
deploy:
description: 'New tor-static release'
provider: GitHub
auth_token:
secure: 6FeJJsz3att0ChUBBFt+Llk8vr32vvZVDbkicQfpRn0mJrome0mIPbkLbH2J5ejC
artifact: tor-static-windows-amd64.zip
draft: true
on:
branch: master
APPVEYOR_REPO_TAG: true