forked from material-components/material-components-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (37 loc) · 1.13 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
42
43
language: objective-c
osx_image: xcode8.3
sudo: false
# Only do a shallow clone of our Git repo.
# https://docs.travis-ci.com/user/customizing-the-build#Git-Clone-Depth
git:
depth: 3
# Only fire off builds for specific branches.
branches:
only:
- develop
- stable
- /^feature-.*$/
env:
global:
- LC_CTYPE=en_US.UTF-8
- LANG=en_US.UTF-8
matrix:
- DESTINATION="platform=iOS Simulator,name=iPhone 7,OS=10.2" SDK="iphonesimulator10.2"
before_install:
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
- scripts/install_contributor_tools
# The travis_wait prefix ensures that the build doesn't error out because too much time went past
# without any output being produced.
#
# Note that we only test unit tests in an attempt to get reasonable performance out of Travis CI.
script:
- set -o pipefail
- xcodebuild -version
- xcodebuild -showsdks
- pod --version
- scripts/prep_all
- travis_wait scripts/build_all --verbose
- travis_wait scripts/test_all catalog/MDCCatalog.xcworkspace:MDCUnitTests
# Upload our testing coverage to codecov.io.
after_success:
- bash <(curl -s https://codecov.io/bash)