forked from angulardart/angular_components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (49 loc) · 2.21 KB
/
.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
49
50
51
52
53
# Created with package:mono_repo v2.1.0
language: dart
jobs:
include:
- stage: analyze_and_format
name: "SDK: 2.5.0-dev.1.0; PKGS: angular_components, angular_gallery, angular_gallery_section; TASKS: `dartanalyzer --fatal-warnings .`"
dart: "2.5.0-dev.1.0"
env: PKGS="angular_components angular_gallery angular_gallery_section"
script: ./tool/travis.sh dartanalyzer
- stage: analyze_and_format
name: "SDK: dev; PKGS: angular_components, angular_gallery, angular_gallery_section; TASKS: [`dartfmt -n --set-exit-if-changed .`, `dartanalyzer --fatal-warnings .`]"
dart: dev
env: PKGS="angular_components angular_gallery angular_gallery_section"
script: ./tool/travis.sh dartfmt dartanalyzer
- stage: unit_test
name: "SDK: 2.5.0-dev.1.0; PKG: angular_components; TASKS: [`./tool/travis/install_protoc.sh`, `pub run test --run-skipped`]"
dart: "2.5.0-dev.1.0"
env: PKGS="angular_components"
script: ./tool/travis.sh command_0 test
- stage: unit_test
name: "SDK: dev; PKG: angular_components; TASKS: [`./tool/travis/install_protoc.sh`, `pub run test --run-skipped`]"
dart: dev
env: PKGS="angular_components"
script: ./tool/travis.sh command_0 test
- stage: build
name: "SDK: 2.5.0-dev.1.0; PKG: examples/angular_components_example; TASKS: [`pub run build_runner build web`, `pub run build_runner build web --release`]"
dart: "2.5.0-dev.1.0"
env: PKGS="examples/angular_components_example"
script: ./tool/travis.sh command_1 command_2
- stage: build
name: "SDK: dev; PKG: examples/angular_components_example; TASKS: [`pub run build_runner build web`, `pub run build_runner build web --release`]"
dart: dev
env: PKGS="examples/angular_components_example"
script: ./tool/travis.sh command_1 command_2
stages:
- analyze_and_format
- unit_test
- build
# Only building master means that we don't run two builds for each pull request.
branches:
only:
- master
cache:
directories:
- "$HOME/.pub-cache"
- angular_components/.dart_tool/build
- angular_gallery/.dart_tool/build
- angular_gallery_section/.dart_tool/build
- examples/angular_components_example/.dart_tool/build