-
Notifications
You must be signed in to change notification settings - Fork 80
/
appveyor.yml
46 lines (46 loc) · 1.43 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
version: 0.16.0-{build}
platform:
- x64
environment:
RUST_INSTALL_DIR: C:\Rust
RUSTFLAGS: "-D warnings"
matrix:
- RUST_INSTALL_TRIPLE: x86_64-pc-windows-msvc
RUST_VERSION: stable
- RUST_INSTALL_TRIPLE: x86_64-pc-windows-msvc
RUST_VERSION: stable
PACKAGE: win
FTP_PASSWD:
secure: DBE4nt5J/zQUXTGe8QTOJg==
install:
# Rust & Qt
- set PATH=%USERPROFILE%\.cargo\bin;%PATH%
- set QTDIR=C:\Qt\5.9.7\msvc2013_64
- set PATH=%QTDIR%\bin;%PATH%
- set CMAKE_PREFIX_PATH=%QTDIR%;%CMAKE_PREFIX_PATH%
- appveyor DownloadFile https://static.rust-lang.org/rustup/dist/%RUST_INSTALL_TRIPLE%/rustup-init.exe
- if defined APPVEYOR_PULL_REQUEST_TITLE (
if NOT defined PACKAGE (
rustup-init.exe -y
)
) else (
rustup-init.exe -y
)
build_script:
- call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x64
- if NOT DEFINED PACKAGE (
cargo build --verbose --all
) else (
if NOT DEFINED APPVEYOR_PULL_REQUEST_TITLE (
if "%PACKAGE%"=="win" (
cd pkg\windows &
call package_zip.bat &
curl -T panopticon-0.16.zip -u upload:%FTP_PASSWD% -Q "-SITE CHMOD 664 panopticon-master.zip" ftp://files.panopticon.re/panopticon-master.zip
)
)
)
test_script:
- if NOT DEFINED PACKAGE (
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x64 &
cargo test --verbose --all
)