forked from blackbeam/rust-mysql-simple
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
42 lines (34 loc) · 1.33 KB
/
appveyor.yml
File metadata and controls
42 lines (34 loc) · 1.33 KB
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
version: 1.0.{build}
branches:
only:
- master
clone_folder: c:\clone
environment:
MYSQL_SERVER_PORT: 3306
MYSQL_SERVER_PASS: Password12!
MYSQL_PWD: Password12!
matrix:
- RUST_URL: https://static.rust-lang.org/dist/rust-nightly-x86_64-pc-windows-msvc.msi
RUST_INSTALLER: rust-nightly-x86_64-pc-windows-msvc.msi
- RUST_URL: https://static.rust-lang.org/dist/rust-beta-x86_64-pc-windows-msvc.msi
RUST_INSTALLER: rust-beta-x86_64-pc-windows-msvc.msi
- RUST_URL: https://static.rust-lang.org/dist/rust-1.20.0-x86_64-pc-windows-msvc.msi
RUST_INSTALLER: rust-1.20.0-x86_64-pc-windows-msvc.msi
services: mysql
install:
- cmd: >-
appveyor DownloadFile %RUST_URL%
msiexec /i %RUST_INSTALLER% INSTALLDIR="c:\rust" /qn
SET PATH=c:\rust\bin;%PATH%
build: off
before_test:
- ps: >-
$iniPath="C:\ProgramData\MySQL\MySQL Server 5.7\my.ini"
$newText = ([System.IO.File]::ReadAllText($iniPath)).Replace("# enable-named-pipe", "enable-named-pipe")
[System.IO.File]::WriteAllText($iniPath, $newText)
Restart-Service MySQL57
test_script:
- cmd: >-
"C:\Program Files\MySql\MySQL Server 5.7\bin\mysql" -e "set global max_allowed_packet = 36700160;" --user=root
SET RUST_BACKTRACE=1
cargo test && cargo test --no-default-features --features rustc_serialize && cargo test --no-default-features --features ssl