Skip to content

Commit

Permalink
update travis
Browse files Browse the repository at this point in the history
  • Loading branch information
y9c committed Apr 7, 2020
1 parent 59e998f commit 117a074
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,19 @@
language: dart

dart:
- dev

# Do not remove without verifying w/ Travis.
sudo: required
sudo: false

# Build stages: https://docs.travis-ci.com/user/build-stages/.
stages:
- presubmit
script: dart --version

# 1. Run dartfmt, dartanalyzer.
jobs:
include:
# presubmit: Check things that should fail fast(er).
- stage: presubmit
env: SHARD=dartfmt
script: dartfmt -n --set-exit-if-changed . || EXIT_CODE=$?
env:
- LINTER_BOT=main
- LINTER_BOT=release

# Only building master means that we don't run two builds for each pull request.
branches:
only: [master]

# Incremental pub cache and builds.
cache:
directories:
- $HOME/.pub-cache

0 comments on commit 117a074

Please sign in to comment.