# scripts that are called at very beginning, before repo cloning
init:
  - git config --global core.autocrlf input

# environment variables
environment:
  SNYK_TOKEN:
    secure: Bq1MJN1u1Vjv2RWMDHsFYiNHe1n36Kn/G1gxB9l92TckT1m58Is6VjEV2EK+L/iC

# build cache to preserve files/folders between builds
cache:
  - C:\Users\appveyor\AppData\Roaming\npm\node_modules -> package.json  # global npm modules
  - C:\Users\appveyor\AppData\Roaming\npm-cache -> package.json         # npm cache
  - node_modules -> package.json                                        # local npm modules

# scripts that run after cloning repository
install:
  # Install node 7
  - ps: Install-Product node 7
  # Install npm 4
  - npm install -g npm@4
  # install modules
  - npm install

# to run your custom scripts instead of automatic tests
test_script:
  # Output useful info for debugging.
  - node --version
  - npm --version
  # run tests
  - npm test:cmd

# Don't build with msbuild.
build: off

# scripts that are called at very beginning, before repo cloning
init:
  - git config --global core.autocrlf input

# environment variables
environment:
  SNYK_TOKEN:
    secure: Bq1MJN1u1Vjv2RWMDHsFYiNHe1n36Kn/G1gxB9l92TckT1m58Is6VjEV2EK+L/iC

# build cache to preserve files/folders between builds
cache:
  - C:\Users\appveyor\AppData\Roaming\npm\node_modules -> package.json  # global npm modules
  - C:\Users\appveyor\AppData\Roaming\npm-cache -> package.json         # npm cache
  - node_modules -> package.json                                        # local npm modules

# scripts that run after cloning repository
install:
  # Install node 7
  - ps: Install-Product node 7
  # Install npm 4
  - npm install -g npm@4
  # install modules
  - npm install

# to run your custom scripts instead of automatic tests
test_script:
  # Output useful info for debugging.
  - node --version
  - npm --version
  # run tests
  - npm run test:cmd

# Don't build with msbuild.
build: off

Refactor cross-platform environment variables in npm scripts
Refactor cross-platform environment variables in npm scripts
