Skip to content

Commit 8d0d672

Browse files
Luni-4marco-c
andauthored
Add Windows test task (#124)
Co-authored-by: Marco Castelluccio <[email protected]>
1 parent c2bcaf4 commit 8d0d672

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.taskcluster.yml

+29
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,40 @@ 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_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+
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

Comments
 (0)