2016-12-30 06:35:12 -06:00
|
|
|
# appveyor file
|
|
|
|
# http://www.appveyor.com/docs/appveyor-yml
|
|
|
|
|
|
|
|
environment:
|
|
|
|
matrix:
|
|
|
|
- nodejs_version: 7.3.0
|
|
|
|
|
2017-01-17 23:52:08 -06:00
|
|
|
services:
|
|
|
|
- mongodb
|
|
|
|
|
2016-12-30 11:24:03 -06:00
|
|
|
build: off
|
|
|
|
|
2016-12-30 06:35:12 -06:00
|
|
|
install:
|
|
|
|
# Update Node.js
|
|
|
|
# 標準で入っている Node.js を更新します (2014/11/13 時点では、v0.10.32 が標準)
|
|
|
|
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version)
|
|
|
|
- node --version
|
|
|
|
|
|
|
|
# Update NPM
|
|
|
|
- npm install -g npm
|
|
|
|
- npm --version
|
|
|
|
|
|
|
|
# Update node-gyp
|
|
|
|
# 必須! node-gyp のバージョンを上げないと、ネイティブモジュールのコンパイルに失敗します
|
|
|
|
- npm install -g node-gyp
|
|
|
|
|
2016-12-30 11:28:21 -06:00
|
|
|
- npm install
|
2016-12-30 11:27:33 -06:00
|
|
|
|
2016-12-30 06:35:12 -06:00
|
|
|
init:
|
|
|
|
# git clone の際の改行を変換しないようにします
|
|
|
|
- git config --global core.autocrlf false
|
|
|
|
|
2017-01-17 23:50:44 -06:00
|
|
|
before_test:
|
2017-01-17 23:59:28 -06:00
|
|
|
- "mkdir -p ./.config"
|
|
|
|
- "cp ./.ci-files/default.yml ./.config"
|
|
|
|
- "cp ./.ci-files/test.yml ./.config"
|
2017-01-17 23:50:44 -06:00
|
|
|
- "npm run build"
|
|
|
|
|
2016-12-30 06:35:12 -06:00
|
|
|
test_script:
|
|
|
|
- npm test
|
2017-01-17 23:57:45 -06:00
|
|
|
|
|
|
|
cache:
|
|
|
|
- node_modules
|