# QI Configuration file, see: https://github.com/amatas/vagrant-gpii-ci
---

env:
  vms:
    windows10:
      cpu: 2                   # number of cpus
      memory: 2048             # amount of RAM memory (in Mb)
      clone: true              # use the linked_clone Vagrant feature
      autostart: true
      # Swap these lines to test with the (very old) Windows 7 VM
#      box: 	 inclusivedesign/windows7-eval-x64-Apps
      box: inclusivedesign/windows10-eval-x64-Apps

stages:                # Stages to perform when 'ci test' command is invoked
  - setup              # Install our system-level dependencies, etc.
  - test               # Run the actual tests

setup_job:
  stage: setup
  script:
    - choco install nodejs-lts -y
    - do.ps1 -c "npm config set bin-links false --global"
    # required for Windows 7 VM
#    - "net use v: \\\\vboxsrv\\vagrant  /yes"
#    - "do.ps1 -c 'net use v: \\\\VBOXSVR\\vagrant /yes'"

test_job:
  stage: test          # name of the stage
  script:              # One line per command to execute
    - "do.ps1 -c 'set HEADLESS=true && v: && npm install && npm test'"
