2016-12-30 21:35:12 +09:00
|
|
|
# appveyor file
|
|
|
|
# http://www.appveyor.com/docs/appveyor-yml
|
|
|
|
|
|
|
|
environment:
|
|
|
|
matrix:
|
|
|
|
- nodejs_version: 7.3.0
|
|
|
|
|
2017-01-18 14:52:08 +09:00
|
|
|
services:
|
|
|
|
- mongodb
|
|
|
|
|
2016-12-31 02:24:03 +09:00
|
|
|
build: off
|
|
|
|
|
2016-12-30 21:35:12 +09: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-31 02:28:21 +09:00
|
|
|
- npm install
|
2016-12-31 02:27:33 +09:00
|
|
|
|
2016-12-30 21:35:12 +09:00
|
|
|
init:
|
|
|
|
# git clone の際の改行を変換しないようにします
|
|
|
|
- git config --global core.autocrlf false
|
|
|
|
|
2017-01-18 14:50:44 +09:00
|
|
|
before_test:
|
2017-01-18 14:59:28 +09:00
|
|
|
- "mkdir -p ./.config"
|
|
|
|
- "cp ./.ci-files/default.yml ./.config"
|
|
|
|
- "cp ./.ci-files/test.yml ./.config"
|
2017-01-18 14:50:44 +09:00
|
|
|
- "npm run build"
|
|
|
|
|
2016-12-30 21:35:12 +09:00
|
|
|
test_script:
|
|
|
|
- npm test
|
2017-01-18 14:57:45 +09:00
|
|
|
|
|
|
|
cache:
|
|
|
|
- node_modules
|