File tree 4 files changed +40
-5
lines changed
4 files changed +40
-5
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ before_script:
12
12
13
13
script :
14
14
- " test $TRAVIS_NODE_VERSION != '0.6' || npm test"
15
- - " test $TRAVIS_NODE_VERSION = '0.6' || npm run-script test-travis "
15
+ - " test $TRAVIS_NODE_VERSION = '0.6' || npm run-script test-ci "
16
16
17
17
after_script :
18
18
- " test $TRAVIS_NODE_VERSION = '0.6' || npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"
Original file line number Diff line number Diff line change 3
3
[ ![ NPM Version] [ npm-image ]] [ npm-url ]
4
4
[ ![ NPM Downloads] [ downloads-image ]] [ downloads-url ]
5
5
[ ![ Node.js Version] [ node-version-image ]] [ node-version-url ]
6
- [ ![ Build Status] [ travis-image ]] [ travis-url ]
6
+ [ ![ Linux Build] [ travis-image ]] [ travis-url ]
7
+ [ ![ Windows Build] [ appveyor-image ]] [ appveyor-url ]
7
8
[ ![ Test Coverage] [ coveralls-image ]] [ coveralls-url ]
8
9
9
10
## Table of Contents
@@ -1255,8 +1256,10 @@ $ MYSQL_HOST=localhost MYSQL_PORT=3306 MYSQL_DATABASE=node_mysql_test MYSQL_USER
1255
1256
[ npm-url ] : https://npmjs.org/package/mysql
1256
1257
[ node-version-image ] : http://img.shields.io/node/v/mysql.svg
1257
1258
[ node-version-url ] : http://nodejs.org/download/
1258
- [ travis-image ] : https://img.shields.io/travis/felixge/node-mysql/master.svg
1259
+ [ travis-image ] : https://img.shields.io/travis/felixge/node-mysql/master.svg?label=linux
1259
1260
[ travis-url ] : https://travis-ci.org/felixge/node-mysql
1261
+ [ appveyor-image ] : https://img.shields.io/appveyor/ci/dougwilson/node-mysql/master.svg?label=windows
1262
+ [ appveyor-url ] : https://ci.appveyor.com/project/dougwilson/node-mysql
1260
1263
[ coveralls-image ] : https://img.shields.io/coveralls/felixge/node-mysql/master.svg
1261
1264
[ coveralls-url ] : https://coveralls.io/r/felixge/node-mysql?branch=master
1262
1265
[ downloads-image ] : https://img.shields.io/npm/dm/mysql.svg
Original file line number Diff line number Diff line change
1
+ environment :
2
+ MYSQL_DATABASE : node_mysql
3
+ MYSQL_HOST : localhost
4
+ MYSQL_USER : root
5
+ MYSQL_PASSWORD : Password12!
6
+ MYSQL_PATH : C:\Program Files\MySQL\MySQL Server 5.6
7
+
8
+ matrix :
9
+ - nodejs_version : " 0.8"
10
+ - nodejs_version : " 0.10"
11
+ - nodejs_version : " 0.12"
12
+
13
+ services :
14
+ - mysql
15
+
16
+ install :
17
+ - ps : Install-Product node $env:nodejs_version
18
+ - npm install
19
+
20
+ build : off
21
+
22
+ before_test :
23
+ - SET PATH=%MYSQL_PATH%\bin;%PATH%
24
+ - mysqladmin --host=%MYSQL_HOST% --user=%MYSQL_USER% --password=%MYSQL_PASSWORD% create %MYSQL_DATABASE%
25
+
26
+ test_script :
27
+ - mysql --version
28
+ - node --version
29
+ - npm --version
30
+ - npm run test-ci
31
+
32
+ version : " {build}"
Original file line number Diff line number Diff line change 28
28
},
29
29
"scripts" : {
30
30
"test" : " node test/run.js" ,
31
- "test-cov " : " node test/run-cov.js" ,
32
- "test-travis " : " node test/run-cov.js lcovonly "
31
+ "test-ci " : " node test/run-cov.js lcovonly " ,
32
+ "test-cov " : " node test/run-cov.js"
33
33
}
34
34
}
You can’t perform that action at this time.
0 commit comments