-
-
Notifications
You must be signed in to change notification settings - Fork 243
/
Copy path.travis.yml
51 lines (42 loc) · 1.66 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
aliases:
- &testing_xcode
os: osx
language: objective-c
script:
- set -o pipefail
- xcodebuild build-for-testing test-without-building -scheme DifferenceKit -configuration Release ENABLE_TESTABILITY=YES | xcpretty -c
- xcodebuild build-for-testing test-without-building -scheme DifferenceKit -configuration Release -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone X' ENABLE_TESTABILITY=YES | xcpretty - c
- xcodebuild build-for-testing test-without-building -scheme DifferenceKit -configuration Release -sdk appletvsimulator -destination 'platform=tvOS Simulator,name=Apple TV' ENABLE_TESTABILITY=YES | xcpretty -c
- xcodebuild build -scheme DifferenceKit -configuration Release -sdk watchsimulator -destination 'platform=watchOS Simulator,name=Apple Watch Series 4 - 40mm' ENABLE_TESTABILITY=YES | xcpretty -c
- &testing_spm_darwin
os: osx
language: generic
script:
- swift build
- swift test
- &testing_spm_linux
os: linux
language: generic
dist: trusty
sudo: required
before_install:
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
script:
- swift build
- swift test
matrix:
include:
- <<: *testing_xcode
osx_image: xcode10.1
- <<: *testing_xcode
osx_image: xcode10.2
- <<: *testing_spm_darwin
osx_image: xcode10.1
- <<: *testing_spm_darwin
osx_image: xcode10.2
- <<: *testing_spm_linux
env: SWIFT_VERSION=4.2
- <<: *testing_spm_linux
env: SWIFT_VERSION=5.0
notifications:
email: false