Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit c513f17f
authored
Sep 12, 2016
by
Jan Aagaard Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Appveyor setup for v3
1 parent
1a8cb038
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
78 additions
and
10 deletions
.travis.yml
appveyor-setup.ps1
appveyor.yml
.travis.yml
View file @
c513f17
...
...
@@ -18,7 +18,6 @@ env:
-
DIALECT=postgres-native
-
DIALECT=sqlite
-
DIALECT=mariadb
-
DIALECT=mssql
addons
:
postgresql
:
"
9.4"
...
...
@@ -31,15 +30,6 @@ before_script:
script
:
-
"
npm
test"
matrix
:
fast_finish
:
true
include
:
-
node_js
:
"
0.10"
env
:
COVERAGE=true
allow_failures
:
-
node_js
:
"
0.10"
env
:
COVERAGE=true
branches
:
only
:
-
master
...
...
appveyor-setup.ps1
0 → 100644
View file @
c513f17
Set-Service
sqlbrowser -StartupType auto
Start-Service
sqlbrowser
[
reflection.assembly]::LoadWithPartialName
(
"Microsoft.SqlServer.Smo"
)
|
Out-Null
[
reflection.assembly]::LoadWithPartialName
(
"Microsoft.SqlServer.SqlWmiManagement"
)
|
Out-Null
$wmi
=
New-Object
(
'Microsoft.SqlServer.Management.Smo.Wmi.ManagedComputer'
)
$tcp
=
$wmi
.GetSmoObject
(
"ManagedComputer[@Name='
${
env
:computername
}
']/ServerInstance[@Name='SQL2016']/ServerProtocol[@Name='Tcp']"
)
$tcp
.IsEnabled
=
$true
$tcp
.Alter
()
$wmi
=
New-Object
(
'Microsoft.SqlServer.Management.Smo.Wmi.ManagedComputer'
)
$ipall
=
$wmi
.GetSmoObject
(
"ManagedComputer[@Name='
${
env
:computername
}
']/ServerInstance[@Name='SQL2016']/ServerProtocol[@Name='Tcp']/IPAddress[@Name='IPAll']"
)
$port
=
$ipall
.IPAddressProperties.Item
(
"TcpDynamicPorts"
)
.Value
$config
=
@
{
instanceName
=
"SQL2016"
host
=
"localhost"
username
=
"sa"
password
=
"Password12!"
port
=
$port
database
=
"master"
dialectOptions
=
@
{
requestTimeout
=
25000
cryptoCredentialsDetails
=
@
{
ciphers
=
"RC4-MD5"
}
}
pool
=
@
{
max
=
5
idle
=
3000
}
}
$json
=
$config
| ConvertTo-Json -Depth 3
# cannot use Out-File because it outputs a BOM
[
IO.File]::WriteAllLines
((
Join-Path
$pwd
"test
\c
onfig
\m
ssql.json"
)
,
$json
)
appveyor.yml
0 → 100644
View file @
c513f17
version
:
'
{build}'
platform
:
-
x64
services
:
-
mssql2016
shallow_clone
:
true
cache
:
-
node_modules
environment
:
matrix
:
-
{
NODE_VERSION
:
0.12
,
DIALECT
:
mssql
}
-
{
NODE_VERSION
:
0.10
,
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
:
. .\appveyor-setup.ps1
test_script
:
-
npm test
branches
:
only
:
-
master
-
v3
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment