Skip to content

Commit 02d8d02

Browse files
committed
Speed up CI pipelines for Merge Requests
Motivation: MRs take unnecessarily too long to have completed pipelines with "redundant" builds happening in sequence. The entire stage of building in release is an additional QA layer that can happen on merges into master, but for MRs are just added CPU cycles. While it's useful to ensure that building in release is possible, we will get almost all build failures from the test stage, and the most important checks are the unit and integration tests. Modifications: Change the ordering of build vs. test, as well as only running "build in release" jobs on the master branch. Result: MRs should be able to be merged sooner as CI pipelines take less time to run.
1 parent 50dba5c commit 02d8d02

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.gitlab-ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
stages:
2-
- Build in Release
32
- Test
3+
- Build in Release
44
- Docs
55

66
pages:
@@ -39,6 +39,8 @@ pages:
3939
- docker
4040
script:
4141
- swift build -c release -v
42+
only:
43+
- master
4244

4345
build 5.0:ubuntu-xenial:
4446
extends: .build

0 commit comments

Comments
 (0)