blob: c0e9c363e104a1b0ad6a47f4dfcfec6f826eb11d [file]
# Created with package:mono_repo v2.3.0
language: dart
# Custom configuration
sudo: required
addons:
chrome: stable
before_install:
- tool/travis_setup.sh
- "export PATH=$PATH:$PWD"
after_failure:
- tool/report_failure.sh
services:
- xvfb
jobs:
include:
- stage: analyzer_and_format
name: "SDK: 2.5.0; PKGS: dwds, example, webdev; TASKS: `dartanalyzer --fatal-warnings .`"
dart: "2.5.0"
os: linux
env: PKGS="dwds example webdev"
script: ./tool/travis.sh dartanalyzer_1
- stage: analyzer_and_format
name: "SDK: dev; PKGS: dwds, example, webdev; TASKS: [`dartfmt -n --set-exit-if-changed .`, `dartanalyzer --fatal-infos --fatal-warnings .`]"
dart: dev
os: linux
env: PKGS="dwds example webdev"
script: ./tool/travis.sh dartfmt dartanalyzer_0
- stage: unit_test
name: "SDK: 2.5.0; PKG: dwds; TASKS: `pub run test`"
dart: "2.5.0"
os: linux
env: PKGS="dwds"
script: ./tool/travis.sh test_0
- stage: unit_test
name: "SDK: stable; PKG: dwds; TASKS: `pub run test`"
dart: stable
os: linux
env: PKGS="dwds"
script: ./tool/travis.sh test_0
- stage: unit_test
name: "SDK: stable; PKG: dwds; TASKS: `pub run test -j 1`"
dart: stable
os: windows
env: PKGS="dwds"
script: ./tool/travis.sh test_0
- stage: unit_test
name: "SDK: 2.5.0; PKG: webdev; TASKS: `pub run test -j 1`"
dart: "2.5.0"
os: linux
env: PKGS="webdev"
script: ./tool/travis.sh test_1
- stage: unit_test
name: "SDK: stable; PKG: webdev; TASKS: `pub run test -j 1`"
dart: stable
os: linux
env: PKGS="webdev"
script: ./tool/travis.sh test_1
- stage: unit_test
name: "SDK: stable; PKG: webdev; TASKS: `pub run test -j 1`"
dart: stable
os: windows
env: PKGS="webdev"
script: ./tool/travis.sh test_1
stages:
- analyzer_and_format
- unit_test
# Only building master means that we don't run two builds for each pull request.
branches:
only:
- master
cache:
directories:
- "$HOME/.pub-cache"
- example/.dart_tool/build
- example/.dart_tool/pub