1
1
version : 1.0.{build}
2
+ image : Visual Studio 2017
2
3
3
4
environment :
4
5
# The appveyor image we use has a pretty huge set of things installed... we make the
@@ -26,8 +27,8 @@ environment:
26
27
C:\\ Program Files\\ Git\\ usr\\ bin;\
27
28
C:\\ Program Files\\ AppVeyor\\ BuildAgent;"
28
29
matrix :
29
- - TARGET : nightly-x86_64-pc-windows-msvc
30
- - TARGET : nightly-x86_64-pc-windows-gnu
30
+ - CARGO_OPTS : " "
31
+ - CARGO_OPTS : " --release "
31
32
32
33
# Uncomment to enable RDP & wait for exit. Connection info will be printed in the log.
33
34
# init:
@@ -37,35 +38,21 @@ environment:
37
38
38
39
# called after cloning, before building
39
40
install :
41
+ - set BUILD_ENV=msvc
42
+ - set TARGET=nightly-x86_64-pc-windows-msvc
40
43
- ps : Start-FileDownload "http://servo-rust.s3.amazonaws.com/build/MozillaBuildSetup-2.2.0.exe"
41
44
- ps : .\MozillaBuildSetup-2.2.0.exe /S | Out-Null
42
45
- ps : Start-FileDownload "https://static.rust-lang.org/dist/rust-${env:TARGET}.exe" -FileName "rust-install.exe"
43
46
- ps : .\rust-install.exe /VERYSILENT /NORESTART /DIR="C:\rust" | Out-Null
44
47
- ps : $env:PATH="$env:PATH;C:\rust\bin"
45
- # I can't make this work with a multi-line script (e.g. via |+ etc.), so we copy the if before every command
46
- - if %TARGET:*-msvc=msvc%==msvc set BUILD_ENV=msvc
47
- - if %TARGET:*-gnu=gnu%==gnu set BUILD_ENV=gnu
48
- - if %BUILD_ENV%==msvc call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\vcvars64.bat"
49
- - if %BUILD_ENV%==msvc copy C:\mozilla-build\yasm\yasm.exe C:\mozilla-build\msys\bin
50
- - if %BUILD_ENV%==msvc copy C:\mozilla-build\mozmake\mozmake.exe C:\mozilla-build\msys\bin
51
- - if %BUILD_ENV%==msvc set MOZTOOLS_PATH=C:\mozilla-build\msys\bin
52
- - if %BUILD_ENV%==msvc set NATIVE_WIN32_PYTHON=C:/Python27/python.exe
53
- - if %BUILD_ENV%==gnu set PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin\;%PATH%
54
- - if %BUILD_ENV%==gnu set MSYSTEM=MINGW64
55
- - if %BUILD_ENV%==gnu set MSYS=winsymlinks=lnk
56
- - if %BUILD_ENV%==gnu bash -lc "echo $MSYSTEM; pacman --needed --noconfirm -Sy pacman-mirrors"
57
- - if %BUILD_ENV%==gnu bash -lc "pacman --noconfirm -Sy"
58
- - if %BUILD_ENV%==gnu bash -lc "pacman -Sy --needed --noconfirm git mingw-w64-x86_64-toolchain tar make python2-setuptools"
59
- - if %BUILD_ENV%==gnu bash -lc "easy_install-2.7 pip virtualenv"
60
- - if %BUILD_ENV%==gnu bash -lc "mv /mingw64/bin/python2.exe /mingw64/bin/python2-mingw64.exe"
61
- - if %BUILD_ENV%==gnu bash -lc "mv /mingw64/bin/python2.7.exe /mingw64/bin/python2.7-mingw64.exe"
48
+ - call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
49
+ - set MOZTOOLS_PATH=C:\mozilla-build\msys\bin;C:\mozilla-build\mozmake;C:\mozilla-build\yasm
50
+ - set NATIVE_WIN32_PYTHON=C:/Python27/python.exe
62
51
- rustc -vV
63
52
- cargo -vV
64
53
65
54
build_script :
66
55
- echo PATH %PATH%
67
56
- echo VSINSTALLDIR %VSINSTALLDIR%
68
57
- echo MOZTOOLS_PATH %MOZTOOLS_PATH%
69
- - if %BUILD_ENV%==msvc cd %APPVEYOR_BUILD_FOLDER% && cargo build --verbose --verbose
70
- - if %BUILD_ENV%==gnu bash -lc "cd $APPVEYOR_BUILD_FOLDER; cargo build --verbose --verbose"
71
-
58
+ - cd %APPVEYOR_BUILD_FOLDER% && cargo build --verbose --verbose %CARGO_OPTS% && cargo test %CARGO_OPTS%
0 commit comments