-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathappveyor.yml
More file actions
38 lines (33 loc) · 1.2 KB
/
appveyor.yml
File metadata and controls
38 lines (33 loc) · 1.2 KB
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
version: '0.2.0-SNAPSHOT-b{build}'
platform:
- x86
install:
# Installing Rust distribution
- choco install --yes --x86 --version=1.10 rust
- SET PATH=%PATH%;C:\Program Files (x86)\Rust stable GNU 1.10\bin
- rustc -V
- cargo -V
# Installing NSIS (and XML plugin)
- choco install --yes nsis
- set PATH="C:\Program Files (x86)\NSIS";%PATH%
- curl -fsS -o C:\Windows\Temp\nsis-xml.zip http://nsis.sourceforge.net/mediawiki/images/5/55/Xml.zip
- md C:\Windows\Temp\nsis-xml
- 7z x -oC:\Windows\Temp\nsis-xml C:\Windows\Temp\nsis-xml.zip
- copy "C:\Windows\Temp\nsis-xml\Plugin\xml.dll" "C:\Program Files (x86)\NSIS\Plugins\x86-ansi"
- copy "C:\Windows\Temp\nsis-xml\Include\XML.nsh" "C:\Program Files (x86)\NSIS\Include"
test_script:
- cargo test --verbose
build_script:
- cargo build --verbose --release
- makensis /DFLIGHTVARS_VERSION=%APPVEYOR_BUILD_VERSION% installer\FlightVars.nsh
artifacts:
- path: installer/*.exe
deploy:
description: 'FlightVars plugin for FSX/P3D'
provider: GitHub
auth_token:
secure: 4QP9Hc3xgTn+8pJQTfK7Ooq4quBsecJX84qgBqnta3EnbeNTiEDCrDCJ2KNHn1vZ
draft: false
prerelease: true
on:
appveyor_repo_tag: true # deploy on tag push only