# AppVeyor configuration file for broadbean

branches:
  only:
    - master
    - version1.0

environment:
  global:
    CONDA_INSTALL_LOCATION: "C:\\Miniconda36-x64"

# Do not email the poor devs!
notifications:
  - provider: Email
    settings:
      on_build_success: false
      on_build_failure: false
      on_build_status_changed: false

# Do not use MSBuild
build: false

# Init scripts

# Install scripts
install:
  - set PATH=%CONDA_INSTALL_LOCATION%;%CONDA_INSTALL_LOCATION%\scripts;%PATH%;
  - conda config --set always_yes true  # else AppVeyor will hang forever waiting for user ([y]/n)
  - conda update --all
  - conda info -a
  - conda create -q -n test-environment python=%PYTHON_VERSION% pip setuptools
  - activate test-environment
  - python -m pip install --upgrade pip
  - pip install -r test_requirements.txt
  - pip install .

# Test scripts
test_script:
  - mypy broadbean --ignore-missing-imports
  - cd tests
  - pytest
  - cd ../docs
  - execute_notebooks.cmd

# AppVeyor configuration file for broadbean

branches:
  only:
    - master
    - version1.0

environment:
  global:
    CONDA_INSTALL_LOCATION: "C:\\Miniconda36-x64"

# Do not use MSBuild
build: false

# Init scripts

# Install scripts
install:
  - set PATH=%CONDA_INSTALL_LOCATION%;%CONDA_INSTALL_LOCATION%\scripts;%PATH%;
  - conda config --set always_yes true  # else AppVeyor will hang forever waiting for user ([y]/n)
  - conda update --all
  - conda info -a
  - conda create -q -n test-environment python=%PYTHON_VERSION% pip setuptools
  - activate test-environment
  - python -m pip install --upgrade pip
  - pip install -r test_requirements.txt
  - pip install .

# Test scripts
test_script:
  - mypy broadbean --ignore-missing-imports
  - cd tests
  - pytest
  - cd ../docs
  - execute_notebooks.cmd

Move email notifications to AppVeyor settings
Move email notifications to AppVeyor settings

So as to not expose email addresses in public yml files
