forked from IBAnimatable/IBAnimatable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (31 loc) · 1.46 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
language: objective-c
osx_image: xcode10
env:
global:
- LC_CTYPE=en_US.UTF-8
- LANG=en_US.UTF-8
- WORKSPACE="IBAnimatable.xcworkspace"
- IOS_FRAMEWORK_SCHEME="IBAnimatable"
- IOS_APP_SCHEME="IBAnimatableApp"
matrix:
- DESTINATION="OS=10.3.1,name=iPad Pro (12.9 Inch)" SCHEME=${IOS_FRAMEWORK_SCHEME} APP_SCHEME=${IOS_APP_SCHEME}
- DESTINATION="OS=9.3,name=iPhone 6s Plus" SCHEME=${IOS_FRAMEWORK_SCHEME} APP_SCHEME=${IOS_APP_SCHEME}
- DESTINATION="OS=11.1,name=iPhone 7 Plus" SCHEME=${IOS_FRAMEWORK_SCHEME} APP_SCHEME=${IOS_APP_SCHEME}
before_install:
- bundle install
- brew update
- brew outdated swiftlint || brew upgrade swiftlint
script:
- set -o pipefail
- xcodebuild -version
- xcodebuild -showsdks
# Build Framework in Release
- xcodebuild clean build -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Release | xcpretty;
# Test Framework in Release
- xcodebuild clean -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test | xcpretty;
# Build App in Release
- xcodebuild clean build -workspace "$WORKSPACE" -scheme "$APP_SCHEME" -destination "$DESTINATION" -configuration Release | xcpretty;
- bundle exec danger
after_success:
- sleep 10 # Workaround for https://github.com/travis-ci/travis-ci/issues/4725
- bash <(curl -s https://codecov.io/bash) -J 'IBAnimatable'