Skip to content

Commit 4ec4a35

Browse files
committed
CI changes: fix linux builds by specifying swift version in the config; restore skip_cleanup setting in CI (since it wasn't really deprecated); add testing and benchmarking for Swift 4.2, 5.1 and 5.2
1 parent f21b8e3 commit 4ec4a35

1 file changed

Lines changed: 110 additions & 8 deletions

File tree

.travis.yml

Lines changed: 110 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,58 @@
1+
# TODO: There is probably a way to simplify this very explicit build matrix.
12
jobs:
23
include:
34
- stage: test
45
language: swift
56
os: osx
6-
osx_image: xcode10.3
7+
osx_image: xcode10.1 # Swift 4.2
78
script:
89
- swift build
910
- swift test --filter BitByteDataTests
1011
- swift build -c release # Check Release build just in case.
1112
- stage: test
1213
language: swift
1314
os: osx
14-
osx_image: xcode11.3
15+
osx_image: xcode10.3 # Swift 5.0
16+
script:
17+
- swift build
18+
- swift test --filter BitByteDataTests
19+
- swift build -c release # Check Release build just in case.
20+
- stage: test
21+
language: swift
22+
os: osx
23+
osx_image: xcode11.3 # Swift 5.1
24+
script:
25+
- swift build
26+
- swift test --filter BitByteDataTests
27+
- swift build -c release # Check Release build just in case.
28+
- stage: test
29+
language: swift
30+
os: osx
31+
osx_image: xcode11.4 # Swift 5.2
32+
script:
33+
- swift build
34+
- swift test --filter BitByteDataTests
35+
- swift build -c release # Check Release build just in case.
36+
- stage: test
37+
language: generic
38+
os: linux
39+
dist: xenial
40+
env:
41+
- SWIFT_VERSION=4.2
42+
install:
43+
- eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
44+
script:
45+
- swift build
46+
- swift test --filter BitByteDataTests
47+
- swift build -c release # Check Release build just in case.
48+
- stage: test
49+
language: generic
50+
os: linux
51+
dist: xenial
52+
env:
53+
- SWIFT_VERSION=5.0
54+
install:
55+
- eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
1556
script:
1657
- swift build
1758
- swift test --filter BitByteDataTests
@@ -20,33 +61,92 @@ jobs:
2061
language: generic
2162
os: linux
2263
dist: xenial
64+
env:
65+
- SWIFT_VERSION=5.1
2366
install:
24-
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
67+
- eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
68+
script:
69+
- swift build
70+
- swift test --filter BitByteDataTests
71+
- swift build -c release # Check Release build just in case.
72+
- stage: test
73+
language: generic
74+
os: linux
75+
dist: xenial
76+
env:
77+
- SWIFT_VERSION=5.2
78+
install:
79+
- eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
2580
script:
2681
- swift build
2782
- swift test --filter BitByteDataTests
2883
- swift build -c release # Check Release build just in case.
2984
- stage: benchmark
30-
if: NOT (tag IS present)
3185
language: swift
3286
os: osx
33-
osx_image: xcode10.3
87+
osx_image: xcode10.1 # Swift 4.2
3488
script:
3589
- ./benchmarks.py run
3690
- stage: benchmark
37-
if: NOT (tag IS present)
3891
language: swift
3992
os: osx
40-
osx_image: xcode11.3
93+
osx_image: xcode10.3 # Swift 5.0
94+
script:
95+
- ./benchmarks.py run
96+
- stage: benchmark
97+
language: swift
98+
os: osx
99+
osx_image: xcode11.3 # Swift 5.1
100+
script:
101+
- ./benchmarks.py run
102+
- stage: benchmark
103+
language: swift
104+
os: osx
105+
osx_image: xcode11.4 # Swift 5.2
41106
script:
42107
- ./benchmarks.py run
43108
- stage: benchmark
44109
if: NOT (tag IS present)
45110
language: generic
46111
os: linux
47112
dist: xenial
113+
env:
114+
- SWIFT_VERSION=4.2
115+
install:
116+
- eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
117+
script:
118+
- ./benchmarks.py run
119+
- stage: benchmark
120+
if: NOT (tag IS present)
121+
language: generic
122+
os: linux
123+
dist: xenial
124+
env:
125+
- SWIFT_VERSION=5.0
126+
install:
127+
- eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
128+
script:
129+
- ./benchmarks.py run
130+
- stage: benchmark
131+
if: NOT (tag IS present)
132+
language: generic
133+
os: linux
134+
dist: xenial
135+
env:
136+
- SWIFT_VERSION=5.1
137+
install:
138+
- eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
139+
script:
140+
- ./benchmarks.py run
141+
- stage: benchmark
142+
if: NOT (tag IS present)
143+
language: generic
144+
os: linux
145+
dist: xenial
146+
env:
147+
- SWIFT_VERSION=5.2
48148
install:
49-
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
149+
- eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
50150
script:
51151
- ./benchmarks.py run
52152
- stage: deploy
@@ -78,11 +178,13 @@ jobs:
78178
fi
79179
deploy:
80180
- provider: releases
181+
skip_cleanup: true
81182
api_key: $GITHUB_TOKEN
82183
file: "BitByteData.framework.zip"
83184
on:
84185
tags: true
85186
- provider: pages
187+
skip_cleanup: true
86188
github_token: $GITHUB_TOKEN
87189
local_dir: docs
88190
on:

0 commit comments

Comments
 (0)