From f3e0fbb7ba694976161b5019018c8113516b70cd Mon Sep 17 00:00:00 2001 From: Shargon Date: Tue, 27 Aug 2019 00:35:51 +0200 Subject: [PATCH] Fix check format in both paths --- .travis.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index ab921f4b..42421057 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,19 +11,20 @@ mono: none dotnet: 2.2.300 before_install: - - cd tests/neo-vm.Tests - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ulimit -n 2048; fi install: - dotnet tool install -g dotnet-format --version 4.0.40103 --add-source https://dotnet.myget.org/F/format/api/v3/index.json - export PATH="$PATH:$HOME/.dotnet/tools" - dotnet-format --version before_script: - - echo "Checking format..." - - dotnet format --check --dry-run -w . -v diagnostic # check C# formatting for neo.sln + - echo "Checking format..." + - dotnet format --check --dry-run -w src/neo-vm -v diagnostic # check C# formatting for neo.sln + - dotnet format --check --dry-run -w tests/neo-vm.Tests -v diagnostic # check C# formatting for neo.sln + - cd tests/neo-vm.Tests script: - - dotnet restore - - find * -name *.csproj | xargs -I % dotnet add % package coverlet.msbuild - - dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover + - dotnet restore + - find * -name *.csproj | xargs -I % dotnet add % package coverlet.msbuild + - dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover after_success: # After all tests OK, Send CodeDov report - echo "Test Success - Branch($TRAVIS_BRANCH) Pull Request($TRAVIS_PULL_REQUEST) Tag($TRAVIS_TAG)"