-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathappveyor.yml
51 lines (42 loc) · 1.83 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
environment:
global:
PROJECT_NAME: rust-belt
matrix:
- TARGET: x86_64-pc-windows-msvc
CHANNEL: stable
- TARGET: x86_64-pc-windows-msvc
CHANNEL: beta
matrix:
allow_failures:
- TARGET: x86_64-pc-windows-msvc
CHANNEL: beta
# Based on https://github.com/japaric/rust-everywhere/blob/master/appveyor.yml
install:
# Print Powershell version.
- ps: $PSVersionTable.PSVersion
- ps: pwd
# Install Rust and Cargo
- curl --fail --silent --show-error --location --output rustup-init.exe https://win.rustup.rs
- rustup-init.exe --default-host %TARGET% --default-toolchain %CHANNEL% -y
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
- rustc -Vv
- cargo -V
# Add GCC to PATH if needed.
- if "%TARGET%" == "i686-pc-windows-gnu" set PATH=%PATH%;C:\msys64\mingw32\bin
- if "%TARGET%" == "x86_64-pc-windows-gnu" set PATH=%PATH%;C:\msys64\mingw64\bin
# Install SDL2.
- curl --fail --silent --show-error --location --output sdl2.zip https://www.libsdl.org/release/SDL2-devel-2.0.10-VC.zip
- ps: Expand-Archive sdl2.zip -DestinationPath sdl2
- set LIB=%LIB%;C:\projects\rust-belt\sdl2\SDL2-2.0.10\lib\x64
# Install SDL2_Mixer.
- curl --fail --silent --show-error --location --output sdl2_mixer.zip https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-devel-2.0.4-VC.zip
- ps: Expand-Archive sdl2_mixer.zip -DestinationPath sdl2_mixer
- set LIB=%LIB%;C:\projects\rust-belt\sdl2_mixer\SDL2_mixer-2.0.4\lib\x64
- ps: Get-ChildItem -Recurse -Depth 4
# 'cargo test' takes care of building for us, so disable Appveyor's build stage. This prevents
# the "directory does not contain a project or solution file" error.
# source: https://github.com/starkat99/appveyor-rust/blob/master/appveyor.yml#L113
build: false
# Equivalent to Travis' `script` phase
test_script:
- cargo build --verbose