This repository has been archived by the owner on Nov 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
/
.travis.yml
59 lines (54 loc) · 1.93 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
osx_image: xcode11.3
language: generic
os: osx
xcode_project: CodableAlamofire.xcodeproj
matrix:
include:
- osx_image:
os: linux
env: TEST=Unix swift=5.1
- xcode_scheme: CodableAlamofire-macOS
language: objective-c
env:
- XCODE_SDK=macosx10.15
- XCODE_ACTION="test"
- XCODE_DESTINATION="arch=x86_64"
- xcode_scheme: CodableAlamofire-iOS
language: objective-c
env:
- XCODE_SDK=iphonesimulator13.2
- XCODE_ACTION="test"
- XCODE_DESTINATION="platform=iOS Simulator,OS=13.1,name=iPhone 8"
- xcode_scheme: CodableAlamofire-tvOS
language: objective-c
env:
- XCODE_SDK=appletvsimulator13.2
- XCODE_ACTION="test"
- XCODE_DESTINATION="platform=tvOS Simulator,OS=13.2,name=Apple TV"
- xcode_scheme: CodableAlamofire-watchOS
language: objective-c
env:
- XCODE_SDK=watchsimulator6.1
- XCODE_ACTION="build"
- XCODE_DESTINATION="platform=watchOS Simulator,name=Apple Watch - 38mm"
install:
- if [[ `uname` == "Linux" ]] ; then
curl "https://swift.org/builds/swift-${swift}-release/ubuntu1604/swift-${swift}-RELEASE/swift-${swift}-RELEASE-ubuntu16.04.tar.gz" > /tmp/swift.tar.gz;
tar -xzf /tmp/swift.tar.gz -C /tmp;
export PATH="${PATH}:/tmp/swift-${swift}-RELEASE-ubuntu16.04/usr/bin";
swift -version;
fi
script:
- if [[ `uname` == "Linux" ]] ; then
swift --version
swift test;
fi
- if [[ `uname` == "Darwin" ]] ; then
set -o pipefail;
xcodebuild -version;
xcodebuild -showsdks;
instruments -s devices;
xcodebuild -project "$TRAVIS_XCODE_PROJECT" -scheme "$TRAVIS_XCODE_SCHEME" -sdk "$XCODE_SDK" -destination "$XCODE_DESTINATION" -configuration Debug ENABLE_TESTABILITY=YES $XCODE_ACTION | xcpretty;
fi
after_success:
- sleep 5 # workaround https://github.com/travis-ci/travis-ci/issues/4725