forked from mysqljs/mysql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
58 lines (50 loc) · 1.44 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
environment:
MYSQL_DATABASE: node_mysql
MYSQL_HOST: localhost
MYSQL_USER: root
MYSQL_PASSWORD: Password12!
MYSQL_PATH: C:\Program Files\MySQL\MySQL Server 5.7
MYSQL_PORT: 3306
matrix:
- nodejs_version: "0.8"
- nodejs_version: "0.10"
- nodejs_version: "0.12"
- nodejs_version: "1.8"
- nodejs_version: "2.5"
- nodejs_version: "3.3"
- nodejs_version: "4.9"
- nodejs_version: "5.12"
- nodejs_version: "6.17"
- nodejs_version: "7.10"
- nodejs_version: "8.17"
- nodejs_version: "9.11"
- nodejs_version: "10.21"
- nodejs_version: "11.15"
- nodejs_version: "12.18"
- nodejs_version: "13.13"
- nodejs_version: "14.2"
services:
- mysql
cache:
- node_modules
install:
- ps: >-
try { Install-Product node $env:nodejs_version -ErrorAction Stop }
catch { Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) }
- npm config set shrinkwrap false
- if "%nodejs_version%" equ "0.8" npm config set strict-ssl false
- npm rm --silent --save-dev eslint
- if exist node_modules npm prune
- if exist node_modules npm rebuild
- npm install
build: off
before_test:
- SET PATH=%MYSQL_PATH%\bin;%PATH%
- node tool/wait-mysql.js %MYSQL_PORT% %MYSQL_HOST%
- mysqladmin --host=%MYSQL_HOST% --user=%MYSQL_USER% --password=%MYSQL_PASSWORD% create %MYSQL_DATABASE%
test_script:
- mysql --version
- node --version
- npm --version
- npm test
version: "{build}"