forked from google/protobuf.dart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
80 lines (75 loc) · 3.09 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
75
76
77
78
79
80
# Created with package:mono_repo v1.2.1
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"
jobs:
include:
- stage: format_analyzer_tests
name: "SDK: stable - DIR: api_benchmark - TASKS: [./compile_protos.sh, dartfmt -n --set-exit-if-changed ., dartanalyzer --fatal-warnings .]"
script: ./tool/travis.sh command_0 dartfmt dartanalyzer_0
env: PKG="api_benchmark"
dart: stable
- stage: format_analyzer_tests
name: "SDK: dev - DIR: protobuf - TASKS: dartanalyzer --fatal-infos --fatal-warnings ."
script: ./tool/travis.sh dartanalyzer_1
env: PKG="protobuf"
dart: dev
- stage: format_analyzer_tests
name: "SDK: stable - DIR: protobuf - TASKS: dartfmt -n --set-exit-if-changed ."
script: ./tool/travis.sh dartfmt
env: PKG="protobuf"
dart: stable
- stage: format_analyzer_tests
name: "SDK: stable - DIR: protobuf - TASKS: dartanalyzer --fatal-warnings ."
script: ./tool/travis.sh dartanalyzer_0
env: PKG="protobuf"
dart: stable
- stage: format_analyzer_tests
name: "SDK: stable - DIR: protobuf - TASKS: pub run test"
script: ./tool/travis.sh test
env: PKG="protobuf"
dart: stable
- stage: format_analyzer_tests
name: "SDK: dev - DIR: protobuf - TASKS: pub run test"
script: ./tool/travis.sh test
env: PKG="protobuf"
dart: dev
- stage: format_analyzer_tests
name: "SDK: dev - DIR: protoc_plugin - TASKS: [make protos, dartanalyzer --fatal-infos --fatal-warnings .]"
script: ./tool/travis.sh command_1 dartanalyzer_1
env: PKG="protoc_plugin"
dart: dev
- stage: format_analyzer_tests
name: "SDK: stable - DIR: protoc_plugin - TASKS: [make protos, dartfmt -n --set-exit-if-changed ., dartanalyzer --fatal-warnings .]"
script: ./tool/travis.sh command_1 dartfmt dartanalyzer_0
env: PKG="protoc_plugin"
dart: stable
- stage: format_analyzer_tests
name: "SDK: stable - DIR: protoc_plugin - TASKS: [make protos, pub run test]"
script: ./tool/travis.sh command_1 test
env: PKG="protoc_plugin"
dart: stable
- stage: format_analyzer_tests
name: "SDK: dev - DIR: protoc_plugin - TASKS: [make protos, pub run test]"
script: ./tool/travis.sh command_1 test
env: PKG="protoc_plugin"
dart: dev
- stage: format_analyzer_tests
name: "SDK: stable - DIR: query_benchmark - TASKS: [./compile_protos.sh, dartfmt -n --set-exit-if-changed ., dartanalyzer --fatal-warnings .]"
script: ./tool/travis.sh command_0 dartfmt dartanalyzer_0
env: PKG="query_benchmark"
dart: stable
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"