Skip to content

Commit fed62a6

Browse files
committed
[CI] Only run CI builds against nightly images
1 parent 9def1b9 commit fed62a6

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.gitlab/ci/centos-7.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ include: '/.gitlab/ci/platform-test.yml'
1111
swift trunk:
1212
extends: .centos7
1313
image: swiftlang/swift:nightly-master-centos7
14-
allow_failure: true
14+
variables:
15+
RUN_NIGHTLY: 1
1516

1617
swift 5.5:
1718
extends: .centos7

.gitlab/ci/platform-test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,10 @@ stages:
1515
script:
1616
- swift build --build-tests --enable-test-discovery --sanitize=thread -v
1717
- swift test --skip-build
18+
rules:
19+
- if: '$CI_PIPELINE_SOURCE == "schedule" && $RUN_NIGHTLY'
20+
allow_failure: true
21+
when: always
22+
- if: '$CI_PIPELINE_SOURCE != "schedule"'
23+
when: always
1824

.gitlab/ci/standard-platforms.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ include: '/.gitlab/ci/platform-test.yml'
33
swift trunk:
44
extends: .platform-test
55
image: swiftlang/swift:nightly-master-${SWIFT_PLATFORM_NAME}
6-
allow_failure: true
6+
variables:
7+
RUN_NIGHTLY: 1
78

89
swift 5.5:
910
extends: .platform-test

0 commit comments

Comments
 (0)