Skip to content

Commit

Permalink
(build) configure coveralls.io
Browse files Browse the repository at this point in the history
  • Loading branch information
ferventcoder committed Feb 7, 2015
1 parent b5b3c24 commit 83000dd
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .build.custom/analyzers/opencover.cover.post.step
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<project name="CUSTOM POST OPENCOVER.COVER" default="go">
<!-- Project UppercuT - http://projectuppercut.org -->
<property name="build.config.settings" value="__NONE__" overwrite="false" />
<include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" />
<property name="path.separator" value="${string::trim(path::combine(' ', ' '))}" />
<property name="dirs.current" value="${directory::get-current-directory()}" />
<property name="dirs.current.file" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
<property name="folder.build_scripts" value="build" overwrite="false" />
<include buildfile="${dirs.current}${path.separator}${folder.build_scripts}${path.separator}default.build.settings" />
<property name="build.step.name" value="${project::get-name()}" />
<property name="build.step.path" value="${project::get-buildfile-path()}" />
<!-- build step customizations below this -->

<target name="go" depends="run_normal_tasks" />

<target name="run_normal_tasks">
<echo level="Warning" message="Uploading Code Coverage Results to Coveralls if ENV['COVERALS_REPO_TOKEN'] is set." />
<call target="run_coveralls" if="${environment::variable-exists('COVERALS_REPO_TOKEN')}" />
</target>

<target name="run_coveralls" if="${environment::variable-exists('COVERALS_REPO_TOKEN')}">
<echo level="Warning" message="Running ${app.coveralls} --opencover '${dirs.codecoverage_results}${path.separator}${file.codecoverage_results}'" />
<exec program="${app.coveralls}"
workingdir="${dirs.codecoverage_results}"
failonerror="false"
if="${platform::is-windows()}"
>
<arg value='--opencover' />
<arg value='"${dirs.codecoverage_results}${path.separator}${file.codecoverage_results}"' />
</exec>
<exec program="mono"
workingdir="${dirs.codecoverage_results}"
failonerror="false"
if="${platform::is-unix()}"
>
<arg value='"${app.coveralls}"' />
<arg value='--opencover' />
<arg value='"${dirs.codecoverage_results}${path.separator}${file.codecoverage_results}"' />
</exec>
</target>
</project>
1 change: 1 addition & 0 deletions .uppercut
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
<property name="app.test.console" value="${dirs.current}${path.separator}src${path.separator}packages${path.separator}NUnit.Runners.2.6.4${path.separator}tools${path.separator}nunit-console.exe" overwrite="false" />
<property name="app.test.console.x86" value="${dirs.current}${path.separator}src${path.separator}packages${path.separator}NUnit.Runners.2.6.4${path.separator}tools${path.separator}nunit-console-x86.exe" overwrite="false" />
<property name="codecoverage.filters" value="+[${project.name}*]* -[${project.name}*test*]* -[${project.name}]*adapters.* -[${project.name}]*infrastructure.app.configuration.*Setting* -[${project.name}]*app.configuration.*Configuration -[${project.name}]*app.domain.* -[${project.name}]*app.messages.* -[${project.name}]*.registration.* -[${project.name}]*app.templates.* -[${project.name}]*commandline.Option* -[${project.name}]*licensing.* -[${project.name}]*infrastructure.results.*" />
<property name="app.coveralls" value="${dirs.current}${path.separator}src${path.separator}packages${path.separator}coveralls.io.1.1.86${path.separator}tools${path.separator}coveralls.net.exe" overwrite="false" />
<property name="app.strongname" value="C:${path.separator}Program Files${path.separator}Microsoft SDKs${path.separator}Windows${path.separator}v7.0A${path.separator}Bin${path.separator}sn.exe" />
<property name="app.strongname" value="C:${path.separator}Program Files (x86)${path.separator}Microsoft SDKs${path.separator}Windows${path.separator}v7.0A${path.separator}Bin${path.separator}sn.exe" if="${not file::exists(app.strongname)}" />

Expand Down
3 changes: 3 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ init:
- git config --global user.name "Chocolatey yo"
nuget:
disable_publish_on_pr: true
environment:
COVERALLS_REPO_TOKEN:
secure: GWDFHkyZwDvbtYzPCHt29njjcm1blAwuTcbT0IEyJZoRSC/soUAa8dwXIlA6l/Fj
build_script:
- build.bat -v
test:
Expand Down

0 comments on commit 83000dd

Please sign in to comment.