-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
93 lines (84 loc) · 2.74 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
88
89
90
91
92
93
os: Visual Studio 2015
platform: x64
cache:
- '%USERPROFILE%\.cargo'
environment:
global:
PROJECT_NAME: indentex
matrix:
# Stable 64-bit MSVC
- channel: stable
target: x86_64-pc-windows-msvc
static: 0
# Beta 64-bit MSVC
- channel: beta
target: x86_64-pc-windows-msvc
static: 0
# Nightly 64-bit MSVC
- channel: nightly
target: x86_64-pc-windows-msvc
static: 0
# Nightly 64-bit MSVC + static CRT linking
- channel: nightly
target: x86_64-pc-windows-msvc
static: 1
matrix:
allow_failures:
- channel: nightly
install:
- appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- rustup-init -yv --default-toolchain %channel% --default-host %target%
- if [%static%]==[1] if [%APPVEYOR_REPO_TAG%]==[true] (choco install pandoc)
- set PATH=%PATH%;%USERPROFILE%\.cargo\bin
- rustc -vV
- cargo -vV
- echo %WIX%
- if [%static%]==[1] (set "RUSTFLAGS=-C target-feature=+crt-static")
build: false
before_test:
- >
appveyor DownloadFile
https://raw.githubusercontent.com/minimaxir/big-list-of-naughty-strings/master/blns.txt
-FileName ./tests/blns/blns.inden.tex
test_script:
- cargo test --all
- cargo run -- -v .
- cargo run -- -v ./tests/blns/blns.inden.tex # Needs to be tested separately, since this file is gitignore'd
after_test:
- if [%static%]==[1] if [%APPVEYOR_REPO_TAG%]==[true] (cd .\packaging\windows_wix)
- if [%static%]==[1] if [%APPVEYOR_REPO_TAG%]==[true] (powershell .\make_installer.ps1)
- if [%static%]==[1] if [%APPVEYOR_REPO_TAG%]==[true] (cd ..\..\packaging\windows_choco)
- if [%static%]==[1] if [%APPVEYOR_REPO_TAG%]==[true] (powershell .\make.ps1)
- if [%static%]==[1] if [%APPVEYOR_REPO_TAG%]==[true] (cd ..\..)
artifacts:
- path: 'packaging\windows_wix\*.msi'
name: indentex_installer
- path: 'packaging\windows_choco\*.nupkg'
name: indentex_choco_package
- path: 'packaging\windows_choco\package\*.exe'
name: indentex_executable
- path: 'packaging\*.DIGEST'
name: indentex_digests
deploy:
- provider: GitHub
artifact: indentex_installer, indentex_executable, indentex_digests
auth_token:
secure: edOr1j8ikBbK3zm1mL18ppWCzYmoxJo9O3Ha2fdmg0mxhxB6LDnXep5uhLvFoSQE
on:
appveyor_repo_tag: true
appveyor_repo_name: mp4096/indentex
channel: nightly
target: x86_64-pc-windows-msvc
static: 1
- provider: NuGet
artifact: indentex_choco_package
server: https://chocolatey.org
api_key:
secure: c0ycGcvfqd0GuAuKdRVHczXioz8NC4aVarjZLYyVNtdkK4/5YIpGfriJnZjQY7l7
skip_symbols: true
on:
appveyor_repo_tag: true
appveyor_repo_name: mp4096/indentex
channel: nightly
target: x86_64-pc-windows-msvc
static: 1