This repository has been archived by the owner on Oct 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 79
/
.travis.yml
executable file
·70 lines (70 loc) · 2.36 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
language: objective-c
osx_image: xcode9.3beta
git:
submodules: false
env:
global:
- LC_CTYPE=en_US.UTF-8
- LANG=en_US.UTF-8
- WORKSPACE=SwiftInstagram.xcworkspace
- SCHEME="SwiftInstagram-iOS"
- SDK=iphonesimulator11.3
matrix:
- TEST_TYPE=iOS
- TEST_TYPE=Lint
- TEST_TYPE=Carthage
- TEST_TYPE=CocoaPods
before_install:
- |
if [ "$TEST_TYPE" = CocoaPods ]; then
gem install cocoapods --pre --no-rdoc --no-ri --no-document --quiet
fi
if [ "$TEST_TYPE" = Lint ] || [ "$TEST_TYPE" = Carthage ]; then
brew update
fi
if [ "$TEST_TYPE" = Carthage ]; then
brew outdated carthage || brew upgrade carthage
fi
install:
- |
gem update --system --no-document
bundle install
if [ "$TEST_TYPE" = Lint ]; then
brew install swiftlint || brew upgrade swiftlint
elif [ "$TEST_TYPE" = CocoaPods ]; then
pod repo update --silent
fi
before_script:
- |
if [ "$TEST_TYPE" = Carthage ]; then
carthage update --no-use-binaries --use-submodules
fi
script:
- |
if [ "$TEST_TYPE" = iOS ]; then
set -o pipefail
xcodebuild -version
xcodebuild -showsdks
xcodebuild build -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk "$SDK" -configuration Debug -destination "platform=iOS Simulator,name=iPhone 8 Plus" | xcpretty -c
elif [ "$TEST_TYPE" = Lint ]; then
swiftlint lint
elif [ "$TEST_TYPE" = CocoaPods ]; then
pod lib lint
fi
before_deploy:
- carthage build --no-skip-current
- carthage archive SwiftInstagram
deploy:
- provider: releases
api_key:
secure: jYpv6cXD6AIuTONSVvjQHGUeYDs/J/mID0pIMaFLIh3cBo3EPeM29zmYKVeBjePr9BlUUmMJqcif8oddADYyeXQkDjWr2pBLARQmryMMi1dVNMvuBq4Tb/PV7BEwkDigIb9Qcpcm4HFdYigMRFp20bntBlnGb/tjwdq3XEe5766QuM7H22g41V8S9e7Na8K5gpRmew25mMASDkwSvZHuMA5+P6Q4nam5R0kA53uBIySWYW340EZ3B23oQdtdob2vk35Eu3bR+FFAsE1idw+sddua7eFGi5DVgTlXcwb3f7hG0JKKA9IUXcCSyd5AgLYGv5h+nFBmlRIeA84sQI9xcK+f0kBnHpakm/Xp8+a9NYodxfpyr8k/ZlVal16B6/p+BC6x3TAp6SgDeymuFMNxc6/Eyz/IGrCiJ+4tMmy+385jf8/+Gv6dVGg5fos329QWUzOxcKvCk/w9d5Nz5GCQlMvgH4N/YvTmSnPaRUIBeaN7VV+Kkr4ovUb9SeOlrrG+36GU60aBriv6ZqQ6BhndEraIXKsCItfSHqxcJspliAWzTqPOpg8SqBTBIWAcrVOtcpmo9TI5ndiS8R8EwuOcAJtrl7yaNJ70iUv2IewSdNbl1ZZV9CMnu83vAEwELszssmbJ1SbTLi4GfoECEw4CHpOKyk6Fh4WXBFcSLGgvce8=
file: SwiftInstagram.framework.zip
skip_cleanup: true
overwrite: true
on:
repo: AnderGoig/SwiftInstagram
tags: true
- provider: script
script: pod trunk push
on:
tags: true