before_script:
  - echo "Starting tests..."

test_linux:
  script:
    - apt-get install -y nodejs nodejs-legacy npm default-jre
    - node --version
    - npm --version
    - java -version # Required for selenium server
    - npm install
    - ./scripts/setup_linux.sh
    - xvfb-run ./scripts/test.sh
  tags:
    - linux

#test_windows:
#  script:
#    - git config --global http.sslVerify false
#    - call npm install # https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/issues/1025
#    - bash scripts/setup_windows.sh
#    - bash scripts/test.sh
#  tags:
#    - windows

before_script:
  - echo "Starting tests..."

test_linux:
  script:
    - apt-get install -y nodejs nodejs-legacy npm default-jre
    - node --version
    - npm --version
    - java -version # Required for selenium server
    - npm install
    - ./scripts/setup_linux.sh
    - xvfb-run ./scripts/test.sh
  tags:
    - linux

test_windows:
  script:
    - git config --global http.sslVerify false
    - call npm install # https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/issues/1025
    - bash scripts/setup_windows.sh
    - bash scripts/test.sh
  tags:
    - windows

Enable CI tests on windows
Enable CI tests on windows
