summaryrefslogtreecommitdiff
path: root/appveyor.yml
blob: 477d5c15e021be78ca35ed7fb553eaddcac56bdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# appveyor file
# http://www.appveyor.com/docs/appveyor-yml

environment:
  matrix:
    - nodejs_version: 7.3.0

services:
  - mongodb

build: off

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

  - npm install

init:
  # git clone の際の改行を変換しないようにします
  - git config --global core.autocrlf false

before_test:
  # Redisをインストール
  - nuget restore .\Hangfire.Redis.StackExchange.sln
  - packages\Redis-32.2.6.12.1\tools\redis-server.exe --service-install
  - packages\Redis-32.2.6.12.1\tools\redis-server.exe --service-start
  - '@ECHO Redis Started'

  - mkdir .\.config
  - copy .\.ci-files\default.yml .\.config
  - copy .\.ci-files\test.yml .\.config
  - npm run build

test_script:
  - npm test

cache:
  - node_modules