-
Notifications
You must be signed in to change notification settings - Fork 43
/
.travis.yml
61 lines (51 loc) · 3.24 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
60
61
# references:
# * http://www.objc.io/issue-6/travis-ci.html
# * https://github.com/supermarin/xcpretty#usage
osx_image: xcode8.1
#osx_image: xcode8
language: objective-c
env:
global:
- secure: "ioMyivfPG8gHNtmbvPPyD9JADUPKtszx+7bqA5oWVAVBuZ7q4HjKdsEx+n2aOaNXY1RSfzA8YzHZ1dD7dj8MBxz2UyuiOeOmihCl2EcnGnXC0AdHy1TV/fHwz9Td6cIU1Fj2uF0FkbhjtFDjK3LQQ6uGudsuDm1ZEF6rc3ioDXY="
# Added them in a script instead to be reachable in local builds as well
# - COMMIT_AUTHOR_EMAIL: "antonis.tsakiridis@telestax.com"
# - APP_NAME: "restcomm-olympus"
# - DEVELOPER_NAME: "iPhone Distribution: Telestax, Inc."
# - DEVELOPMENT_TEAM: "H9PG74NSQT"
# - DEVELOPMENT_PROVISIONING_PROFILE_NAME: "development"
# - DEVELOPMENT_PROVISIONING_PROFILE_OLYMPUS_NAME: "development-olympus"
# - DISTRIBUTION_PROVISIONING_PROFILE_NAME: "enterprise-distribution"
# Consider uncommenting this once we are fully stable
# cache: cocoapods
##podfile: Test-App/Podfile
before_install:
# Export travis_wait function for use externally and travis_jigger that is required by travis_wait
- export -f travis_jigger
- export -f travis_wait
#- brew install md5sha1sum
# Install appledoc as I don't see it pre-installed
##- curl -sL https://gist.githubusercontent.com/atsakiridis/2f8f755bd23a3e0be8dcd4aa5923d5a2/raw/1637e50d6c478add443c7cc721403a98fd72dbd5/install_appledoc.sh | sh
# In case Travis CI has those issues again in the future with old cocoapods version
#- gem install cocoapods # Since Travis is not always on latest version
# In case we need to use a private key locally in the future
#- openssl aes-256-cbc -K $encrypted_1a2b91771659_key -iv $encrypted_1a2b91771659_iv -in .\/.ssh/github_rsa.enc -out .\/.ssh/github_rsa -d
#- chmod 600 .\/.ssh/github_rsa
# In case we need to verify the private key without exposing it
#- sha1sum .\/.ssh/github_rsa
# Add the key to the ssh agent
#- ssh-add .\/.ssh/github_rsa
# In case we need to tell travis to wait for a command without output for more than default 10 minutes. This one uses 60 minutes of waiting time. Notice that
# the way travis_wait works is to output a random string in STDOUT, so you *must not* redirect the output of the whole command to /dev/null
#- travis_wait 60 pod repo update --silent
# Install pod dependencies for Test-App that is used for integration testing
##- pod install --project-directory=Test-App
script:
# Various failing commands that I used until I found the correct one, let's keep them for reference
#- set -o pipefail && xcodebuild test -workspace Test-App/Sample.xcworkspace -scheme Sample -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty
#- set -o pipefail && xcodebuild test -workspace Test-App/Sample.xcworkspace -scheme Sample -destination 'platform=iOS Simulator,name=iPhone 6,OS=9.3' | xcpretty
#- set -o pipefail && xcodebuild test -workspace Test-App/Sample.xcworkspace -scheme Sample -destination 'platform=iOS Simulator,name=iPhone 6,OS=10.1'
#- set -o pipefail && xcodebuild test -workspace Test-App/Sample.xcworkspace -scheme Sample -destination 'platform=iOS Simulator,name=iPhone SE'
# Good one:
##- set -o pipefail && travis_retry xcodebuild test -workspace Test-App/Sample.xcworkspace -scheme Sample -destination 'platform=iOS Simulator,name=iPhone SE,OS=10.0' | xcpretty
- ./scripts/local-wrapper.bash
# testing other user