env:
- API_REGEX='Google\.Cloud\.[A-L].*'
- API_REGEX='Google\.Cloud\.[M-Z].*'
# List non-Cloud APIs here
- API_REGEX='Google\.LongRunning'
language: csharp
mono: none
dotnet: 2.2.104
dist: xenial

matrix:
  include:
    - name: "Lint for Python syntax errors and undefined names"
      language: python
      addons: true  # override
      install: pip install flake8
      script: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics

# Install the .NET Core 1.0 runtime as that's what we test against
addons:
  apt:
    sources:
    - sourceline: 'deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main'
      key_url: 'https://packages.microsoft.com/keys/microsoft.asc'
    packages:
    - dotnet-sharedframework-microsoft.netcore.app-1.0.5

script:
  - touch build_timing_log.txt
  - ./build.sh --diff --regex $API_REGEX
  - ./processbuildtiminglog.sh

env:
- API_REGEX='Google\.Cloud\.[A-L].*'
- API_REGEX='Google\.Cloud\.[M-Z].*'
# List non-Cloud APIs here
- API_REGEX='Google\.LongRunning'
language: csharp
mono: none
dotnet: 2.2.104
dist: xenial

matrix:
  include:
    - name: "Lint for Python syntax errors and undefined names"
      language: python
      addons: true  # override
      install: pip install flake8
      script: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics

# Install the .NET Core 1.0 runtime as that's what we test against
addons:
  apt:
    sources:
    - sourceline: 'deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main'
      key_url: 'https://packages.microsoft.com/keys/microsoft.asc'
    packages:
    - dotnet-sharedframework-microsoft.netcore.app-1.0.5

script:
  - python3 tools/listapis.py apis/apis.json > /dev/null || travis_terminate 1
  - touch build_timing_log.txt
  - ./build.sh --diff --regex $API_REGEX
  - ./processbuildtiminglog.sh

Add validation that we haven't broken apis.json
Add validation that we haven't broken apis.json
