Skip to content

Commit

Permalink
Use Azure Pipelines instead of Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlia committed May 14, 2019
1 parent d7b61c9 commit 778081f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 66 deletions.
32 changes: 0 additions & 32 deletions .travis.dotCover.xml

This file was deleted.

30 changes: 0 additions & 30 deletions .travis.yml
Expand Up @@ -47,22 +47,6 @@ install:
# .NET Core SDK 2.2+ # .NET Core SDK 2.2+
choco install dotnetcore-sdk choco install dotnetcore-sdk
dotnet --info dotnet --info
# Tools for test coverage (dotcover-clt, codecov-exe)
if [[ "$CODECOV_TOKEN" != "" ]]; then
mkdir /tmp/dotcover
pushd /tmp
wget \
https://download.jetbrains.com/resharper/ReSharperUltimate.2018.3.4/JetBrains.dotCover.CommandLineTools.2018.3.4.zip
pushd dotcover
7z x ../JetBrains.dotCover.CommandLineTools.*.zip
popd
mv dotcover/* /c/Windows/
rm JetBrains.dotCover.CommandLineTools.*.zip
popd
choco install codecov
fi
fi fi
set +ev set +ev
Expand All @@ -89,20 +73,6 @@ script:
# seems not terminated or to take too long time. We should diagnose # seems not terminated or to take too long time. We should diagnose
# this and make the CI to run these tests too. # this and make the CI to run these tests too.


# Run unit tests with coverage report
- |
if [[ "$TRAVIS_OS_NAME" = "windows" && "$CODECOV_TOKEN" != "" ]]; then
dotnet build -c Debug
dotnet build-server shutdown
solution_abspath="$(cygpath -w "$(pwd)"/Libplanet.sln)"
dotCover_config="$(cat .travis.dotCover.xml)"
echo "${dotCover_config//\$SOLUTION/$solution_abspath}" \
> dotCover.xml
travis_wait 60 dotCover.exe cover dotCover.xml /p:UseSharedCompilation=false
# Upload report to Codecov.io
codecov.exe -f Libplanet.cov.xml -t "$CODECOV_TOKEN"
fi
# Turn off "set -e" option # Turn off "set -e" option
- set +e - set +e


Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Expand Up @@ -67,7 +67,7 @@ builds the entire *Libplanet* solution:
dotnet build dotnet build




Tests [![Build Status](https://travis-ci.com/planetarium/libplanet.svg?branch=master)][Travis CI] [![Codecov](https://codecov.io/gh/planetarium/libplanet/branch/master/graph/badge.svg)][2] Tests [![Build Status](https://dev.azure.com/planetarium/libplanet/_apis/build/status/planetarium.libplanet?branchName=master)][Azure Pipelines] [![Codecov](https://codecov.io/gh/planetarium/libplanet/branch/master/graph/badge.svg)][2]
----- -----


We write as complete tests as possible to the corresponding implementation code. We write as complete tests as possible to the corresponding implementation code.
Expand All @@ -88,7 +88,7 @@ To build and run unit tests at a time execute the below command:


dotnet test dotnet test


[Travis CI]: https://travis-ci.com/planetarium/libplanet [Azure Pipelines]: https://dev.azure.com/planetarium/libplanet/_build/latest?definitionId=1&branchName=master
[2]: https://codecov.io/gh/planetarium/libplanet [2]: https://codecov.io/gh/planetarium/libplanet
[Xunit]: https://xunit.github.io/ [Xunit]: https://xunit.github.io/


Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -2,7 +2,7 @@ Libplanet
========= =========


[![Discord](https://img.shields.io/discord/539405872346955788.svg?color=7289da&logo=discord&logoColor=white)][Discord] [![Discord](https://img.shields.io/discord/539405872346955788.svg?color=7289da&logo=discord&logoColor=white)][Discord]
[![Build Status](https://travis-ci.com/planetarium/libplanet.svg?branch=master)][Travis CI] [![Build Status](https://dev.azure.com/planetarium/libplanet/_apis/build/status/planetarium.libplanet?branchName=master)][Azure Pipelines]
[![Codecov](https://codecov.io/gh/planetarium/libplanet/branch/master/graph/badge.svg)][Codecov] [![Codecov](https://codecov.io/gh/planetarium/libplanet/branch/master/graph/badge.svg)][Codecov]
[![NuGet](https://img.shields.io/nuget/v/Libplanet.svg?style=flat)][NuGet] [![NuGet](https://img.shields.io/nuget/v/Libplanet.svg?style=flat)][NuGet]
[![NuGet (prerelease)](https://img.shields.io/nuget/vpre/Libplanet.svg?style=flat)][NuGet] [![NuGet (prerelease)](https://img.shields.io/nuget/vpre/Libplanet.svg?style=flat)][NuGet]
Expand All @@ -14,7 +14,7 @@ server. Under the hood, it incorporates many features (e.g.,
[digital signature], [BFT] consensus, data replication) of a [blockchain]. [digital signature], [BFT] consensus, data replication) of a [blockchain].


[Discord]: https://discord.gg/ue9fgc3 [Discord]: https://discord.gg/ue9fgc3
[Travis CI]: https://travis-ci.com/planetarium/libplanet [Azure Pipelines]: https://dev.azure.com/planetarium/libplanet/_build/latest?definitionId=1&branchName=master
[Codecov]: https://codecov.io/gh/planetarium/libplanet [Codecov]: https://codecov.io/gh/planetarium/libplanet
[NuGet]: https://www.nuget.org/packages/Libplanet/ [NuGet]: https://www.nuget.org/packages/Libplanet/
[digital signature]: https://en.wikipedia.org/wiki/Digital_signature [digital signature]: https://en.wikipedia.org/wiki/Digital_signature
Expand Down

0 comments on commit 778081f

Please sign in to comment.