forked from sequelize/sequelize-auto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
68 lines (56 loc) · 1.6 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
62
63
64
65
66
67
68
version: 1.0.{build}
image: Visual Studio 2015
platform:
- x64
services:
- mssql2016
- mysql
- postgresql96
shallow_clone: true
cache:
- node_modules
environment:
MSSQL_NAME: sequelize_auto_test
MSSQL_USER: sa
MSSQL_PASS: Password12!
MSSQL_HOST: localhost
MSSQL_PORT: 1433
MYSQL_NAME: sequelize_auto_test
MYSQL_USER: root
MYSQL_PASS: Password12!
MYSQL_HOST: localhost
MYSQL_PORT: 3306
MYSQL_PWD: Password12!
POSTGRES_NAME: sequelize_auto_test
POSTGRES_USER: postgres
POSTGRES_PASS: Password12!
POSTGRES_HOST: localhost
POSTGRES_PORT: 5432
PGUSER: postgres
PGPASSWORD: Password12!
matrix:
- {NODE_VERSION: 10, DIALECT: mssql}
install:
- ps: Install-Product node $env:NODE_VERSION x64
- npm install -g [email protected]
- 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_script:
- npm run build
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;"
- '"C:\\Program Files\\PostgreSQL\\9.6\\bin\\createdb" sequelize_auto_test'
- '"C:\\Program Files\\MySQL\\MySQL Server 5.7\\bin\\mysql" -e "create database sequelize_auto_test;" --user=root'
test_script:
- node --version
- npm --version
- npm run test-mssql
- npm run test-mysql
- npm run test-postgres
branches:
only:
- master