@@ -58,11 +58,42 @@ tasks:
58
58
59
59
source : ${repository}/raw/${head_rev}/.taskcluster.yml
60
60
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_INST_PATH=C:\VS2019
70
+ - set RUSTUP_INIT_PATH=%CD%\rustup-init
71
+ - set PATH=%RUSTUP_INIT_PATH%;%USERPROFILE%\.cargo\bin;%PATH%
72
+ - choco install -y visualstudio2019buildtools ^
73
+ --params "--installPath %VS_INST_PATH%"
74
+ - tree /f /a "%VS_INST_PATH%"
75
+ - rustup-init -yv --default-toolchain stable ^
76
+ --default-host x86_64-pc-windows-msvc
77
+ - git clone --recursive --quiet ${repository}
78
+ - cd rust-code-analysis
79
+ - git -c advice.detachedHead=false checkout ${head_rev}
80
+ - cargo test --verbose --all-features
81
+ mounts :
82
+ - content :
83
+ url : https://win.rustup.rs/
84
+ file : rustup-init\rustup-init.exe
85
+ metadata :
86
+ name : rust-code-analysis windows test
87
+ description : rust-code-analysis windows test
88
+
89
+ source : ${repository}/raw/${head_rev}/.taskcluster.yml
90
+
61
91
- $if : ' tasks_for == "github-push" && head_branch[:10] == "refs/tags/"'
62
92
then :
63
93
taskId : {$eval: as_slugid("build_release")}
64
94
dependencies :
65
95
- {$eval: as_slugid("lint_test_task")}
96
+ - {$eval: as_slugid("windows_test_task")}
66
97
created : {$fromNow: ''}
67
98
deadline : {$fromNow: '2 hour'}
68
99
provisionerId : proj-relman
0 commit comments