Update AppVeyor/Travis configs to run on .NET Core, enable selenium
tests, etc.
This commit is contained in:
parent
bc7226ba27
commit
83b90d1980
|
|
@ -1,5 +1,7 @@
|
||||||
init:
|
init:
|
||||||
- git config --global core.autocrlf true
|
- git config --global core.autocrlf true
|
||||||
|
install:
|
||||||
|
- ps: Install-Product node 8 x64
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- dev
|
- dev
|
||||||
|
|
@ -13,7 +15,14 @@ environment:
|
||||||
test: 'off'
|
test: 'off'
|
||||||
deploy: 'off'
|
deploy: 'off'
|
||||||
os: Visual Studio 2017 Preview
|
os: Visual Studio 2017 Preview
|
||||||
|
build_script:
|
||||||
# Everything above here copied from the ASP.NET Core configurations
|
- dotnet build Blazor.sln
|
||||||
build:
|
before_test:
|
||||||
project: Blazor.sln
|
- 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
|
||||||
|
|
|
||||||
15
.travis.yml
15
.travis.yml
|
|
@ -23,7 +23,16 @@ before_install:
|
||||||
- if test "$TRAVIS_OS_NAME" == "osx"; then brew update; brew install openssl; ln -s
|
- 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/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
|
/usr/local/lib/; fi
|
||||||
|
install:
|
||||||
# Everything above here copied from the ASP.NET Core configurations
|
- . $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:
|
script:
|
||||||
- dotnet build Blazor.sln
|
- dotnet build Blazor.sln
|
||||||
|
- selenium-standalone start &
|
||||||
|
- dotnet test test/AllTests.proj
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
<Project>
|
||||||
|
<ItemGroup>
|
||||||
|
<TestProject Include="*\*.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Target Name="VSTest">
|
||||||
|
<MSBuild Projects="@(TestProject)" Targets="VSTest" ContinueOnError="ErrorAndContinue" />
|
||||||
|
</Target>
|
||||||
|
</Project>
|
||||||
Loading…
Reference in New Issue