Skip to content

Commit

Permalink
ref #10 - appveyor support.
Browse files Browse the repository at this point in the history
  • Loading branch information
drr00t committed Aug 25, 2016
1 parent 056291d commit b55097e
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 5 deletions.
34 changes: 34 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@


version: 0.0.{build}
configuration: Release

environment:
COVERALLS_REPO_TOKEN:
secure: DLRq6W4u58gyHSt4dATCA1wBqeyQ5eW53UJ3gs+dLgJHhMzCEvpeeB8Bo99ow8hF

pull_requests:
do_not_increment_build_number: true

skip_tags: true

build_script:
- cmd: >-
@echo off
cls
".nuget\NuGet.exe" "Install" "FAKE" "-OutputDirectory" "tools" "-ExcludeVersion" "-Version" "4.38.1"
".nuget\NuGet.exe" "Install" "NUnit.Runners" "-OutputDirectory" "tools" "-Version" "3.4.1"
".nuget\NuGet.exe" "Install" "NUnit" "-OutputDirectory" "src/packages" "-Version" "3.4.1"
".nuget\NuGet.exe" "Install" "OpenCover" "-OutputDirectory" "tools" "-Version" "4.6.519"
".nuget\NuGet.exe" "Install" "coveralls.net" "-OutputDirectory" "tools"
"tools\FAKE\tools\Fake.exe" build.fsx
test_script:
- ps: >-
./tools/OpenCover.4.6.166/tools/OpenCover.Console.exe -register:user -target:./tools/NUnit.ConsoleRunner.3.4.1/tools/nunit3-console.exe "-targetargs:""build\TweetNaCl.Tests.dll"" /noshadow" -filter:"+[TweetNaCl*]*" -output:opencoverCoverage.xml
$coveralls = (Resolve-Path "src/packages/coveralls.net.*/tools/csmacnz.coveralls.exe").ToString()
$env:APPVEYOR_BUILD_NUMBER
& $coveralls --opencover -i opencoverCoverage.xml --repoToken $env:COVERALLS_REPO_TOKEN --useRelativePaths --commitId $env:APPVEYOR_REPO_COMMIT --commitBranch $env:APPVEYOR_REPO_BRANCH --commitAuthor $env:APPVEYOR_REPO_COMMIT_AUTHOR --commitEmail $env:APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL --commitMessage $env:APPVEYOR_REPO_COMMIT_MESSAGE --jobId $env:APPVEYOR_BUILD_NUMBER --serviceName appveyor
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#TweetNaCl-cs

|Branch|Appveyor|Travis|
|------|:--------:|:------:|
|master|[![Build status](https://ci.appveyor.com/api/projects/status/a3463mlqmh310och/branch/master?svg=true)](https://ci.appveyor.com/project/drr00t/tweetnacl-cs/branch/master)|[![Build Status](https://travis-ci.org/drr00t/tweetnacl-cs.svg)](https://travis-ci.org/drr00t/tweetnacl-cs)|
|Branch|Build|Code Cover|
|:------|--------:|--------:|
|master|.Net [![Build status](https://ci.appveyor.com/api/projects/status/a3463mlqmh310och/branch/master?svg=true)](https://ci.appveyor.com/project/drr00t/tweetnacl-cs/branch/master)<br>Mono [![Build Status](https://travis-ci.org/drr00t/tweetnacl-cs.svg)](https://travis-ci.org/drr00t/tweetnacl-cs)| Coveralls [![Coverage Status](https://coveralls.io/repos/github/drr00t/tweetnacl-cs/badge.svg?branch=master)](https://coveralls.io/github/drr00t/tweetnacl-cs?branch=master)|

## About Project
A C# port of original [TweetNaCl](http://tweetnacl.cr.yp.to/index.html) C language implementation version 20140427.
Expand Down
4 changes: 2 additions & 2 deletions build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ cls
".nuget\NuGet.exe" "Install" "FAKE" "-OutputDirectory" "tools" "-ExcludeVersion" "-Version" "4.38.1"
".nuget\NuGet.exe" "Install" "NUnit.Runners" "-OutputDirectory" "tools" "-Version" "3.4.1"
".nuget\NuGet.exe" "Install" "NUnit" "-OutputDirectory" "src/packages" "-Version" "3.4.1"
".nuget\NuGet.exe" "Install" "OpenCover" "-OutputDirectory" "tools" "-Version" "4.6.519"
".nuget\NuGet.exe" "Install" "coveralls.net" "-OutputDirectory" "tools"
"tools\FAKE\tools\Fake.exe" build.fsx

pause

0 comments on commit b55097e

Please sign in to comment.