forked from brianmario/mysql2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
45 lines (45 loc) · 1.25 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
---
version: "{build}"
clone_depth: 10
install:
- SET PATH=C:\MinGW\msys\1.0\bin;%PATH%
- SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
- ruby --version
- gem --version
- bundler --version
- bundle install --without benchmarks --path vendor/bundle
- IF DEFINED MINGW_PACKAGE_PREFIX (ridk exec pacman -S --noconfirm --needed %MINGW_PACKAGE_PREFIX%-libmariadbclient)
build_script:
- bundle exec rake compile
test_script:
- '"C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql" --version'
- >
"C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql" -u root -p"Password12!" -e "
CREATE DATABASE IF NOT EXISTS test;
CREATE USER '%USERNAME%'@'localhost';
SET PASSWORD = PASSWORD('');
FLUSH PRIVILEGES;
"
- bundle exec rake spec
on_failure:
- find tmp -name "*.log" | xargs cat
environment:
matrix:
- ruby_version: "24-x64"
MINGW_PACKAGE_PREFIX: "mingw-w64-x86_64"
- ruby_version: "24"
MINGW_PACKAGE_PREFIX: "mingw-w64-i686"
- ruby_version: "23-x64"
- ruby_version: "23"
- ruby_version: "22-x64"
- ruby_version: "22"
- ruby_version: "21-x64"
- ruby_version: "21"
- ruby_version: "200-x64"
- ruby_version: "200"
cache:
- vendor
services:
- mysql
hosts:
mysql2gem.example.com: 127.0.0.1