forked from mozilla/grcov
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
48 lines (42 loc) · 1.46 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
image: Visual Studio 2017
platform:
- x64
environment:
matrix:
- channel: stable
- channel: nightly
install:
- appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- rustup-init -yv --default-toolchain %channel% --default-host x86_64-pc-windows-msvc
- set PATH=%PATH%;%USERPROFILE%\.cargo\bin
- set PATH=%PATH%;C:\Libraries\llvm-5.0.0\bin
- rustc -vV
- cargo -vV
build_script:
- if [%APPVEYOR_REPO_TAG%]==[false] (
cargo build --verbose
)
- if [%APPVEYOR_REPO_TAG%]==[true] if [%channel%]==[nightly] (
cargo build --release --features=alloc_system
)
- if [%APPVEYOR_REPO_TAG%]==[true] if [%channel%]==[nightly] (
7z a grcov-win-x86_64.tar .\target\release\grcov.exe "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Redist\MSVC\14.12.25810\x64\Microsoft.VC141.CRT\msvcp140.dll" "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Redist\MSVC\14.12.25810\x64\Microsoft.VC141.CRT\vcruntime140.dll"
)
- if [%APPVEYOR_REPO_TAG%]==[true] if [%channel%]==[nightly] (
7z a grcov-win-x86_64.tar.bz2 grcov-win-x86_64.tar
)
test_script:
- if [%APPVEYOR_REPO_TAG%]==[false] (
cargo test --verbose
)
artifacts:
- path: grcov-win-x86_64.tar.bz2
deploy:
artifact: grcov-win-x86_64.tar.bz2
auth_token:
secure: /BjmtIYmmvSDJ5939QEcd857vcA29dIlcb/u6wgbWkAm+Cp4LN2KTi3+cVveoqz+
description: ''
on:
channel: nightly
appveyor_repo_tag: true
provider: GitHub