summaryrefslogtreecommitdiff
path: root/.expeditor/run_windows_tests.ps1
blob: 1432c2c73af21f265132dea17c151e17e1fd4f59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Stop script execution when a non-terminating error occurs
$ErrorActionPreference = "Stop"

# This will run ruby test on windows platform
Write-Output "--- Bundle install"
ruby --version
bundler --version
gem update --system
If ($lastexitcode -ne 0) { Exit $lastexitcode }
bundle config set --local path vendor/bundle
If ($lastexitcode -ne 0) { Exit $lastexitcode }
bundle install --jobs=7 --retry=3
If ($lastexitcode -ne 0) { Exit $lastexitcode }

Write-Output "--- Bundle Execute"
bundle exec rake
If ($lastexitcode -ne 0) { Exit $lastexitcode }