@@ -58,11 +58,40 @@ tasks:
5858 owner : cdenizet@mozilla.com
5959 source : ${repository}/raw/${head_rev}/.taskcluster.yml
6060
61+ - taskId : {$eval: as_slugid("windows_test_task")}
62+ created : {$fromNow: ''}
63+ deadline : {$fromNow: '1 hour'}
64+ provisionerId : proj-relman
65+ workerType : win2012r2
66+ payload :
67+ maxRunTime : 3600
68+ command :
69+ - set VS_PATH=%programfiles(x86)%\Microsoft Visual Studio 14.0\VC
70+ - set RUSTUP_INIT_PATH=%CD%\rustup-init
71+ - set PATH=%RUSTUP_INIT_PATH%;%USERPROFILE%\.cargo\bin;%PATH%
72+ - call "%VS_PATH%\vcvarsall.bat" x86_amd64
73+ - rustup-init -yv --default-toolchain stable ^
74+ --default-host x86_64-pc-windows-msvc
75+ - git clone --recursive --quiet ${repository}
76+ - cd rust-code-analysis
77+ - git -c advice.detachedHead=false checkout ${head_rev}
78+ - cargo test --verbose --all-features
79+ mounts :
80+ - content :
81+ url : https://win.rustup.rs/
82+ file : rustup-init\rustup-init.exe
83+ metadata :
84+ name : rust-code-analysis windows test
85+ description : rust-code-analysis windows test
86+ owner : cdenizet@mozilla.com
87+ source : ${repository}/raw/${head_rev}/.taskcluster.yml
88+
6189 - $if : ' tasks_for == "github-push" && head_branch[:10] == "refs/tags/"'
6290 then :
6391 taskId : {$eval: as_slugid("build_release")}
6492 dependencies :
6593 - {$eval: as_slugid("lint_test_task")}
94+ - {$eval: as_slugid("windows_test_task")}
6695 created : {$fromNow: ''}
6796 deadline : {$fromNow: '2 hour'}
6897 provisionerId : proj-relman
0 commit comments