Debian Codegraph @

src/libsass/appveyor.yml

raw symbols SCIP
1 os: Visual Studio 2013
2
3 environment:
4 CTEST_OUTPUT_ON_FAILURE: 1
5 ruby_version: 24-x64
6 TargetPath: sassc/bin/sassc.exe
7 matrix:
8 - Compiler: msvc
9 Config: Release
10 Platform: Win32
11 - Compiler: msvc
12 Config: Debug
13 Platform: Win32
14 - Compiler: msvc
15 Config: Release
16 Platform: Win64
17 - Compiler: mingw
18 Build: static
19 - Compiler: mingw
20 Build: shared
21
22 cache:
23 - C:\Ruby%ruby_version%\lib\ruby\gems
24 - C:\mingw64
25
26 # Uncomment to debug hanging builds via RDP, password can be found/set under Environment-Variables in appveyor settings!
27 #
28 # init:
29 # - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
30 #
31 # on_finish:
32 # - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
33
34 install:
35 - git clone https://github.com/sass/sassc.git
36 - git clone https://github.com/sass/sass-spec.git
37 - set PATH=C:\Ruby%ruby_version%\bin;%PATH%
38 - ps: |
39 if(!(gem which minitest 2>$nul)) { gem install minitest --no-ri --no-rdoc }
40 if(!(gem which hrx 2>$nul)) { gem install hrx --no-ri --no-rdoc }
41 if ($env:Compiler -eq "mingw" -AND -Not (Test-Path "C:\mingw64")) {
42 # Install MinGW.
43 $file = "x86_64-4.9.2-release-win32-seh-rt_v4-rev3.7z"
44 wget https://bintray.com/artifact/download/drewwells/generic/$file -OutFile $file
45 &7z x -oC:\ $file > $null
46 }
47 - set PATH=C:\mingw64\bin;%PATH%
48 - set CC=gcc
49
50 build_script:
51 - ps: |
52 if ($env:Compiler -eq "mingw") {
53 mingw32-make -j4 sassc
54 } else {
55 msbuild /m:4 /p:"Configuration=$env:Config;Platform=$env:Platform" sassc\win\sassc.sln
56 }
57
58 # print the branding art
59 mv script/branding script/branding.ps1
60 script/branding.ps1
61
62 # print the version info
63 &$env:TargetPath -v
64 ruby -v
65
66 test_script:
67 - ps: |
68 $PRNR = $env:APPVEYOR_PULL_REQUEST_NUMBER
69 if ($PRNR) {
70 echo "Fetching info for PR $PRNR"
71 wget https://api.github.com/repos/sass/libsass/pulls/$PRNR -OutFile pr.json
72 $json = cat pr.json -Raw
73 $SPEC_PR = [regex]::match($json,'sass\/sass-spec(#|\/pull\/)([0-9]+)').Groups[2].Value
74 if ($SPEC_PR) {
75 echo "Checkout sass spec PR $SPEC_PR"
76 git -C sass-spec fetch -q -u origin pull/$SPEC_PR/head:ci-spec-pr-$SPEC_PR
77 git -C sass-spec checkout -q --force ci-spec-pr-$SPEC_PR
78 }
79 }
80 $env:TargetPath = Join-Path $pwd.Path $env:TargetPath
81 If (Test-Path "$env:TargetPath") {
82 ruby sass-spec/sass-spec.rb --probe-todo --impl libsass -c $env:TargetPath -s sass-spec/spec
83 if(-not($?)) {
84 echo "sass-spec tests failed"
85 exit 1
86 }
87 } else {
88 echo "spec runner not found (compile error?)"
89 exit 1
90 }
91 Write-Host "Explicitly testing the case when cwd has Unicode characters: " -nonewline
92 # See comments in gh-1774 for details.
93 cd test/e2e/unicode-pwd/Sáss-UŢF8/
94 &$env:TargetPath ./input.scss 2>&1>$null
95 if(-not($?)) {
96 echo "Failed!"
97 exit 1
98 } else {
99 echo "Success!"
100 }