Skip to content

Commit

Permalink
Also test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tfausak committed May 7, 2016
1 parent d528ac2 commit c48bf7b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![Version badge][]][version]
[![Build badge][]][build]
[![Windows build badge][]][windows build]

GitHub Release is a command-line utility for uploading files to GitHub
releases.
Expand All @@ -23,3 +24,5 @@ Inspired by <https://github.com/aktau/github-release>.
[version]: https://www.stackage.org/package/github-release
[Build badge]: https://travis-ci.org/tfausak/github-release.svg
[build]: https://travis-ci.org/tfausak/github-release
[Windows build badge]: https://ci.appveyor.com/api/projects/status/github/tfausak/github-release?svg=true
[windows build]: https://ci.appveyor.com/project/TaylorFausak/github-release
24 changes: 24 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
build_script:
- stack setup
- stack --no-terminal build --only-dependencies
cache:
- c:\s
environment:
GITHUB_TOKEN:
secure: TODO
STACK_ROOT: c:\s
install:
- curl --output stack.zip --location --insecure http://www.stackage.org/stack/windows-x86_64
- 7z x stack.zip stack.exe
on_success:
- ps: |
if ($env:APPVEYOR_REPO_TAG_NAME)
{
7z a github-release.zip "$(./stack.exe path --local-install-root)/bin/github-release.exe"
stack exec -- github-release upload --token $env:GITHUB_TOKEN --owner tfausak --repo github-release --tag $env:APPVEYOR_REPO_TAG_NAME --file github-release.zip --name github-release-$env:APPVEYOR_REPO_TAG_NAME-windows.zip
}
platform: x64
test_script:
- stack.exe --no-terminal build --pedantic
- stack.exe sdist
version: '{build}'

0 comments on commit c48bf7b

Please sign in to comment.