Skip to content

Commit 2f42f3b

Browse files
authored
Update CI (#104)
1 parent 3f33f2e commit 2f42f3b

File tree

2 files changed

+33
-46
lines changed

2 files changed

+33
-46
lines changed

.circleci/config.yml

Lines changed: 32 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,55 @@
11
version: 2
2+
3+
24
jobs:
3-
mac-swift4.2:
5+
mac-swift5.1:
46
macos:
5-
xcode: "10.0.0"
7+
xcode: "11.3.0"
68
steps:
79
- checkout
8-
- run: brew update
9-
- run: brew install https://gist.github.com/novi/dd21d48d260379e8919d9490bf5cfaec/raw/6ea4daa02d93f4ab0110ad30d87ea2b497a71cd0/cmysqlmariadb.rb #cmysql
10+
- run: brew update && brew tap novi/tap && brew install novi/tap/cmysqlmariadb
1011
- run: mkdir -p /usr/local/etc/my.cnf.d #workaround
1112
- run: sh -c "mysqld_safe --skip-grant-tables & sleep 5"
1213
- run: mysql -u root -e "create database IF NOT EXISTS test;"
1314
- run: swift build
1415
- run: swift test
15-
mac-swift5.0:
16+
mac-swift5.2:
1617
macos:
17-
xcode: "10.2.0"
18+
xcode: "11.5.0"
1819
steps:
1920
- checkout
20-
- run: brew update
21-
- run: brew install https://gist.github.com/novi/dd21d48d260379e8919d9490bf5cfaec/raw/6ea4daa02d93f4ab0110ad30d87ea2b497a71cd0/cmysqlmariadb.rb #cmysql
21+
- run: brew update && brew tap novi/tap && brew install novi/tap/cmysqlmariadb
2222
- run: mkdir -p /usr/local/etc/my.cnf.d #workaround
2323
- run: sh -c "mysqld_safe --skip-grant-tables & sleep 5"
2424
- run: mysql -u root -e "create database IF NOT EXISTS test;"
2525
- run: swift build
2626
- run: swift test
27-
mac-swift5.1:
27+
mac-swift5.1-mysql:
2828
macos:
29-
xcode: "11.0.0"
29+
xcode: "11.3.0"
3030
steps:
3131
- checkout
3232
- run: brew update
33-
- run: brew install https://gist.github.com/novi/dd21d48d260379e8919d9490bf5cfaec/raw/6ea4daa02d93f4ab0110ad30d87ea2b497a71cd0/cmysqlmariadb.rb #cmysql
34-
- run: mkdir -p /usr/local/etc/my.cnf.d #workaround
35-
- run: sh -c "mysqld_safe --skip-grant-tables & sleep 5"
33+
- run: brew update && brew tap novi/tap && brew install novi/tap/cmysql
34+
- run: mysql.server start
3635
- run: mysql -u root -e "create database IF NOT EXISTS test;"
3736
- run: swift build
3837
- run: swift test
39-
mac-swift5.0-mysql:
38+
mac-swift5.2-mysql:
4039
macos:
41-
xcode: "10.2.0"
40+
xcode: "11.5.0"
4241
steps:
4342
- checkout
4443
- run: brew update
45-
- run: brew install https://gist.githubusercontent.com/novi/c6d4afa6e9f9cc9c426e3ccd140c3c74/raw/7130ad1d5062cdb2f7492d42e8d5574b864f3e18/cmysql.rb
44+
- run: brew update && brew tap novi/tap && brew install novi/tap/cmysql
4645
- run: mysql.server start
4746
- run: mysql -u root -e "create database IF NOT EXISTS test;"
4847
- run: swift build
4948
- run: swift test
50-
linux-swift4.1:
51-
docker:
52-
- image: yusukeito/swift-basic:swift4.1
53-
- image: circleci/mariadb:10.3
54-
environment:
55-
MYSQL_USER: root
56-
MYSQL_DATABASE: "test"
57-
MYSQL_ALLOW_EMPTY_PASSWORD: yes
58-
MYSQL_ROOT_HOST: "%"
59-
DATABASE_HOST: "%"
60-
steps:
61-
- checkout
62-
- run: sleep 5 #wait for mysql
63-
- run: swift build
64-
- run: swift test
65-
linux-swift4.2:
49+
50+
linux-swift5.0:
6651
docker:
67-
- image: yusukeito/swift-basic:swift4.2
52+
- image: yusukeito/swift-basic:swift5.0
6853
- image: mariadb:10.3
6954
environment:
7055
MYSQL_USER: root
@@ -74,12 +59,13 @@ jobs:
7459
DATABASE_HOST: "%"
7560
steps:
7661
- checkout
77-
- run: sleep 5 #wait for mysql
62+
- run: sleep 10 #wait for mysql
7863
- run: swift build
7964
- run: swift test
80-
linux-swift5.0:
65+
66+
linux-swift5.1:
8167
docker:
82-
- image: yusukeito/swift-basic:swift5.0
68+
- image: yusukeito/swift-basic:swift5.1-cgrpc
8369
- image: mariadb:10.3
8470
environment:
8571
MYSQL_USER: root
@@ -89,12 +75,13 @@ jobs:
8975
DATABASE_HOST: "%"
9076
steps:
9177
- checkout
92-
- run: sleep 5 #wait for mysql
78+
- run: sleep 10 #wait for mysql
9379
- run: swift build
9480
- run: swift test
95-
linux-swift5.1:
81+
82+
linux-swift5.2:
9683
docker:
97-
- image: yusukeito/swift-basic:swift5.1
84+
- image: yusukeito/swift-basic:swift5.2-grpc-1
9885
- image: mariadb:10.3
9986
environment:
10087
MYSQL_USER: root
@@ -104,19 +91,18 @@ jobs:
10491
DATABASE_HOST: "%"
10592
steps:
10693
- checkout
107-
- run: sleep 5 #wait for mysql
94+
- run: sleep 10 #wait for mysql
10895
- run: swift build
10996
- run: swift test
11097

11198
workflows:
11299
version: 2
113100
build_and_test:
114101
jobs:
115-
- mac-swift4.2
116-
- mac-swift5.0
117-
- mac-swift5.0-mysql
118102
- mac-swift5.1
119-
- linux-swift4.1
120-
- linux-swift4.2
103+
- mac-swift5.1-mysql
104+
- mac-swift5.2
105+
- mac-swift5.2-mysql
121106
- linux-swift5.0
122-
- linux-swift5.1
107+
- linux-swift5.1
108+
- linux-swift5.2

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ Carthage/
3131

3232
Constants.swift
3333
/*.xcodeproj
34+
.swiftpm/

0 commit comments

Comments
 (0)