-
Notifications
You must be signed in to change notification settings - Fork 76
/
.appveyor.yml
94 lines (73 loc) · 2.07 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
94
version: 0.5.0.{build}
branches:
only:
- master
- travis
image:
- Visual Studio 2017
environment:
matrix:
- TARGET: x86_64-pc-windows-msvc
CHANNEL: stable
ARCH: 64
- TARGET: i686-pc-windows-msvc
CHANNEL: stable
ARCH: 32
- TARGET: x86_64-pc-windows-msvc
CHANNEL: stable
ARCH: 64skia
- TARGET: i686-pc-windows-msvc
CHANNEL: stable
ARCH: 32skia
- TARGET: x86_64-pc-windows-msvc
CHANNEL: stable
ARCH: 64
FEATURES: --features "dynamic"
- TARGET: i686-pc-windows-msvc
CHANNEL: stable
ARCH: 32
FEATURES: --features "dynamic"
- TARGET: x86_64-pc-windows-msvc
CHANNEL: nightly
ARCH: 64
- TARGET: i686-pc-windows-msvc
CHANNEL: nightly
ARCH: 32
- TARGET: x86_64-pc-windows-msvc
CHANNEL: 1.46.0
ARCH: 64
- TARGET: i686-pc-windows-msvc
CHANNEL: 1.46.0
ARCH: 32
- TARGET: x86_64-pc-windows-msvc
CHANNEL: 1.46.0
ARCH: 64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
cache:
- C:\Users\appveyor\.cargo\registry
#- C:\projects\deps -> appveyor.yml
#- target
install:
- cmd: echo Testing sciter%ARCH% with Rust %CHANNEL%.
- cmd: echo Current directory is %APPVEYOR_BUILD_FOLDER%
- cmd: mkdir ..\deps
- curl -sSLo "..\deps\sciter.dll" "https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.win/x%ARCH%/sciter.dll"
- curl -sSLo "..\deps\rustup-init.exe" "https://win.rustup.rs/"
- ..\deps\rustup-init.exe -y --default-host %TARGET% --default-toolchain %CHANNEL%
- cmd: set PATH=%PATH%;C:\Users\appveyor\.cargo\bin;C:\projects\deps
before_build:
- cmd: cd
- rustc --version
- cargo update
build_script:
- cmd: echo Building library
- cargo build --release --all %FEATURES%
- cmd: echo Building examples
- cargo build --example first
- cargo build --release --examples %FEATURES%
test_script:
- cargo run --example first %FEATURES%
- cargo run --example first %FEATURES%
- cargo run --example first %FEATURES% -- C:/projects/deps/sciter.dll
- cargo test -p sciter-rs %FEATURES%
- cargo test -p sciter-rs %FEATURES% --release