Skip to content

Commit 6f787da

Browse files
committed
build: add AppVeyor
1 parent a2bd0ba commit 6f787da

File tree

3 files changed

+34
-3
lines changed

3 files changed

+34
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ before_script:
1212

1313
script:
1414
- "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"
1616

1717
after_script:
1818
- "test $TRAVIS_NODE_VERSION = '0.6' || npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"

appveyor.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
environment:
2+
MYSQL_DATABASE: node_mysql
3+
MYSQL_HOST: localhost
4+
MYSQL_USER: root
5+
MYSQL_PASSWORD: Password12!
6+
7+
matrix:
8+
- nodejs_version: "0.8"
9+
- nodejs_version: "0.10"
10+
- nodejs_version: "0.12"
11+
12+
install:
13+
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version)
14+
- npm install
15+
16+
before_test:
17+
- "SET PATH=C:\Program Files\MySQL\MySQL Server 5.6\bin;%PATH%"
18+
- mysqladmin --host=%MYSQL_HOST% --user=%MYSQL_USER% --password=%MYSQL_PASSWORD% create %MYSQL_DATABASE%
19+
20+
build: off
21+
22+
services:
23+
- mysql
24+
25+
test_script:
26+
- mysql --version
27+
- node --version
28+
- npm --version
29+
- npm run test-ci
30+
31+
version: "{build}"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"scripts": {
3030
"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"
3333
}
3434
}

0 commit comments

Comments
 (0)