blob: 106e1bf9eb2a9b7877717bddeb1f33d9e73c3400 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
echo "--- system details"
$Properties = 'Caption', 'CSName', 'Version', 'BuildType', 'OSArchitecture'
Get-CimInstance Win32_OperatingSystem | Select-Object $Properties | Format-Table -AutoSize
echo "--- Install make and ruby2.devkit"
choco install make ruby ruby2.devkit -y
refreshenv
echo - c:\tools\ruby26 > c:\tools\Devkit2\config.yml
ruby c:\tools\Devkit2\dk.rb install
choco install msys2 -y
refreshenv
Write-Output 'Updating PATH'
$env:PATH = "C:\tools\ruby26\bin;C:\tools\DevKit2\mingw\bin;C:\tools\DevKit2\bin;" + $env:PATH
[Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine)
ruby -v
bundle --version
gem -v
C:\tools\ruby26\ridk_use\ridk.cmd install 3
C:\tools\ruby26\ridk_use\ridk.cmd enable
echo "--- gem install bundler"
gem install bundler
echo "--- bundle install"
bundle install --without development_extras --jobs 3 --retry 3 --path vendor/bundle
echo "+++ bundle exec rake compile"
bundle exec rake compile
echo "+++ bundle exec rake spec"
bundle exec rake spec
exit $LASTEXITCODE
|