Skip to content

Commit 61bc2ad

Browse files
committed
Customize build steps based on Dart version.
1 parent b7fce84 commit 61bc2ad

File tree

1 file changed

+23
-14
lines changed

1 file changed

+23
-14
lines changed

.travis.yml

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,26 @@
11
language: dart
22

3-
dart:
4-
- 2.3.0
5-
- stable
6-
- dev
3+
jobs:
4+
include:
5+
- dart: "2.4.1"
6+
name: "SDK: 2.4.1"
7+
script:
8+
- pub run dart_dev analyze
9+
- pub run dart_dev test
10+
- dart: stable
11+
name: "SDK: stable"
12+
script:
13+
- pub run dart_dev analyze
14+
- pub run dependency_validator -i pedantic
15+
- pub run dart_dev format --check
16+
- pub run dart_dev test
17+
- pub publish --dry-run
18+
- dart: dev
19+
name: "SDK: dev"
20+
script:
21+
- pub run dart_dev analyze
22+
- pub run dart_dev test
723

8-
sudo: required
9-
addons:
10-
chrome: stable
11-
12-
script:
13-
- pub run dependency_validator -i pedantic
14-
- pub run dart_dev analyze
15-
- pub run dart_dev format --check
16-
- pub run dart_dev test
17-
- pub publish --dry-run
24+
cache:
25+
directories:
26+
- "$HOME/.pub-cache"

0 commit comments

Comments
 (0)