From b55097e228e272a3cdb180a7659619db38a2a158 Mon Sep 17 00:00:00 2001 From: drr00t Date: Thu, 25 Aug 2016 15:11:18 -0300 Subject: [PATCH] ref #10 - appveyor support. --- .appveyor.yml | 34 ++++++++++++++++++++++++++++++++++ README.md | 6 +++--- build.bat | 4 ++-- 3 files changed, 39 insertions(+), 5 deletions(-) create mode 100644 .appveyor.yml diff --git a/.appveyor.yml b/.appveyor.yml new file mode 100644 index 0000000..0ed1c7f --- /dev/null +++ b/.appveyor.yml @@ -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 diff --git a/README.md b/README.md index 891ae8c..8c684d8 100644 --- a/README.md +++ b/README.md @@ -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)
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. diff --git a/build.bat b/build.bat index 9a7b692..3bb5460 100644 --- a/build.bat +++ b/build.bat @@ -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 \ No newline at end of file