forked from parse-community/Parse-SDK-iOS-OSX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (39 loc) · 790 Bytes
/
.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
branches:
only:
- master
language: objective-c
os: osx
osx_image: xcode7.2
env:
global:
- LC_CTYPE=en_US.UTF-8
- LANG=en_US.UTF-8
matrix:
- TEST_TYPE=iOS
- TEST_TYPE=OSX
- TEST_TYPE=Deployment
- TEST_TYPE=Starters
- TEST_TYPE=CocoaPods
- TEST_TYPE=Carthage
git:
submodules: false
before_install:
- git submodule update --init --recursive
install:
- |
if [ -n "$TEST_TYPE" ]; then
bundle install
if [ "$TEST_TYPE" == "Carthage" ]; then
brew update
brew install carthage
fi
fi
script:
- |
TEST_TYPE=$(echo "$TEST_TYPE" | tr '[:upper:]' '[:lower:]')
bundle exec rake test:$TEST_TYPE
after_success:
- |
if [ "$TEST_TYPE" = "ios" ] || [ "$TEST_TYPE" = "osx" ]; then
bash <(curl -s https://codecov.io/bash)
fi