forked from tediousjs/tedious
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
64 lines (56 loc) · 1.3 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
52
53
54
55
56
57
58
59
60
61
62
63
64
language: node_js
sudo: false
node_js:
- "4"
- "6"
- "8"
- "9"
stages:
- test
- lint
- name: release
if: (branch = master) AND (type = push)
services:
- docker
cache:
directories:
- node_modules
before_install:
- 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
jobs:
include:
- stage: lint
node_js: 4
before_install: skip
before_script: skip
script:
- npm run lint
- commitlint-travis
- stage: release
node_js: 8
before_install: skip
before_script: skip
script: npm run semantic-release