dist: trusty

language: android

jdk: oraclejdk8

env:
  global:
    - COVERALLS_REPO_TOKEN=4eYQDtWoBJlDz2QkxoQ2UcnmJFcOB7zkv
  jobs:
    - TEST_SUITE=''
    - TEST_SUITE=pirlo

android:
  components:
    # all the android components used in the zulip-mobile and it's dependencies
    - tools
    - platform-tools
    - build-tools-28.0.3
    - android-29  # corresponds to compileSdkVersion
    - extra-google-m2repository
    - extra-android-m2repository
    - extra-google-android-support

  licenses:
   - 'android-sdk-license-.+'

notifications:
  email: false
  webhooks:
    urls:
      - https://zulip.org/zulipbot/travis
    on_success: always
    on_failure: always

install:
  - nvm install 10
  - node --version
  - npm i yarn -g
  - yarn

  # See the mention of `inotify` in docs/.  If we attempt assembleRelease,
  # then without this line the JS bundle step fails with a baffling ENOSPC
  # error, even though there's tons of free space on the filesystem.
  - echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

script:
  - TERM=dumb tools/test --full ${TEST_SUITE}
  - tools/verify-webview-js

dist: trusty

language: android

jdk: oraclejdk8

env:
  global:
    - COVERALLS_REPO_TOKEN=4eYQDtWoBJlDz2QkxoQ2UcnmJFcOB7zkv
  jobs:
    - TEST_SUITE=''

    # Pirlo suite disabled until we adjust the test script to match
    # some changes in the onboarding flow; see #3762.
    # - TEST_SUITE=pirlo

android:
  components:
    # all the android components used in the zulip-mobile and it's dependencies
    - tools
    - platform-tools
    - build-tools-28.0.3
    - android-29  # corresponds to compileSdkVersion
    - extra-google-m2repository
    - extra-android-m2repository
    - extra-google-android-support

  licenses:
   - 'android-sdk-license-.+'

notifications:
  email: false
  webhooks:
    urls:
      - https://zulip.org/zulipbot/travis
    on_success: always
    on_failure: always

install:
  - nvm install 10
  - node --version
  - npm i yarn -g
  - yarn

  # See the mention of `inotify` in docs/.  If we attempt assembleRelease,
  # then without this line the JS bundle step fails with a baffling ENOSPC
  # error, even though there's tons of free space on the filesystem.
  - echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

script:
  - TERM=dumb tools/test --full ${TEST_SUITE}
  - tools/verify-webview-js

Disable Pirlo suite in CI for now.
tests: Disable Pirlo suite in CI for now.

An upcoming commit will make changes to the onboarding flow.  Our
test script in Pirlo tests the onboarding flow -- an important part
of its job! -- and it fails on that change because the flow no
longer matches what it expects.

In general this is a kind of situation we'll want to figure out a
good way to handle in order to make effective use of Pirlo, because
it's a routine event in the life of a test suite.

For now, though, because we're eager to get this particular change
out without delay, we simply disable the Pirlo suite in CI so that
it doesn't cause failures on unrelated PRs after this change.  Once
it's fixed, we can re-enable it.
