forked from google/protobuf.dart
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
74 lines (69 loc) · 2.73 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Created with package:mono_repo v2.1.0
language: dart
# Custom configuration
before_install:
- "wget -O protoc.zip https://github.com/protocolbuffers/protobuf/releases/download/v3.6.1/protoc-3.6.1-linux-x86_64.zip"
- "unzip -d protoc protoc.zip"
- "export PATH=$PWD/protoc/bin:$PATH"
- echo $PATH
- "echo \"dependency_overrides: {protobuf: {path: ../protobuf}}\" >> protoc_plugin/pubspec.yaml"
os:
- linux
- osx
- windows
jobs:
include:
- stage: format_analyzer_tests
name: "SDK: dev; PKGS: api_benchmark, query_benchmark; TASKS: [`./compile_protos.sh`, `dartfmt -n --set-exit-if-changed .`, `dartanalyzer --fatal-warnings .`]"
dart: dev
env: PKGS="api_benchmark query_benchmark"
script: ./tool/travis.sh command_0 dartfmt dartanalyzer_0
- stage: format_analyzer_tests
name: "SDK: 2.0.0; PKG: protobuf; TASKS: `dartanalyzer --fatal-warnings .`"
dart: "2.0.0"
env: PKGS="protobuf"
script: ./tool/travis.sh dartanalyzer_0
- stage: format_analyzer_tests
name: "SDK: dev; PKG: protobuf; TASKS: [`dartanalyzer --fatal-infos --fatal-warnings .`, `dartfmt -n --set-exit-if-changed .`]"
dart: dev
env: PKGS="protobuf"
script: ./tool/travis.sh dartanalyzer_1 dartfmt
- stage: format_analyzer_tests
name: "SDK: 2.0.0; PKG: protobuf; TASKS: `pub run test`"
dart: "2.0.0"
env: PKGS="protobuf"
script: ./tool/travis.sh test
- stage: format_analyzer_tests
name: "SDK: dev; PKG: protobuf; TASKS: `pub run test`"
dart: dev
env: PKGS="protobuf"
script: ./tool/travis.sh test
- stage: format_analyzer_tests
name: "SDK: 2.0.0; PKG: protoc_plugin; TASKS: [`make protos`, `dartanalyzer --fatal-warnings .`]"
dart: "2.0.0"
env: PKGS="protoc_plugin"
script: ./tool/travis.sh command_1 dartanalyzer_0
- stage: format_analyzer_tests
name: "SDK: dev; PKG: protoc_plugin; TASKS: [`make protos`, `dartfmt -n --set-exit-if-changed .`, `dartanalyzer --fatal-infos --fatal-warnings .`]"
dart: dev
env: PKGS="protoc_plugin"
script: ./tool/travis.sh command_1 dartfmt dartanalyzer_1
- stage: format_analyzer_tests
name: "SDK: 2.0.0; PKG: protoc_plugin; TASKS: [`make protos`, `pub run test`]"
dart: "2.0.0"
env: PKGS="protoc_plugin"
script: ./tool/travis.sh command_1 test
- stage: format_analyzer_tests
name: "SDK: dev; PKG: protoc_plugin; TASKS: [`make protos`, `pub run test`]"
dart: dev
env: PKGS="protoc_plugin"
script: ./tool/travis.sh command_1 test
stages:
- format_analyzer_tests
# Only building master means that we don't run two builds for each pull request.
branches:
only:
- master
cache:
directories:
- "$HOME/.pub-cache"