forked from sequelize/sequelize-auto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
54 lines (42 loc) · 1.26 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
version: 1.0.{build}
image: Visual Studio 2013
platform:
- x64
services:
- mssql2012sp1
- mysql
- postgresql
shallow_clone: true
cache:
- node_modules
environment:
global:
PGUSER: postgres
PGPASSWORD: Password12!
MYSQL_PWD: Password12!
DIALECT: mssql
matrix:
- {NODE_VERSION: 4, DIALECT: mssql}
- {NODE_VERSION: 6, DIALECT: mssql}
install:
- ps: Install-Product node $env:NODE_VERSION x64
- ps: |
$pkg = ConvertFrom-Json (Get-Content -Raw package.json)
$pkg.devDependencies.PSObject.Properties.Remove('sqlite3')
$pkg.devDependencies.PSObject.Properties.Remove('pg-native')
ConvertTo-Json $pkg | Out-File package.json -Encoding UTF8
- npm install
build: off
before_test:
- ps: sqlcmd -S "(local)" -U "sa" -P "Password12!" -d "master" -Q "CREATE DATABASE [sequelize_auto_test]; ALTER DATABASE [sequelize_auto_test] SET READ_COMMITTED_SNAPSHOT ON;"
# setup pg databases
- SET PATH=C:\Program Files\PostgreSQL\9.5\bin;%PATH%
- createdb sequelize_auto_test
# setup mysql databases
- SET PATH=C:\Program Files\MySQL\MySQL Server 5.7\bin;C:\Program Files\MySQL\MySQL Server 5.7\lib;%PATH%
- mysql -e "create database sequelize_auto_test;" -uroot
test_script:
- npm test
branches:
only:
- master