forked from sass/libsass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
71 lines (67 loc) · 2.16 KB
/
appveyor.yml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
environment:
CTEST_OUTPUT_ON_FAILURE: 1
matrix:
- Compiler: mingw
Build: static
ruby_version: "21-x64"
- Compiler: mingw
Build: shared
ruby_version: "21-x64"
- Compiler: msvc
Config: Release
ruby_version: "21-x64"
- Compiler: msvc
Config: Debug
ruby_version: "21-x64"
cache:
- C:\Ruby%ruby_version%\lib\ruby\gems
install:
- git clone https://github.com/sass/sassc.git
- git clone https://github.com/sass/sass-spec.git
- set PATH=C:\Ruby%ruby_version%\bin;%PATH%
- set SASS_LIBSASS_PATH=..
- ps: |
if(!(gem which minitest 2>$nul)) { gem install minitest }
if ($env:Compiler -eq "mingw" -AND -Not (Test-Path "C:\mingw64")) {
# Install MinGW.
$url = "http://sourceforge.net/projects/mingw-w64/files/"
$url += "Toolchains%20targetting%20Win64/Personal%20Builds/"
$url += "mingw-builds/4.9.2/threads-win32/seh/"
$url += "x86_64-4.9.2-release-win32-seh-rt_v3-rev0.7z/download"
Invoke-WebRequest -UserAgent wget -Uri $url -OutFile x86_64-4.9.2-release-win32-seh-rt_v3-rev0.7z
&7z x -oC:\ x86_64-4.9.2-release-win32-seh-rt_v3-rev0.7z > $null
}
- set PATH=C:\mingw64\bin;%PATH%
- set CC=gcc
build_script:
- ps: |
if ($env:Compiler -eq "mingw") {
mingw32-make -j4 sassc
} else {
msbuild /m:4 /p:Configuration=$env:Config win\libsass.sln
}
- ps: |
if ($env:Compiler -eq "mingw") {
sassc\bin\sassc.exe -v
ruby -v
} else {
if ($env:Config -eq "Debug") {
win\bin\Debug\sassc.exe -v
ruby -v
} else {
win\bin\sassc.exe -v
ruby -v
}
}
test_script:
- ps: |
if ($env:Compiler -eq "mingw") {
ruby sass-spec\sass-spec.rb -c sassc\bin\sassc.exe -s --ignore-todo sass-spec/spec
} else {
if ($env:Config -eq "Debug") {
echo "test runner in debug mode build via msvc will throw debug assertions"
echo ruby sass-spec\sass-spec.rb -c win\bin\Debug\sassc.exe -s --ignore-todo sass-spec/spec
} else {
ruby sass-spec\sass-spec.rb -c win\bin\sassc.exe -s --ignore-todo sass-spec/spec
}
}