2016-05-30 23:20:34 +00:00
|
|
|
---
|
|
|
|
# http://www.appveyor.com/docs/appveyor-yml
|
|
|
|
|
|
|
|
# Build version format
|
|
|
|
version: "{build}"
|
|
|
|
|
|
|
|
# Do not build on tags (GitHub only)
|
|
|
|
skip_tags: true
|
|
|
|
|
2017-04-22 13:04:18 +00:00
|
|
|
# Do not build feature branch with open pull requests
|
|
|
|
skip_branch_with_pr: true
|
|
|
|
|
2016-05-30 23:20:34 +00:00
|
|
|
environment:
|
2017-11-22 05:55:40 +00:00
|
|
|
nodejs_version: '6'
|
2016-05-30 23:20:34 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
- ps: Install-Product node $env:nodejs_version
|
2018-01-19 10:50:08 +00:00
|
|
|
- yarn --frozen-lockfile
|
|
|
|
- yarn build
|
|
|
|
- yarn add mocha-appveyor-reporter
|
2016-06-07 14:41:24 +00:00
|
|
|
- echo --reporter mocha-appveyor-reporter >> test/mocha.opts
|
2016-05-30 23:20:34 +00:00
|
|
|
|
|
|
|
test_script:
|
|
|
|
- node --version
|
2018-01-19 10:50:08 +00:00
|
|
|
- yarn --version
|
|
|
|
- yarn test
|
2016-05-30 23:20:34 +00:00
|
|
|
|
2016-11-22 03:02:56 +00:00
|
|
|
# cache npm modules
|
|
|
|
cache:
|
2018-01-19 10:50:08 +00:00
|
|
|
- "%LOCALAPPDATA%\\Yarn"
|
2016-11-22 03:02:56 +00:00
|
|
|
|
2016-05-30 23:20:34 +00:00
|
|
|
# Don't actually build
|
|
|
|
build: off
|