-
-
Notifications
You must be signed in to change notification settings - Fork 1k
/
.travis.yml
36 lines (31 loc) · 1.77 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
osx_image: xcode12
language: objective-c
# Handle git submodules yourself
# http://stackoverflow.com/a/24600210/805882
git:
submodules: false
# Use sed to replace the SSH URL with the public URL, then initialize submodules
before_install:
# Fix Travis xcodebuild exited with 65 https://github.com/travis-ci/travis-ci/issues/6675#issuecomment-257964767
- export IOS_SIMULATOR_UDID=`instruments -s devices | grep -m 1 "iPhone 8 (14" | awk -F '[ ]' '{print $4}' | awk -F '[\[]' '{print $2}' | sed 's/.$//'`
- echo $IOS_SIMULATOR_UDID
- bundle install # We need a pre-release CocoaPods version
- sed -i -e 's/[email protected]:/git:\/\/github.com\//' .gitmodules
- sed -i -e 's/[email protected]:/git:\/\/github.com\//' Podfile
- git submodule update --init --recursive
install:
- cp OTRResources/Secrets-template.plist OTRResources/Secrets.plist
- curl -L https://github.com/ChatSecure/ChatSecure-iOS-Precompiled-Dependencies/archive/master.zip -o ChatSecure-iOS-Precompiled-Dependencies.zip
- unzip -q ChatSecure-iOS-Precompiled-Dependencies.zip
- mv ChatSecure-iOS-Precompiled-Dependencies-master ChatSecure-iOS-Precompiled-Dependencies
- unzip -q ./ChatSecure-iOS-Precompiled-Dependencies/CPAProxyDependencies.zip -d ./Submodules/CPAProxy/
- unzip -q ./ChatSecure-iOS-Precompiled-Dependencies/OTRKitDependencies.zip -d ./Submodules/OTRKit/
- unzip -q ./ChatSecure-iOS-Precompiled-Dependencies/Pods.zip
before_script:
# Skip re-building of Carthage dependencies in favor of using precompiled
# - carthage update --platform ios --cache-builds
- bundle exec pod repo update
- bundle exec pod install
script:
- set -o pipefail
- xcodebuild -workspace ChatSecure.xcworkspace -scheme ChatSecureTests -sdk iphonesimulator -destination "id=$IOS_SIMULATOR_UDID" test | xcpretty -c