-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
35 lines (30 loc) · 1.16 KB
/
.travis.yml
File metadata and controls
35 lines (30 loc) · 1.16 KB
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
language: objective-c
matrix:
include:
- osx_image: xcode7.3
- osx_image: xcode8.2
before_install:
- rvm install 2.4.0
install:
- gem install slather
- gem install cocoapods
script:
- pod lib lint --allow-warnings
- xcodebuild -scheme 'BMSAnalyticsAPI iOS' clean build CODE_SIGN_IDENTITY= CODE_SIGNING_REQUIRED=NO
- xcodebuild -scheme 'BMSAnalyticsAPI watchOS' clean build CODE_SIGN_IDENTITY= CODE_SIGNING_REQUIRED=NO
# For Xcode 7, test with iOS 8.1
- if [[ "${TRAVIS_JOB_NUMBER}" = *".1"* ]]; then
xcodebuild test -scheme 'BMSAnalyticsAPI Tests' -destination 'platform=iOS Simulator,name=iPhone 6,OS=8.1';
fi
# For Xcode 8, test with iOS 10.1
- if [[ "${TRAVIS_JOB_NUMBER}" = *".2"* ]]; then
xcodebuild test -scheme 'BMSAnalyticsAPI Tests' -destination 'platform=iOS Simulator,name=iPhone 6,OS=10.1';
fi
# When merging or pushing to the master branch, release a new version
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_BRANCH}" = "master" ] && [[ "${TRAVIS_JOB_NUMBER}" = *".2"* ]]; then
bash scripts/release.sh;
fi
after_success:
- if [[ "${TRAVIS_JOB_NUMBER}" = *".2"* ]]; then
slather;
fi