forked from sidorares/node-mysql2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
41 lines (33 loc) · 805 Bytes
/
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
environment:
MYSQL_DATABASE: test
MYSQL_HOST: localhost
MYSQL_USER: root
MYSQL_PASSWORD: Password12!
MYSQL_PATH: C:\Program Files\MySQL\MySQL Server 5.7
LINT: 0
matrix:
- nodejs_version: "6.10"
- nodejs_version: "7.10"
- nodejs_version: "8.1"
LINT: 1
services:
- mysql
cache:
- node_modules
- "%LOCALAPPDATA%/Yarn"
install:
- ps: Install-Product node $env:nodejs_version
- yarn install
build: off
before_test:
- SET PATH=%MYSQL_PATH%\bin;%PATH%
- mysqladmin --host=%MYSQL_HOST% --user=%MYSQL_USER% --password=%MYSQL_PASSWORD% create %MYSQL_DATABASE%
test_script:
- mysql --version
- node --version
- yarn --version
- if "%LINT%"=="1" (yarn run lint)
- node test/run.js
- SET MYSQL_USE_COMPRESSION=1
- node test/run.js
version: "{build}"