forked from bricklife/JSONRPCKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (50 loc) · 1.65 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
env:
global:
- LC_CTYPE=en_US.UTF-8
branches:
only:
- master
matrix:
include:
- os: osx
osx_image: xcode12
language: objective-c
env:
- JOB=Xcode
script:
- set -o pipefail
- xcodebuild build-for-testing test-without-building -workspace JSONRPCKit.xcworkspace -scheme JSONRPCKit -configuration Release ENABLE_TESTABILITY=YES | xcpretty -c
- xcodebuild build-for-testing test-without-building -workspace JSONRPCKit.xcworkspace -scheme JSONRPCKit -configuration Release -sdk iphonesimulator -destination "name=iPhone 8" ENABLE_TESTABILITY=YES | xcpretty -c
- xcodebuild build-for-testing test-without-building -workspace JSONRPCKit.xcworkspace -scheme JSONRPCKit -configuration Release -sdk appletvsimulator -destination "name=Apple TV" ENABLE_TESTABILITY=YES | xcpretty -c
- xcodebuild build -workspace JSONRPCKit.xcworkspace -scheme JSONRPCKit -sdk watchsimulator | xcpretty -c
- os: osx
osx_image: xcode12
language: generic
env:
- JOB=SPM
script:
- swift --version
- swift build
- swift test
- os: linux
language: generic
sudo: required
dist: bionic # Ubuntu 18.04
env:
- JOB=Linux
- SWIFT_VERSION=5.3
before_install:
- uname -a
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo apt-get update
sudo apt-get install clang-3.6
fi
install:
- eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
- swift --version
script:
- swift build
- swift test
notifications:
email: false