trigger: none
pr: none

schedules:
- cron: "0 0 * * *"
  displayName: Nightly build
  branches:
    include:
    - master
    - stable

variables:
  BASE_BRANCH: "master"
  CACHE_S3_PREFIX: "stack-nightly"
  CACHE_S3_VERSION: "v0.1.4"
  S3_BUCKET: "fpco-public-cache"
  AWS_REGION: "us-east-1"

jobs:
- template: ./.azure/azure-nightly-template-osx.yml
  parameters:
    name: macOS
    vmImage: macOS-10.14
    os: osx

- template: ./.azure/azure-nightly-template-linux.yml
  parameters:
    name: Linux
    vmImage: ubuntu-16.04
    os: linux

- template: ./.azure/azure-nightly-template-windows.yml
  parameters:
   name: Windows
   vmImage: vs2017-win2016
   os: windows

trigger: none
pr:
- master
- stable

schedules:
- cron: "0 0 * * *"
  displayName: Nightly build
  branches:
    include:
    - master
    - stable

variables:
  BASE_BRANCH: "master"
  CACHE_S3_PREFIX: "stack-nightly"
  CACHE_S3_VERSION: "v0.1.4"
  S3_BUCKET: "fpco-public-cache"
  AWS_REGION: "us-east-1"

jobs:
- template: ./.azure/azure-nightly-template-osx.yml
  parameters:
    name: macOS
    vmImage: macOS-10.14
    os: osx

- template: ./.azure/azure-nightly-template-linux.yml
  parameters:
    name: Linux
    vmImage: ubuntu-16.04
    os: linux

- template: ./.azure/azure-nightly-template-windows.yml
  parameters:
   name: Windows
   vmImage: vs2017-win2016
   os: windows

Enable nightly build on pr
Enable nightly build on pr
