Skip to content

Commit ccfcfd2

Browse files
committed
Merge pull request #753 from mgreter/test/appveyor
Add some files to cache for AppVeyor
2 parents eb014f9 + 6729541 commit ccfcfd2

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

appveyor.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ environment:
1414
Config: Debug
1515
ruby_version: "21-x64"
1616

17+
cache:
18+
- x86_64-4.9.2-release-win32-seh-rt_v3-rev0.7z
19+
- C:\Ruby21-x64\lib\ruby\gems\2.1.0
20+
- C:\Ruby21-x64\bin
21+
1722
install:
1823
- git clone https://github.com/mgreter/sassc.git --branch feature/build-dll-win-mingw
1924
- git clone https://github.com/sass/sass-spec.git
@@ -22,13 +27,15 @@ install:
2227
- gem install minitest
2328
- ps: |
2429
if ($env:Compiler -eq "mingw") {
25-
# Install MinGW.
26-
$url = "http://sourceforge.net/projects/mingw-w64/files/"
27-
$url += "Toolchains%20targetting%20Win64/Personal%20Builds/"
28-
$url += "mingw-builds/4.9.2/threads-win32/seh/"
29-
$url += "x86_64-4.9.2-release-win32-seh-rt_v3-rev0.7z/download"
30-
Invoke-WebRequest -UserAgent wget -Uri $url -OutFile mingw.7z
31-
&7z x -oC:\ mingw.7z > $null
30+
if (-Not (Test-Path "x86_64-4.9.2-release-win32-seh-rt_v3-rev0.7z")) {
31+
# Install MinGW.
32+
$url = "http://sourceforge.net/projects/mingw-w64/files/"
33+
$url += "Toolchains%20targetting%20Win64/Personal%20Builds/"
34+
$url += "mingw-builds/4.9.2/threads-win32/seh/"
35+
$url += "x86_64-4.9.2-release-win32-seh-rt_v3-rev0.7z/download"
36+
Invoke-WebRequest -UserAgent wget -Uri $url -OutFile x86_64-4.9.2-release-win32-seh-rt_v3-rev0.7z
37+
}
38+
&7z x -oC:\ x86_64-4.9.2-release-win32-seh-rt_v3-rev0.7z > $null
3239
}
3340
- set PATH=C:\mingw64\bin;%PATH%
3441
- set CC=gcc

0 commit comments

Comments
 (0)