Skip to content

Commit 74f4f75

Browse files
committed
AppVeyor build
Signed-off-by: Jean-Laurent de Morlhon <[email protected]>
1 parent 0e7779e commit 74f4f75

File tree

2 files changed

+16
-56
lines changed

2 files changed

+16
-56
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ test:
4040
vet: vet_$(TRAVIS_OS_NAME)
4141
go vet ./credentials
4242

43+
vet_win:
44+
go vet ./wincred
45+
4346
vet_osx:
4447
go vet ./osxkeychain
4548

appveyor.yml

Lines changed: 13 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,24 @@
1-
version: "{build}"
2-
3-
# Source Config
4-
clone_folder: c:\gopath\src\github.com\docker\docker-credential-helpers
5-
6-
# Build host
7-
1+
image: Visual Studio 2015
82
environment:
9-
global:
103
GOPATH: c:\gopath
11-
CGO_ENABLED: 1
12-
GOVERSION: 1.6
13-
matrix:
14-
- platform: x86
15-
GOARCH: 386
16-
MSYS2_BITS: 32
17-
- platform: x64
18-
GOARCH: amd64
19-
MSYS2_BITS: 64
204

21-
init:
22-
- git config --global core.autocrlf input
23-
24-
# Build
5+
clone_folder: c:\gopath\src\github.com\docker\docker-credential-helpers
6+
clone_depth: 10
257

26-
install:
27-
# Install Go 1.6.
28-
- rmdir c:\go /s /q
29-
- appveyor DownloadFile https://storage.googleapis.com/golang/go%GOVERSION%.windows-%GOARCH%.msi
30-
- msiexec /i go%GOVERSION%.windows-%GOARCH%.msi /q
31-
- set Path=c:\msys64\mingw%MSYS2_BITS%\bin;c:\go\bin;%Path%
32-
- go version
33-
- go env
8+
before_build:
9+
- set PATH=%PATH%;C:\MinGW\bin;
10+
- set PATH=%PATH%;C:\go18\bin;
11+
- set GOROOT=C:\go18
3412

35-
build: false
13+
build_script:
14+
- mingw32-make vet_win wincred
3615

3716
test_script:
38-
- go vet ./wincred
39-
- go test -v github.com/docker/docker-credential-helpers/wincred
17+
- mingw32-make test
4018

41-
# Equivalent to `before_deploy` phase
42-
after_test:
43-
# build binary
44-
- mkdir bin
45-
- go build -o bin/docker-credential-wincred wincred/cmd/main_windows.go
46-
# build zipfile, will look like docker-credential-wincred-v0.1.0-amd64.zip in the root directory
47-
- cd bin && 7z a ../docker-credential-wincred-%APPVEYOR_REPO_TAG_NAME%-%GOARCH%.zip docker-credential-wincred
19+
deploy: off
4820

49-
# IMPORTANT All the artifacts need to be listed here, or they won't be uploaded to GitHub
5021
artifacts:
51-
- path: docker-credential-wincred-$(APPVEYOR_REPO_TAG_NAME)-$(GOARCH).zip
52-
name: docker-credential-wincred-$(APPVEYOR_REPO_TAG_NAME)-$(GOARCH).zip
53-
54-
deploy:
55-
# All the zipped artifacts will be deployed
56-
description: "Visit the [Changelog](https://github.com/docker/docker-credential-helpers/blob/master/CHANGELOG.md) for a detailed description of what's new in this release."
57-
artifact: /.*\.zip/
58-
auth_token:
59-
secure: ixWmTXZs8aV5+9s6vPXziIcdMMLd+lBVINJ0K/Sy++2wllpRxUec4/TPVKUGLqvL
60-
provider: GitHub
61-
# deploy when a new tag is pushed
62-
on:
63-
appveyor_repo_tag: true
22+
- path: bin/docker-credential-wincred.exe
6423

65-
branches:
66-
only:
67-
- master
24+
configuration: Release

0 commit comments

Comments
 (0)