forked from kawoou/FlexibleImage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (32 loc) · 1.35 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
language: objective-c
osx_image: xcode9
env:
global:
- FRAMEWORK_NAME=FlexibleImage
- PROJECT="FlexibleImage.xcodeproj"
matrix:
- DESTINATION="OS=2.0,name=Apple Watch - 42mm" TARGET="FlexibleImageWatchOS" PLATFORM="watchOS"
- DESTINATION="platform=iOS Simulator,OS=8.1,name=iPhone 4S" TARGET="FlexibleImageIOS" PLATFORM="iOS"
- DESTINATION="OS=9.0,name=Apple TV 1080p" TARGET="FlexibleImageTvOS" PLATFORM="tvOS"
- DESTINATION="arch=x86_64" TARGET="FlexibleImageMacOS" PLATFORM="osx"
before_install:
- gem install cocoapods --pre --no-rdoc --no-ri --no-document --quiet
- bash update_carthage.sh 0.22
script:
- set -o pipefail
- xcodebuild -version
- xcodebuild -showsdks
- xcodebuild -project "$PROJECT" -list
- xcodebuild -project "$PROJECT" -target "$TARGET" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO clean build | xcpretty
- xcodebuild -project "$PROJECT" -target "$TARGET" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO clean build | xcpretty
before_deploy:
- carthage build --platform $PLATFORM --no-skip-current
- carthage archive $TARGET
deploy:
provider: releases
api_key: $GH_TOKEN
file: $TARGET.framework.zip
skip_cleanup: true
on:
repo: Kawoou/FlexibleImage
tags: true