Skip to content

Commit c0d78bf

Browse files
marco-cLuni-4
authored andcommitted
Add Windows test task
1 parent c2bcaf4 commit c0d78bf

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.taskcluster.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,42 @@ tasks:
5858
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_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+
6191
- $if: 'tasks_for == "github-push" && head_branch[:10] == "refs/tags/"'
6292
then:
6393
taskId: {$eval: as_slugid("build_release")}
6494
dependencies:
6595
- {$eval: as_slugid("lint_test_task")}
96+
- {$eval: as_slugid("windows_test_task")}
6697
created: {$fromNow: ''}
6798
deadline: {$fromNow: '2 hour'}
6899
provisionerId: proj-relman

0 commit comments

Comments
 (0)