Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup codecov #44

Merged
merged 9 commits into from
Jul 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 1 addition & 44 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,48 +9,5 @@ jobs:
script:
- dotnet restore
- dotnet build
- choco install opencover.portable
- choco install codecov
- OpenCover.Console.exe -register:user -target:"%xunit20%\xunit.console.x86.exe" -targetargs:".\UnitTests\bin\Debug\netcoreapp2.1\UnitTests.dll -noshadow" -filter:"+[Validator*]* -[UnitTests*]*" -output:".\Validator_Coverage.xml"
- codecov -f "Validator_Coverage.xml"

- language: objective-c
os: osx
rvm:
- 2.2 #see before_install for getting RVM stable.

env:
- TRAVIS_TAG="Deploy-main" PROJECT_NAME="BivalenceWorld" UNITY_PROJECT_PATH="BivalenceWorld" DEPLOY_UNITYPACKAGE="path set in deploy script"


cache:
directories:
- $UNITY_DOWNLOAD_CACHE


before_install:
- chmod a+x ./travis-build/*.sh

install:
- cat /etc/hosts
- ./travis-build/install-unity.sh

script:
- ./travis-build/build.sh
- ./travis-build/run-tests.sh

after_success:
- ./travis-build/export-unity-package.sh

before_deploy:
- DEPLOY_UNITYPACKAGE="$(ls -a release/*.zip | head -n 1)"

deploy:
provider: releases
api_key: $GITHUB_TOKEN
file: $DEPLOY_UNITYPACKAGE
skip_cleanup: true
overwrite: true
on:
tags: true
- dotnet test

6 changes: 0 additions & 6 deletions Makefile

This file was deleted.

5 changes: 5 additions & 0 deletions Validator/BivalenceWorld/BivalenceWorld.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DebugType>full</DebugType>
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Validator\Validator.csproj" />
</ItemGroup>
Expand Down
114 changes: 0 additions & 114 deletions Validator/UnitTests/Test_DiceGame/GameRuleSet.cs

This file was deleted.

58 changes: 0 additions & 58 deletions Validator/UnitTests/Test_DiceGame/GameWorld.cs

This file was deleted.

20 changes: 0 additions & 20 deletions Validator/UnitTests/Test_DiceGame/GameWorldFields.cs

This file was deleted.

27 changes: 0 additions & 27 deletions Validator/UnitTests/Test_DiceGame/NotEquals.cs

This file was deleted.

31 changes: 0 additions & 31 deletions Validator/UnitTests/Test_DiceGame/Test_DiceGame_Performance.cs

This file was deleted.

5 changes: 5 additions & 0 deletions Validator/UnitTests/UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
<IsPackable>false</IsPackable>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DebugType>full</DebugType>
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
<PackageReference Include="MSTest.TestAdapter" Version="1.3.2" />
Expand Down
6 changes: 6 additions & 0 deletions Validator/Validator/Validator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DebugType>full</DebugType>
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="OpenCover" Version="4.7.922" />
<PackageReference Include="Pegasus" Version="4.1.0" />
</ItemGroup>

Expand Down
37 changes: 0 additions & 37 deletions travis-build/build.sh

This file was deleted.

Loading