Skip to content

Commit 4b82605

Browse files
committed
Organize build steps in azure-pipelines.yml (#155)
1 parent a53deed commit 4b82605

File tree

1 file changed

+31
-33
lines changed

1 file changed

+31
-33
lines changed

azure-pipelines.yml

Lines changed: 31 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,40 @@ pr:
99

1010
jobs:
1111
- job: format
12+
pool:
13+
name: Default
14+
demands: Agent.os -equals Linux
15+
steps:
16+
- checkout: self
17+
path: src/flutter
18+
- bash: ci/format.sh
19+
displayName: Verify formatting
20+
- job: test
21+
dependsOn: format
1222
pool:
1323
name: Default
1424
demands: agent.os -equals Linux
25+
timeoutInMinutes: 20
26+
cancelTimeoutInMinutes: 1
1527
steps:
1628
- checkout: self
1729
path: src/flutter
1830
- bash: |
1931
gclient sync -f -D
20-
sed -i 's/"-Wno-non-c-typedef-for-linkage",//g' build/config/compiler/BUILD.gn
21-
sed -i 's/"-Wno-psabi",//g' build/config/compiler/BUILD.gn
22-
displayName: Run gclient sync
32+
flutter/tools/gn \
33+
--no-goma \
34+
--runtime-mode debug \
35+
--enable-fontconfig \
36+
--build-tizen-shell
37+
ninja -C out/host_debug
38+
displayName: Host build
2339
workingDirectory: $(Pipeline.Workspace)/src
2440
failOnStderr: true
25-
- bash: ci/format.sh
26-
displayName: Verify formatting
41+
- bash: out/host_debug/flutter_tizen_unittests
42+
displayName: Run tests
43+
workingDirectory: $(Pipeline.Workspace)/src
2744
- job: build
28-
dependsOn: format
45+
dependsOn: test
2946
strategy:
3047
matrix:
3148
tizen-arm-release:
@@ -64,6 +81,13 @@ jobs:
6481
steps:
6582
- checkout: self
6683
path: src/flutter
84+
- bash: |
85+
gclient sync -f -D
86+
sed -i 's/"-Wno-non-c-typedef-for-linkage",//g' build/config/compiler/BUILD.gn
87+
sed -i 's/"-Wno-psabi",//g' build/config/compiler/BUILD.gn
88+
displayName: Disable build flags
89+
workingDirectory: $(Pipeline.Workspace)/src
90+
failOnStderr: true
6791
- bash: |
6892
flutter/tools/gn \
6993
--target-os linux \
@@ -100,40 +124,14 @@ jobs:
100124
failOnStderr: true
101125
- publish: $(Build.StagingDirectory)
102126
artifact: $(System.JobName)
103-
- job: test
104-
dependsOn: build
105-
pool:
106-
name: Default
107-
demands: agent.os -equals Linux
108-
timeoutInMinutes: 20
109-
cancelTimeoutInMinutes: 1
110-
steps:
111-
- checkout: self
112-
path: src/flutter
113-
- bash: |
114-
git checkout -- build/config/compiler/BUILD.gn
115-
flutter/tools/gn \
116-
--no-goma \
117-
--runtime-mode debug \
118-
--enable-fontconfig \
119-
--build-tizen-shell
120-
ninja -C out/host_debug
121-
displayName: Build unittests
122-
workingDirectory: $(Pipeline.Workspace)/src
123-
failOnStderr: true
124-
- bash: out/host_debug/flutter_tizen_unittests
125-
displayName: Run
126-
workingDirectory: $(Pipeline.Workspace)/src
127127
- job: release
128-
dependsOn: test
128+
dependsOn: build
129129
pool:
130130
name: Default
131131
demands: agent.os -equals Linux
132132
workspace:
133133
clean: outputs
134134
steps:
135-
- checkout: self
136-
path: src/flutter
137135
- download: current
138136
- bash: |
139137
mv $(Pipeline.Workspace)/tizen-arm-release/tizen-common .

0 commit comments

Comments
 (0)