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