This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy path.travis.yml
41 lines (36 loc) · 1.94 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
language: objective-c
osx_image: xcode7.2
env:
global:
- PROJECT="Support/ApplicationInsights.xcodeproj"
- SDK="iphonesimulator"
matrix:
- SCHEME="ApplicationInsights" DESTINATION="OS=8.2,name=iPhone 6" CONFIGURATION="Debug" RUN_TESTS="YES" POD_LINT="NO" XCODEBUILD_GCC_PREPROCESSOR_DEFINITIONS="CI=1"
- SCHEME="ApplicationInsights" DESTINATION="OS=8.3,name=iPhone 6 Plus" CONFIGURATION="Debug" RUN_TESTS="YES" POD_LINT="NO" XCODEBUILD_GCC_PREPROCESSOR_DEFINITIONS="CI=1"
- SCHEME="ApplicationInsights" DESTINATION="OS=9.1,name=iPad Air 2" CONFIGURATION="Debug" RUN_TESTS="YES" POD_LINT="NO" XCODEBUILD_GCC_PREPROCESSOR_DEFINITIONS="CI=1"
- SCHEME="ApplicationInsights" DESTINATION="OS=9.2,name=iPhone 5" CONFIGURATION="Debug" RUN_TESTS="YES" POD_LINT="NO" XCODEBUILD_GCC_PREPROCESSOR_DEFINITIONS="CI=1"
- SCHEME="ApplicationInsights Framework" CONFIGURATION="Release" RUN_TESTS="NO" POD_LINT="YES"
before_install:
- gem install cocoapods --no-rdoc --no-ri --no-document --quiet
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
- brew tap homebrew/versions
- brew install appledoc22
- brew link --force appledoc22
notifications:
slack:
rooms:
- secure: dCzA1+dtjKkHk2PK6RWBSE0Obgf0CvIejhXXH4Aba29zfVQg5Bv0yWJ34YHnPMFPA7+eyFrW2TqGqI7gA7L7Ju0RWHwu9Z0XayCcMpOCZVKTOSf/7SrAvtODKNzAT/S55HZOaj8yxK6l5a0cMGXfGM7j+NLdkjyba7ypQKsn0ug=
on_success: change
on_failure: always
script:
- set -o pipefail
- COMMAND="xcodebuild -project '$PROJECT' -scheme '$SCHEME' -sdk '$SDK' -configuration '$CONFIGURATION' XCODEBUILD_GCC_PREPROCESSOR_DEFINITIONS='$XCODEBUILD_GCC_PREPROCESSOR_DEFINITIONS'"
- if [ $RUN_TESTS == "YES" ]; then
COMMAND+=" -destination '$DESTINATION' clean test";
fi
- COMMAND+=" | xcpretty -c"
- eval $COMMAND
- if [ $POD_LINT == "YES" ]; then
cp -R Products/ApplicationInsights ApplicationInsights;
pod lib lint;
fi