forked from tediousjs/tedious
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
51 lines (42 loc) · 1.02 KB
/
.travis.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
language: node_js
sudo: false
node_js:
- "4"
- "6"
- "7"
branches:
except:
- /^v\d+\.\d+\.\d+$/
services:
- docker
cache:
directories:
- node_modules
before_install:
- npm install -g npm
- docker pull microsoft/mssql-server-linux
- docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=yourStrong(!)Password' -p 1433:1433 -d microsoft/mssql-server-linux
- mkdir ~/.tedious
- >
echo '{
"config": {
"server": "localhost",
"userName": "sa",
"password": "yourStrong(!)Password",
"options": {
"port": 1433,
"database": "master"
}
}
}' > ~/.tedious/test-connection.json
before_script:
- npm prune
script:
- npm run test
- TEDIOUS_TDS_VERSION=7_4 npm run test-integration
- TEDIOUS_TDS_VERSION=7_3_B npm run test-integration
- TEDIOUS_TDS_VERSION=7_3_A npm run test-integration
- TEDIOUS_TDS_VERSION=7_2 npm run test-integration
- TEDIOUS_TDS_VERSION=7_1 npm run test-integration
after_success:
- npm run semantic-release