BootstrapAdmin/DatabaseScripts/MongoDB/appveyor.ps1

10 lines
284 B
PowerShell
Raw Normal View History

# init mongodb data
$initFolder = "$($env:appveyor_build_folder)\DatabaseScripts\MongoDB"
cd $initFolder
2019-05-20 14:52:06 +08:00
cmd.exe /c "C:\mongodb\bin\mongo init.js"
$cmd = 'C:\mongodb\bin\mongo BootstrapAdmin --eval "printjson(db.getCollectionNames())"'
iex "& $cmd"
cd $($env:appveyor_build_folder)