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