-
Notifications
You must be signed in to change notification settings - Fork 19
/
.travis.yml
147 lines (147 loc) · 4.14 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
env:
global:
- LC_CTYPE=en_US.UTF-8
os: osx
language: generic
matrix:
exclude:
# Note: Workaround travis-ci/travis-ci#4681
# Exclude default job which lacks our included environment variables.
- os: osx
include:
- os: linux
language: generic
sudo: required
dist: trusty
env:
- SWIFT_VERSION="3.0"
before_install:
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
script:
- swift build --verbose
- swift test || true
- os: linux
language: generic
sudo: required
dist: trusty
env:
- SWIFT_VERSION="3.0.1"
before_install:
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
script:
- swift build --verbose
- swift test || true
- os: linux
language: generic
sudo: required
dist: trusty
env:
- SWIFT_VERSION="3.0.2"
before_install:
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
script:
- swift build --verbose
- swift test || true
- os: linux
language: generic
sudo: required
dist: trusty
env:
- SWIFT_VERSION="4.0"
before_install:
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
script:
- swift build --verbose
- swift test || true
- osx_image: xcode8
env:
- XCODE_SDK=macosx
XCODE_ACTION=test
XCODE_DESTINATION="arch=x86_64"
- osx_image: xcode8.1
env:
- XCODE_SDK=macosx
XCODE_ACTION=test
XCODE_DESTINATION="arch=x86_64"
- osx_image: xcode8.2
env:
- XCODE_SDK=macosx
XCODE_ACTION=test
XCODE_DESTINATION="arch=x86_64"
- osx_image: xcode8.3
env:
- XCODE_SDK=macosx
XCODE_ACTION=test
XCODE_DESTINATION="arch=x86_64"
- osx_image: xcode9
env:
- XCODE_SDK=macosx
XCODE_ACTION=test
XCODE_DESTINATION="arch=x86_64"
- osx_image: xcode9
env:
- XCODE_SDK=iphonesimulator
XCODE_ACTION="build-for-testing test-without-building"
XCODE_DESTINATION="name=iPhone 6s"
- osx_image: xcode9
env:
- XCODE_SDK=appletvsimulator
XCODE_ACTION="build-for-testing test-without-building"
XCODE_DESTINATION="name=Apple TV 1080p"
- osx_image: xcode9
env:
- XCODE_SDK=watchsimulator
XCODE_ACTION=build
XCODE_DESTINATION="name=Apple Watch - 38mm"
- osx_image: xcode9
env:
- JOB=CARTHAGE
script:
- brew update 1> /dev/null 2> /dev/null
- brew outdated carthage || brew upgrade carthage
- carthage build --no-skip-current
- for platform in Mac iOS tvOS watchOS; do test -d Carthage/Build/${platform}/PrettyColors.framework || exit 1; done
- osx_image: xcode8
env:
- JOB=SWIFT_PM
script:
- swift build --verbose
- swift test
- osx_image: xcode8.1
env:
- JOB=SWIFT_PM
script:
- swift build --verbose
- swift test
- osx_image: xcode8.2
env:
- JOB=SWIFT_PM
script:
- swift build --verbose
- swift test
- osx_image: xcode8.3
env:
- JOB=SWIFT_PM
script:
- swift build --verbose
- swift test
- osx_image: xcode9
env:
- JOB=SWIFT_PM
script:
- swift build --verbose
- swift test
git:
submodules: false
before_install:
- git submodule update --init --recursive
script:
- xcodebuild ${XCODE_ACTION}
-project PrettyColors.xcodeproj
-scheme PrettyColors
-sdk ${XCODE_SDK}
-destination "${XCODE_DESTINATION}"
CODE_SIGNING_REQUIRED=NO
CODE_SIGN_IDENTITY=
notifications:
email: false