-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
76 lines (63 loc) · 2.96 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
71
72
73
74
75
76
language: Objective-C
osx_image: xcode9
cache:
- bundler
- cocoapods
podfile: ./Example/Podfile
before_install:
- rvm install "ruby-2.3.0"
- rvm use 2.3.0
- bundle
- pod install --repo-update --project-directory=Example
notifications:
email: false
env:
global:
- UPLOAD_IOS_SNAPSHOT_BUCKET_NAME="assetsactioncontroller"
- AWS_ACCESS_KEY_ID="$ACCESS_KEY"
- AWS_SECRET_ACCESS_KEY="$SECRET_ACCESS"
- AWS_REGION="us-east-1"
- WORKSPACE=Example/PPAssetsActionController.xcworkspace
- SCHEME="PPAssetsActionController-Example"
- SCHEME_RUS="PPAssetsActionController_Example_Rus"
- SDK_IOS=iphonesimulator11.0
- DEST_IPAD="name=iPad Air 2,OS=10.2"
- DEST_IOS11="name=iPhone 6,OS=11.0"
- DEST_IOS10="name=iPhone 6,OS=10.2"
- DEST_IOS9="name=iPhone 6,OS=9.3"
- DEST_IOS8="name=iPhone 6,OS=8.4"
matrix:
- DEST="$DEST_IOS11" RUN_TESTS="YES" SEND_COVERAGE="YES" POD_LINT="YES" CARTHAGE="NO"
- DEST="$DEST_IOS10" RUN_TESTS="YES" SEND_COVERAGE="NO" POD_LINT="NO" CARTHAGE="YES"
- DEST="$DEST_IOS9" RUN_TESTS="YES" SEND_COVERAGE="NO" POD_LINT="NO" CARTHAGE="NO"
- DEST="$DEST_IOS8" RUN_TESTS="YES" SEND_COVERAGE="NO" POD_LINT="NO" CARTHAGE="NO"
- DEST="$DEST_IPAD" RUN_TESTS="YES" SEND_COVERAGE="NO" POD_LINT="NO" CARTHAGE="NO"
script:
- set -o pipefail
- SIM_UUID=`./.setup_sim.sh "$DEST"`
- if [ $RUN_TESTS == "YES" ]; then
xcodebuild build-for-testing test-without-building -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk "$SDK_IOS" -destination "id=$SIM_UUID" ONLY_ACTIVE_ARCH=YES | second_curtain | xcpretty -c;
else
xcodebuild build -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk "$SDK_IOS" -destination "id=$SIM_UUID" ONLY_ACTIVE_ARCH=YES | xcpretty -c;
fi
- if [ $POD_LINT == "YES" ]; then
pod lib lint --swift-version=4.0;
fi
- if [ $CARTHAGE == "YES" ]; then
carthage build --no-skip-current;
fi
after_success:
- test $SEND_COVERAGE = "YES" && ./.coverage.sh
before_deploy:
- carthage build --no-skip-current
- carthage archive PPAssetsActionController
deploy:
provider: releases
api_key:
secure: exAoFotLyoulZyzFiMtGoLCvRETao5kWFFUwxXp0g2uYtjLFWTmNK8rhjRltBycaXw+D2J1KcxLX3Rb+9WJlX7h94jtE+fZ01IoEZdEMA5Tiwdw4iq/EhAEMTlUYiJxq+daWTRpAWLo9i7B904GMPawVKUGDeQu4NpMgccRrFg58GKmmDIlJs71nhWE39BwtfNR2c4qaBiA3htwGcPsmSJz2EI268T1fKXHis3mH2OExNTcgLZLVHsva2c/iGNjZHq9LoBQCmM1uw08jFhjyM6dfyYIDzs6YdT/ztri7OtapGb8c8AxlSLTHVsBt+YuifHKEQiIkZ3cqGLsY4e5WzPOefZpgAYmXwumOijez0m6cIKH2tisY+2/8qpaPpZ1d6Too4deLg2dZ4bppdOE9chfF6ICm1SH9yApYmZpZ3QEGw/yez2SLypYVSDVBxR5OF2j5EfY0219sa8ttc92nYwYREI17mA0x3IYGiMCaZ8SO25ySMRudFkky8PKgKqV2KalVMWlJHZcuaG7A3KdGn+7fZ6GKfu98W8BgMECpUCjWW0m5nJ1z1PcpTByXAuyC0oPPsHzccZa1gZnJFW4xwj9x4xns4AQ/6MJk/uP8bToDhUxXXc2YXa8PFJEq36jLBGiPihNp4hg/2kQNQkihtWFAu7LfE0IeqVAYguDW9Sk=
file: PPAssetsActionController.framework.zip
skip_cleanup: true
on:
repo: pantuspavel/PPAssetsActionController
tags: true
condition: $DESTINATION = "$DEST_IOS10"