Skip to content

build: add AppVeyor #997

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 16, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ before_script:

script:
- "test $TRAVIS_NODE_VERSION != '0.6' || npm test"
- "test $TRAVIS_NODE_VERSION = '0.6' || npm run-script test-travis"
- "test $TRAVIS_NODE_VERSION = '0.6' || npm run-script test-ci"

after_script:
- "test $TRAVIS_NODE_VERSION = '0.6' || npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"
Expand Down
31 changes: 31 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
environment:
MYSQL_DATABASE: node_mysql
MYSQL_HOST: localhost
MYSQL_USER: root
MYSQL_PASSWORD: Password12!

matrix:
- nodejs_version: "0.8"
- nodejs_version: "0.10"
- nodejs_version: "0.12"

install:
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version)
- npm install

before_test:
- "SET PATH=C:\Program Files\MySQL\MySQL Server 5.6\bin;%PATH%"
- mysqladmin --host=%MYSQL_HOST% --user=%MYSQL_USER% --password=%MYSQL_PASSWORD% create %MYSQL_DATABASE%

build: off

services:
- mysql

test_script:
- mysql --version
- node --version
- npm --version
- npm run test-ci

version: "{build}"
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"scripts": {
"test": "node test/run.js",
"test-cov": "node test/run-cov.js",
"test-travis": "node test/run-cov.js lcovonly"
"test-ci": "node test/run-cov.js lcovonly",
"test-cov": "node test/run-cov.js"
}
}