11os : osx
2- osx_image : xcode11.4
2+ osx_image : xcode11.6
33language : objective-c
44
55env :
66 global :
7- - DESTINATION="OS=13.2.2 ,name=iPhone 11 Pro"
7+ - DESTINATION="OS=13.4 ,name=iPhone 11 Pro"
88 - WORKSPACE="Example.xcworkspace"
99 - PROJECT="Example.xcodeproj"
1010 - EXAMPLE_SCHEME="Example"
1111
1212 - secure : y71ScxtfYr3/DI0XKjGz8Bmia33QF9vO5euPJJbQ6kD5ADhEFkici/YZWxDkYtEZocKaUHIR4KYrKya2kTwJC630s2wLg974gERcUATZkWxeJdKgpfZ2aZtqYNPPDxozMTFtiT4kaw5HiD0usJUgnWKqf/XsTW+3BpTJA58xqXChcXulibs9FJvPz6ZVxW+dNW3F5xtC3GCOWk3Rofrw8GJXdCfie/CaJUvxaQVm9hOwKn0Akpe6rvFKlMtfYOLL9yclaMAM+Um7uFVZwhCPHtAzXvpOhA2U/n7eXy/fNpoXxi9zf+epD1iiFmxJQfc1ZO6jkUJEksLXdO3pEMnoe205Bm70QMO6l9gyuq6Z2cUcCBrd2wDzfLYBoOqapgachpTQifotXX6rapm5pCDhg0pMCRihH5moFnsE7jqz2Lo4n68cvSa9+Irr97HmvH+GdF++VIVGK4/GJOErwGUx0Nh32BIeV3p4D+MNm918mAEO7a66a1RiTKNAr1xnrAtCl0k4XeZPCp0uQQ0TEVOxi/vecIS3k6mNMJw5W9tE0F7fun8kHdv6EKrzKIBkyDxMsh2Z5zVqE3wRcCuD+7FgrcmYDUXyk+t1o2cMNs7iZkKFQAG69+qXviTXnaD9Mq0LGP1sx+OQpQKzde9CAC+tgj+1fqD41jqr6zHJqaEOxvs=
13+
1314stages :
1415 - Tests
1516 - Examples
@@ -20,13 +21,10 @@ jobs:
2021 - stage : Tests
2122 name : " Unit Tests"
2223 language : objective-c
23- cache :
24- bundler : true
24+ cache : bundler
2525 env :
2626 - TEST_FRAMEWORK_SCHEME="TPPDF-Package"
2727 - PROJECT="TPPDF.xcodeproj"
28- install :
29- - bundle install
3028 script :
3129 - swift package resolve
3230 - xcodebuild -project ${PROJECT}
3735 -destination "${DESTINATION}"
3836 -configuration Debug
3937 ONLY_ACTIVE_ARCH=YES
40- test | bundle exec xcpretty
38+ test | xcpretty && exit ${PIPESTATUS[0]}
4139
4240 after_success :
4341 - slather coverage -t --build-directory ${TRAVIS_BUILD_DIR}/derived_data --verb>
5250 bundler : true
5351 cocoapods : true
5452 podfile : " ${ROOT_FOLDER}/Podfile"
55- install :
56- - bundle install
57- - bundle exec pod install --project-directory="${ROOT_FOLDER}"
5853 before_script :
54+ - bundle exec pod install --project-directory="${ROOT_FOLDER}"
5955 - cd "${ROOT_FOLDER}"
6056 script :
6157 - xcodebuild -workspace "$WORKSPACE"
@@ -65,39 +61,33 @@ jobs:
6561 -configuration Debug
6662 -derivedDataPath ${TRAVIS_BUILD_DIR}/derived_data
6763 ONLY_ACTIVE_ARCH=YES
68- build | bundle exec xcpretty
64+ build | xcpretty && exit ${PIPESTATUS[0]}
6965 - cd ../
7066 - bundle exec pod lib lint --allow-warnings
7167
7268 - stage : Examples
7369 name : " Example iOS - Carthage"
7470 language : objective-c
75- cache :
76- bundler : true
71+ if : type != pull_request
7772 env :
7873 - ROOT_FOLDER="Example iOS-Carthage"
79- before_install :
80- - brew update
81- - brew outdated carthage || brew upgrade carthage
8274 before_script :
8375 - cd "${ROOT_FOLDER}"
8476 - echo 'github "techprimate/TPPDF" "'$(git rev-parse HEAD)'"' > Cartfile
85- - carthage update --platform ios
77+ - carthage update --platform ios --cache-builds
8678 script :
87- - xcodebuild -workspace "$WORKSPACE "
79+ - xcodebuild -project "$PROJECT "
8880 -scheme "$EXAMPLE_SCHEME"
8981 -sdk iphonesimulator
9082 -destination "$DESTINATION"
9183 -configuration Debug
9284 -derivedDataPath ${TRAVIS_BUILD_DIR}/derived_data
9385 ONLY_ACTIVE_ARCH=YES
94- build | bundle exec xcpretty
86+ build | xcpretty && exit ${PIPESTATUS[0]}
9587
9688 - stage : Examples
9789 name : " Example iOS - Swift PM"
9890 language : objective-c
99- cache :
100- bundler : true
10191 env :
10292 - ROOT_FOLDER="Example iOS-SwiftPM"
10393 script :
10797 -scheme ${EXAMPLE_SCHEME}
10898 -clonedSourcePackagesDirPath .
10999 -derivedDataPath ${TRAVIS_BUILD_DIR}/derived_data
110- -configuration Debug | bundle exec xcpretty
100+ -configuration Debug | xcpretty && exit ${PIPESTATUS[0]}
111101 - xcodebuild -project ${PROJECT}
112102 -scheme ${EXAMPLE_SCHEME}
113103 -clonedSourcePackagesDirPath .
@@ -116,7 +106,7 @@ jobs:
116106 -destination "${DESTINATION}"
117107 -configuration Debug
118108 ONLY_ACTIVE_ARCH=YES
119- build | bundle exec xcpretty
109+ build | xcpretty && exit ${PIPESTATUS[0]}
120110 - xcodebuild -project ${PROJECT}
121111 -scheme ${TEST_FRAMEWORK_SCHEME}
122112 -clonedSourcePackagesDirPath .
@@ -125,17 +115,13 @@ jobs:
125115 -destination "${DESTINATION}"
126116 -configuration Debug
127117 ONLY_ACTIVE_ARCH=YES
128- test | bundle exec xcpretty
118+ test | xcpretty && exit ${PIPESTATUS[0]}
129119
130120 - stage : Documentation
131121 name : Generate Documentation
132122 language : objective-c
133- git.depth : false
134- if : branch = master
135- cache :
136- bundler : true
137- install :
138- - bundle install
123+ if : branch = master AND type != pull_request
124+ cache : bundler
139125 script :
140126 - git remote update
141127 - git fetch origin gh-pages:gh-pages --depth 1
@@ -145,5 +131,5 @@ jobs:
145131 - git config user.name "Travis"
146132 - git config user.email "jazzy@travis-ci.com"
147133 - git commit -m "Updated docs for $TRAVIS_TAG"
148- - git remote add secure-origin https://${GITHUB_TOKEN}@github.com/$TRAVIS_REPO_SLUG.git
134+ - git remote add secure-origin https://${GITHUB_TOKEN}@github.com/${ TRAVIS_REPO_SLUG} .git
149135 - git push secure-origin gh-pages
0 commit comments