Skip to content

Commit cfb02ba

Browse files
committed
Add CI testing on CentOS 7
1 parent 5c4fe96 commit cfb02ba

File tree

3 files changed

+35
-6
lines changed

3 files changed

+35
-6
lines changed

.gitlab/ci/centos-7.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
include: '/.gitlab/ci/test-template.yml'
2+
3+
.centos7-test-workaround:
4+
extends: .unit-test
5+
before_script:
6+
- yum install -y make libcurl-devel
7+
- git clone https://github.com/git/git -bv2.28.0 --depth 1
8+
- cd git
9+
- make prefix=/usr -j all install NO_OPENSSL=1 NO_EXPAT=1 NO_TCLTK=1 NO_GETTEXT=1 NO_PERL=1
10+
11+
swift trunk:
12+
extends: .centos7-test-workaround
13+
image: swiftlang/swift:nightly-master-centos7
14+
allow_failure: true
15+
16+
swift 5.3:
17+
extends: .centos7-test-workaround
18+
image: swiftlang/swift:nightly-5.3-centos7
19+
20+
swift 5.2:
21+
extends: .centos7-test-workaround
22+
image: swift:5.2-centos7

.gitlab/ci/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ Ubuntu Focal:
7676
strategy: depend
7777
include: '/.gitlab/ci/ubuntu-focal.yml'
7878

79+
CentOS 7:
80+
stage: Platform Tests
81+
trigger:
82+
strategy: depend
83+
include: '/.gitlab/ci/centos-7.yml'
84+
7985
CentOS 8:
8086
stage: Platform Tests
8187
trigger:

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,15 @@ The oldest version of Swift will be dropped within **3 months** of an official r
115115
The following table shows the combination of Swift language versions and operating systems that
116116
receive regular unit testing (either in development, or with CI).
117117

118-
| Platform | Swift 5.1 | 5.2 | 5.3 | Trunk |
119-
|:---------|:-------:|:---:|:---:|:-----:|
120-
| macOS Latest | | | :white_check_mark: | |
121-
| Ubuntu 20.04 (Focal) | | :white_check_mark: | | :white_check_mark: |
118+
| Platform | Swift 5.1 | 5.2 | 5.3 | Trunk |
119+
|:----------------------|:------------------:|:------------------:|:------------------:|:------------------:|
120+
| macOS Latest (Intel) | | | :white_check_mark: | |
121+
| Ubuntu 20.04 (Focal) | | :white_check_mark: | | :white_check_mark: |
122122
| Ubuntu 18.04 (Bionic) | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
123123
| Ubuntu 16.04 (Xenial) | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
124-
| Amazon Linux 2 | | :white_check_mark: | | :white_check_mark: |
125-
| CentOS 8 | | :white_check_mark: | | :white_check_mark: |
124+
| Amazon Linux 2 | | :white_check_mark: | | :white_check_mark: |
125+
| CentOS 7 | | :white_check_mark: | :white_check_mark: | :white_check_mark: |
126+
| CentOS 8 | | :white_check_mark: | | :white_check_mark: |
126127

127128
## License
128129

0 commit comments

Comments
 (0)