-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from apiaryio/honzajavorek/appveyor
AppVeyor CI
- Loading branch information
Showing
7 changed files
with
64 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,8 @@ cache: | |
before_install: | ||
- "npm -g install npm@latest" | ||
- "curl -Lo travis_after_all.py https://raw.githubusercontent.com/dmakhno/travis_after_all/master/travis_after_all.py" | ||
before_script: # https://github.com/cucumber/cucumber-js/issues/602 | ||
- "if [[ $TRAVIS_NODE_VERSION = '0.10' ]]; then npm install [email protected]; fi" | ||
after_success: # travis_after_all.py is needed due to travis-ci/travis-ci#1548 & travis-ci/travis-ci#929 | ||
- "npm run coveralls" | ||
- "python travis_after_all.py" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
environment: | ||
nodejs_version: "6" | ||
cache: | ||
- "node_modules" | ||
install: | ||
- ps: Install-Product node 6 | ||
- "npm -g install npm@latest" | ||
- "set PATH=%APPDATA%\\npm;%PATH%" | ||
- "npm install" | ||
build: off | ||
test_script: | ||
- "node --version" | ||
- "npm --version" | ||
- "npm test" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
spawn = require('cross-spawn') | ||
|
||
|
||
IS_WINDOWS = process.platform.match(/^win/) | ||
|
||
|
||
# Removing '@cli' behavior from tests due to | ||
# https://github.com/apiaryio/gavel-spec/issues/24 | ||
tags = ['@nodejs', '~@proposal', '~@draft', '~@nodejs-pending'] | ||
tags.push('~@cli') if process.platform.match(/^win/) | ||
|
||
|
||
args = [] | ||
for tag in tags | ||
args.push('-t') | ||
args.push(tag) | ||
|
||
|
||
cucumber = spawn('node_modules/.bin/cucumber-js', args.concat([ | ||
'-r', 'test/cucumber/support/', | ||
'-r', 'test/cucumber/step_definitions/', | ||
'-f', 'pretty', | ||
'--compiler=coffee:coffee-script/register', | ||
'node_modules/gavel-spec/features/', | ||
])) | ||
|
||
cucumber.stdout.on('data', (data) -> process.stdout.write(data)) | ||
cucumber.stderr.on('data', (data) -> process.stderr.write(data)) | ||
|
||
cucumber.on('error', (err) -> | ||
console.error(err) | ||
process.exit(1) | ||
) | ||
|
||
cucumber.on('close', (code) -> process.exit(code)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters