forked from blackbeam/rust-mysql-simple
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
61 lines (53 loc) · 2.15 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
version: 1.0.{build}
branches:
only:
- master
clone_folder: c:\clone
environment:
MYSQL_SERVER_PORT: 3306
MYSQL_SERVER_PASS: Password12!
MYSQL_PWD: Password12!
matrix:
- TARGET: nightly-x86_64-pc-windows-msvc
PATH: C:\msys64\mingw64\bin\;c:\rust\bin;%PATH%
- TARGET: nightly-i686-pc-windows-msvc
PATH: C:\msys64\mingw32\bin\;c:\rust\bin;%PATH%
- TARGET: nightly-x86_64-pc-windows-gnu
PATH: C:\msys64\mingw64\bin\;c:\rust\bin;%PATH%
- TARGET: nightly-i686-pc-windows-gnu
PATH: C:\msys64\mingw32\bin\;c:\rust\bin;%PATH%
- TARGET: beta-x86_64-pc-windows-msvc
PATH: C:\msys64\mingw64\bin\;c:\rust\bin;%PATH%
- TARGET: beta-i686-pc-windows-msvc
PATH: C:\msys64\mingw32\bin\;c:\rust\bin;%PATH%
- TARGET: beta-x86_64-pc-windows-gnu
PATH: C:\msys64\mingw64\bin\;c:\rust\bin;%PATH%
- TARGET: beta-i686-pc-windows-gnu
PATH: C:\msys64\mingw32\bin\;c:\rust\bin;%PATH%
- TARGET: 1.31.0-x86_64-pc-windows-msvc
PATH: C:\msys64\mingw64\bin\;c:\rust\bin;%PATH%
- TARGET: 1.31.0-i686-pc-windows-msvc
PATH: C:\msys64\mingw32\bin\;c:\rust\bin;%PATH%
- TARGET: 1.31.0-x86_64-pc-windows-gnu
PATH: C:\msys64\mingw64\bin\;c:\rust\bin;%PATH%
- TARGET: 1.31.0-i686-pc-windows-gnu
PATH: C:\msys64\mingw32\bin\;c:\rust\bin;%PATH%
COMPRESS: 1
services: mysql
install:
- cmd: >-
appveyor DownloadFile https://static.rust-lang.org/dist/rust-%TARGET%.msi
msiexec /i rust-%TARGET%.msi INSTALLDIR="c:\rust" /qn
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")
$newText = $newText + "`nssl-ca=c:/clone/tests/ca-cert.pem`nssl-cert=c:/clone/tests/server-cert.pem`nssl-key=c:/clone/tests/server-key.pem"
[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