forked from rust-lang/rustup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
87 lines (75 loc) · 2.3 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
environment:
matrix:
- TARGET: x86_64-pc-windows-msvc
- TARGET: i686-pc-windows-msvc
- TARGET: x86_64-pc-windows-gnu
BITS: 64
- TARGET: i686-pc-windows-gnu
BITS: 32
access_token:
secure: q8Wqx0brgfpOYFQqWauvucE2h0o1WYb41a3gKaCKV9QiE4eTz6qLNlqyC3mdsp4Q
branches:
only:
- master
- stable
- auto
install:
- ps: |
# Install Rust
Start-FileDownload "https://static.rust-lang.org/dist/rust-nightly-${env:TARGET}.exe" -FileName "rust-nightly.exe"
.\rust-nightly.exe /VERYSILENT /NORESTART /DIR="C:\rust" | Out-Null
$env:PATH="$env:PATH;C:\rust\bin"
New-Item .cargo -type directory
Copy-Item ci/appveyor-cargo-config.toml .cargo/config
# For -gnu builds
if ($env:TARGET -match "-gnu$") {
$env:PATH="$env:PATH;C:\msys64\mingw${env:BITS}\bin"
}
# For -msvc builds
if ($env:TARGET -match "-msvc$") {
Start-FileDownload "http://www.npcglib.org/~stathis/downloads/openssl-1.0.2d-vs2015.7z" -FileName "openssl.7z"
7z x openssl.7z -o"C:\OpenSSL" | Out-Null
}
# Print version info
rustc -vV
cargo -vV
build: false
test_script:
- cargo build --release --features symlinks
- cargo test --release -p multirust-dist --features symlinks
- cargo test --release --features symlinks
notifications:
- provider: Webhook
url: https://webhooks.gitter.im/e/9907ad94eb7a5ff291c3
after_test:
- powershell -File ci/prepare-deploy-appveyor.ps1
artifacts:
- path: dist\$(TARGET)\rustup-setup.exe
name: rustup-setup
- path: dist\$(TARGET)\rustup-setup.exe.sha256
name: rustup-setup-sha
deploy:
- provider: S3
skip_cleanup: true
access_key_id: AKIAIZT5ZFS5N2VNRGPA
secret_access_key:
secure: viw7GCfVF0QlY0fghoxO3Lux/Wo4u6PxxgUwEq5cs4w69tlv9KzIIw74Nc7KJdgt
bucket: dev-static-rust-lang-org
set_public: true
region: us-west-1
artifact: rustup-setup,rustup-setup-sha
folder: rustup
on:
branch: master
- provider: S3
skip_cleanup: true
access_key_id: AKIAIZT5ZFS5N2VNRGPA
secret_access_key:
secure: viw7GCfVF0QlY0fghoxO3Lux/Wo4u6PxxgUwEq5cs4w69tlv9KzIIw74Nc7KJdgt
bucket: static-rust-lang-org
set_public: true
region: us-west-1
artifact: rustup-setup,rustup-setup-sha
folder: rustup
on:
branch: stable