-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
48 lines (40 loc) · 935 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
language: dart
dart:
- dev
# Build stages: https://docs.travis-ci.com/user/build-stages/.
stages:
- analyze_and_format
- testing
- coverage
- prepub
- deploy
jobs:
include:
- stage: analyze_and_format
name: "Check with dartanalyzer and dartfmt"
script: ./tool/travis/swag.sh
- stage: testing
name: "Unit tests"
script: pub run test
- stage: coverage
name: "Test coverage report"
script: ./tool/travis/cov.sh
- stage: prepub
name: "Prepublish checks"
script: pub publish --dry-run
- stage: deploy
name: "Deploy on pub.dartlang.org"
#if: branch = master
#script: skip
deploy:
provider: script
script: ./tool/travis/pub.sh
on:
tags: true
branch: master
branches:
only: [master, develop]
# Incremental pub cache and builds.
cache:
directories:
- $HOME/.pub-cache