forked from fschutt/printpdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
43 lines (40 loc) · 1.62 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
environment:
global:
# This will be used as part of the zipfile name
# TODO change the project name
PROJECT_NAME: printpdf
# TODO feel free to delete targets/channels you don't need
matrix:
# Stable channel
- TARGET: i686-pc-windows-gnu
CHANNEL: stable
- TARGET: i686-pc-windows-msvc
CHANNEL: stable
# This target is commented out because for some reason appveyor only ships
# GCC in 32-bit mode, so when compiling miniz.c (require for zipping), it'll
# fail although the build itself will work fine (because nobody uses a 32-bit
# compiler anymore in the real world). Just use a 64-bit compiler and
# everything will work fine.
#
# - TARGET: x86_64-pc-windows-gnu
# CHANNEL: stable
- TARGET: x86_64-pc-windows-msvc
CHANNEL: stable
# Install Rust and Cargo
# (Based on from https://github.com/rust-lang/libc/blob/master/appveyor.yml)
install:
- appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- rustup-init -yv --default-toolchain %channel% --default-host %target%
- set PATH=%PATH%;%USERPROFILE%\.cargo\bin;C:\tools\mingw64\bin;C:\MinGW\bin
- gcc -v
- rustc -vV
- cargo -vV
# '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
# TODO modify this phase as you see fit
test_script:
- cargo check --verbose --examples
- cargo test --verbose