misskey/appveyor.yml

49 lines
1.1 KiB
YAML
Raw Normal View History

2016-12-30 12:35:12 +00:00
# appveyor file
# http://www.appveyor.com/docs/appveyor-yml
environment:
matrix:
- nodejs_version: 7.3.0
2017-01-18 05:52:08 +00:00
services:
- mongodb
2016-12-30 17:24:03 +00:00
build: off
2016-12-30 12:35:12 +00: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 17:28:21 +00:00
- npm install
2016-12-30 17:27:33 +00:00
2016-12-30 12:35:12 +00:00
init:
# git clone の際の改行を変換しないようにします
- git config --global core.autocrlf false
2017-01-18 05:50:44 +00:00
before_test:
2017-01-18 06:16:58 +00:00
# Redisをインストール
2017-01-18 06:20:39 +00:00
- nuget install redis-64 -excludeversion
- redis-64\tools\redis-server.exe --service-install
- redis-64\tools\redis-server.exe --service-start
2017-01-18 06:16:58 +00:00
2017-01-18 06:15:22 +00:00
- mkdir .\.config
- copy .\.ci-files\default.yml .\.config
- copy .\.ci-files\test.yml .\.config
- npm run build
2017-01-18 05:50:44 +00:00
2016-12-30 12:35:12 +00:00
test_script:
- npm test
2017-01-18 05:57:45 +00:00
cache:
- node_modules