forked from tediousjs/tedious
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
82 lines (73 loc) · 1.77 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
language: node_js
sudo: false
node_js:
- "6"
- "8"
- "9"
- "10"
stages:
- test
- name: azure
if: type = push
- lint
- name: release
if: (branch = master) AND (type = push)
services:
- docker
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: 6
before_install: skip
before_script: skip
script:
- npm run lint
- commitlint-travis
- stage: azure
node_js: 8
before_install:
- mkdir ~/.tedious
- >
echo '{
"config": {
"server": "'${AZURE_SERVER}'",
"userName": "'${AZURE_USERNAME}'",
"password": "'${AZURE_PASS}'",
"options": {
"database": "test",
"encrypt": true
}
}
}' > ~/.tedious/test-connection.json
before_script: skip
script: npm run test-integration
- stage: release
node_js: 8
before_install: skip
before_script: skip
script: npm run semantic-release