forked from getsentry/sentry-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
61 lines (52 loc) · 2.03 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
49
50
51
52
53
54
55
56
57
58
59
60
61
skip_tags: true
cache:
- 'target'
- '%USERPROFILE%\.cargo'
branches:
only:
- master
- /^release\/[\d.]+$/
environment:
fast_finish: true
DIST_DIR: '.'
SENTRY_ORG: sentry-cli-travis-test
SENTRY_AUTH_TOKEN:
secure: zaFfRQ1O+0S3XenFbx7l/uK8UF086zd6joeipVI/YAX3Z83QIvt0rcA41uBir6AMcp5lceAxCZlUJSicaPcaZpcZ4l7bvej8OVfj441kBz4=
ZEUS_HOOK_BASE:
secure: dcqtt6sxxBV0tDkXmPZOyzCsC3uBhPnCcEBNuYrB6+qYmkTo7ACaD6zs1L1exo73NNdgusog+eC40PBo1XQ02qyHDBE4XBFapCzhhpxMe5WtiQn7OOJMY37iic9jtPKCd4CGvJo4f3G/B20ZxmqZ3WTS1TuV4cipKnWXee0mkIk=
matrix:
- channel: stable
arch: i686
- channel: stable
arch: x86_64
install:
# Push job information to Zeus
- npm install -g @zeus-ci/cli
- zeus job update --status=pending -B "%APPVEYOR_PULL_REQUEST_TITLE%" -J "%APPVEYOR_JOB_NAME%" ||
echo "%$APPVEYOR_REPO_BRANCH%" | findstr /V "release/">nul
# Install the rest
- appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- rustup-init -yv --default-toolchain %channel% --default-host %arch%-pc-windows-msvc
- set PATH=%PATH%;%USERPROFILE%\.cargo\bin
- rustc -vV
- cargo -vV
build: false
test_script:
- set RUSTFLAGS=-Ctarget-feature=+crt-static
- cargo build --release --locked
# Smoke test, but only when building from the same repo
- set SECRETS_AVAILABLE=false
- if [%APPVEYOR_PULL_REQUEST_HEAD_REPO_NAME%] == [getsentry/sentry-cli] (set SECRETS_AVAILABLE=true)
- if not defined APPVEYOR_PULL_REQUEST_HEAD_REPO_NAME (set SECRETS_AVAILABLE=true)
- if [%SECRETS_AVAILABLE%] == [true]
cargo run --release -- releases list
on_success:
- zeus upload -t "application/octet-stream" -n sentry-cli-Windows-%arch%.exe .\target\release\sentry-cli.exe ||
echo "%$APPVEYOR_REPO_BRANCH%" | findstr /V "release/">nul
- zeus job update --status=passed ||
echo "%$APPVEYOR_REPO_BRANCH%" | findstr /V "release/">nul
on_failure:
- zeus job update --status=failed ||
echo "%$APPVEYOR_REPO_BRANCH%" | findstr /V "release/">nul
artifacts:
- path: '.\target\release\sentry-cli.exe'