Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Commit

Permalink
Fix check format in both paths
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon committed Aug 26, 2019
1 parent 6df61f3 commit f3e0fbb
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit f3e0fbb

Please sign in to comment.