forked from readium/r2-lcp-swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (24 loc) · 914 Bytes
/
.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
language: swift
osx_image: xcode12.5
xcode_project: r2-lcp-swift.xcodeproj
xcode_scheme: readium-lcp-swift
xcode_destination: platform=iOS Simulator,OS=14.5.1,name=iPhone X
xcode_sdk: iphonesimulator14.5.1
branches:
only:
- master
- develop
cache:
directories:
- Carthage
before_install:
- brew update
- brew outdated carthage || brew upgrade carthage
- carthage bootstrap --verbose --no-use-binaries --use-xcframeworks --platform iOS --cache-builds
# The project expects .framework but we can only build XCFrameworks with Carthage on Xcode 12+.
# As a workaround, this will extract the .framework generated from the .xcframework files.
# See https://github.com/readium/r2-testapp-swift/issues/351#issuecomment-829250100
- mkdir -p Carthage/Build/iOS
- cp -r Carthage/Build/*.xcframework/ios-arm64_armv7/*.framework Carthage/Build/iOS
script:
- xcodebuild clean build -quiet