不要怂,就是干,撸起袖子干!

appveyor.yml 992 Bytes
version: '{build}'

platform:
  - x64

services:
  - mssql2016

shallow_clone: true

cache:
  - node_modules

environment:
  global:
    COVERALLS_REPO_TOKEN: 751SiA6QhY5EH4P2ygq7JFWulqiD2ETXO
    COVERALLS_PARALLEL: true
  matrix:
    - {NODE_VERSION: 4,   DIALECT: mssql}
    - {NODE_VERSION: 6.3, DIALECT: mssql, COVERAGE: true}

install:
  - ps: Install-Product node $env:NODE_VERSION x64
  - ps: |
      $pkg = ConvertFrom-Json (Get-Content -Raw package.json)
      $pkg.devDependencies.PSObject.Properties.Remove('sqlite3')
      $pkg.devDependencies.PSObject.Properties.Remove('pg-native')
      ConvertTo-Json $pkg | Out-File package.json -Encoding UTF8
  - npm install

build: off

before_test:
  - ps: . .\appveyor-setup.ps1

test_script:
  - 'IF "%COVERAGE%" == "true" (npm run coveralls) ELSE (npm test)'

notifications:
  - provider: Webhook
    url: https://coveralls.io/webhook?repo_token=751SiA6QhY5EH4P2ygq7JFWulqiD2ETXO
    on_build_success: true
    on_build_failure: true