Update AppVeyor/Travis configs to run on .NET Core, enable selenium

tests, etc.
This commit is contained in:
Steve Sanderson 2018-02-14 10:46:19 +00:00
parent bc7226ba27
commit 83b90d1980
3 changed files with 33 additions and 7 deletions

View File

@ -1,5 +1,7 @@
init:
- git config --global core.autocrlf true
install:
- ps: Install-Product node 8 x64
branches:
only:
- dev
@ -13,7 +15,14 @@ environment:
test: 'off'
deploy: 'off'
os: Visual Studio 2017 Preview
# Everything above here copied from the ASP.NET Core configurations
build:
project: Blazor.sln
build_script:
- dotnet build Blazor.sln
before_test:
- choco install googlechrome
- npm install -g selenium-standalone
- selenium-standalone install
- ps: $SeleniumProcess = Start-Process "selenium-standalone" -ArgumentList "start" -PassThru
test_script:
- dotnet test test\AllTests.proj
after_test:
- ps: Stop-Process -Id $SeleniumProcess.Id

View File

@ -23,7 +23,16 @@ before_install:
- if test "$TRAVIS_OS_NAME" == "osx"; then brew update; brew install openssl; ln -s
/usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/; ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
/usr/local/lib/; fi
# Everything above here copied from the ASP.NET Core configurations
install:
- . $HOME/.nvm/nvm.sh
- nvm install 8.9.4
- nvm use 8.9.4
- npm install -g selenium-standalone
- selenium-standalone install
- export DOTNET_INSTALL_DIR="$PWD/.dotnetcli"
- curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel Current --version latest --install-dir "$DOTNET_INSTALL_DIR"
- export PATH="$DOTNET_INSTALL_DIR:$PATH"
script:
- dotnet build Blazor.sln
- dotnet build Blazor.sln
- selenium-standalone start &
- dotnet test test/AllTests.proj

8
test/AllTests.proj Normal file
View File

@ -0,0 +1,8 @@
<Project>
<ItemGroup>
<TestProject Include="*\*.csproj" />
</ItemGroup>
<Target Name="VSTest">
<MSBuild Projects="@(TestProject)" Targets="VSTest" ContinueOnError="ErrorAndContinue" />
</Target>
</Project>