-
Notifications
You must be signed in to change notification settings - Fork 47
/
.travis.yml
64 lines (63 loc) · 2.06 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
branches:
only:
- master
env:
global:
- LC_CTYPE=en_US.UTF-8
matrix:
include:
- &cocoapods
os: osx
language: objective-c
osx_image: xcode10.1
script:
- gem update cocoapods
# To work around the lint error: "ERROR | swift: Specification `Himotoki` specifies an inconsistent `swift_version` (`4.0`) compared to the one present in your `.swift-version` file (`4.1`). Please remove the `.swift-version` file which is now deprecated and only use the `swift_version` attribute within your podspec."
# `.swift-version` is for swiftenv, not for CocoaPods, so we can't remove the file as suggested.
- rm .swift-version
- pod lib lint
env:
- JOB=PODSPEC
- &xcode
os: osx
language: objective-c
osx_image: xcode10.1
script:
- rake "build[build-for-testing test-without-building, Himotoki-macOS, macosx, arch=x86_64]"
- rake "build[build-for-testing test-without-building, Himotoki-iOS, iphonesimulator, name=iPhone 8]"
- rake "build[build-for-testing test-without-building, Himotoki-tvOS, appletvsimulator, name=Apple TV]"
- rake "build[build, Himotoki-watchOS, watchsimulator, name=Apple Watch - 38mm]"
- <<: *xcode
osx_image: xcode10.2
- &swiftpm_darwin
os: osx
language: generic
osx_image: xcode10.1
script:
- swift --version
- swift build
- swift test
env:
- JOB=SWIFTPM_DARWIN
- <<: *swiftpm_darwin
osx_image: xcode10.2
- &swiftpm_linux
os: linux
language: generic
sudo: required
dist: trusty
before_install:
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
script:
- swift --version
- swift build
- swift test
env:
- JOB=SWIFTPM_LINUX
- SWIFT_VERSION=4.2.4
- <<: *swiftpm_linux
env:
- JOB=SWIFTPM_LINUX
- SWIFT_VERSION=5.0
notifications:
email: false