Skip to content

Commit

Permalink
Merge pull request #21 from 223n/develop
Browse files Browse the repository at this point in the history
Add AppVeyor
  • Loading branch information
223n authored Oct 13, 2018
2 parents d32ff24 + 4671b65 commit 2a8ac94
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
36 changes: 36 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
clone_folder: c:\certcheck
environment:
GOPATH: c:\gopath
matrix:
- GOOS: windows
GOARCH: amd64
FILENAME: certcheck_windows_amd64.exe
- GOOS: windows
GOARCH: 386
FILENAME: certcheck_windows_386.exe
- GOOS: linux
GOARCH: amd64
FILENAME: certcheck_linux_amd64
- GOOS: linux
GOARCH: 386
FILENAME: certcheck_linux_386
install:
- go version
- go env
- set PATH=%PATH%;%GOPATH%\bin
- go get gopkg.in/yaml.v2
- ps: |
$(Get-Content -Encoding UTF8 "c:\certcheck\certcheck.go").Replace("{version}","1.2.3").Replace("{revision}","${env:APPVEYOR_BUILD_VERSION}") | Out-File -Encoding UTF8 "c:\certcheck\certcheck.go";
before_build:
- set GOOS=%_GOOS%
- set GOARCH=%_GOARCH%
- set FILENAME=%_FILENAME%
build_script:
- cd c:\certcheck
- go get gopkg.in/yaml.v2
- go build
- ps: |
if (Test-Path .\certcheck.exe -PathType Any) { Rename-Item .\certcheck.exe -newName ${env:FILENAME} }
if (Test-Path .\certcheck -PathType Any) { Rename-Item .\certcheck -newName ${env:FILENAME} }
artifacts:
- path: '.\certcheck_*'
4 changes: 2 additions & 2 deletions certcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ import (

var (
// Version - certcheck version
Version = "1.2.2"
Version = "{version}"
// Revision - revision version
Revision = "6"
Revision = "{revision}"
)

// Data - Setting File Struct
Expand Down

0 comments on commit 2a8ac94

Please sign in to comment.