forked from spotify/SPTPersistentCache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (59 loc) · 4.27 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
cache:
- bundler
sudo: false
branches:
only:
- master
- /^release-.*$/
osx_image: xcode7.3
language: objective-c
before_install: ./ci/before_install.sh
bundler_args: --without documentation --without development --deployment --jobs=3 --retry=3
script:
- ./ci/script.sh
# This is a workaround for a Travis-CI bug where the log might get cut-off.
# See the [Travis-CI issue #4716](https://github.com/travis-ci/travis-ci/issues/4716).
- sleep 3
after_success: ./ci/after_success.sh
deploy:
provider: releases
api_key:
secure: <todo>
file:
SPTPersistentCache.framework.zip
on:
repo: spotify/SPTPersistentCache
tags: true
script: ./ci/deploy.sh
env:
global:
- LC_CTYPE=en_US.UTF-8
- LANG=en_US.UTF-8
- BUILD="build"
- BUILD_TEST="build test"
- ENABLE_CODE_COVERAGE="-enableCodeCoverage YES"
- PROJECT_LIBRARY="SPTPersistentCache.xcodeproj"
- PROJECT_DEMO="SPTPersistentCacheDemo/SPTPersistentCacheDemo.xcodeproj"
- PROJECT_FRAMEWORK="SPTPersistentCacheFramework/SPTPersistentCacheFramework.xcodeproj"
- PROJECT_TOOL="Viewer/SPTPersistentCacheViewer.xcodeproj"
- SCHEME_IOS_LIBRARY="SPTPersistentCache"
- SCHEME_IOS_FRAMEWORK="SPTPersistentCache-iOS"
- SCHEME_OSX_FRAMEWORK="SPTPersistentCache-OSX"
- SCHEME_DEMO="SPTPersistentCacheDemo"
- SCHEME_TOOL="SPTPersistentCacheViewer"
- PODSPEC="SPTPersistentCache.podspec"
- EXPECTED_LICENSE_HEADER_FILE="./other/expected_license_header.txt"
- LICENSED_SOURCE_FILES_GLOB="{{Sources,Viewer}/*.{h,m},Tests/*.m,include/*/*.h,SPTPersistentCacheDemo/*/*.{h,m}}"
matrix:
- TEST_SDK=iphonesimulator TEST_DEST="platform='iOS Simulator',OS=8.1,name='iPhone 6'" SCHEME="$SCHEME_IOS_LIBRARY" BUILD_ACTIONS="$BUILD_TEST" EXTRA_ARGUMENTS="$ENABLE_CODE_COVERAGE" PROJECT="$PROJECT_LIBRARY"
- TEST_SDK=iphonesimulator TEST_DEST="platform='iOS Simulator',OS=8.2,name='iPhone 4s'" SCHEME="$SCHEME_IOS_LIBRARY" BUILD_ACTIONS="$BUILD_TEST" EXTRA_ARGUMENTS="$ENABLE_CODE_COVERAGE" PROJECT="$PROJECT_LIBRARY"
- TEST_SDK=iphonesimulator TEST_DEST="platform='iOS Simulator',OS=8.3,name='iPhone 5'" SCHEME="$SCHEME_IOS_LIBRARY" BUILD_ACTIONS="$BUILD_TEST" EXTRA_ARGUMENTS="$ENABLE_CODE_COVERAGE" PROJECT="$PROJECT_LIBRARY"
- TEST_SDK=iphonesimulator TEST_DEST="platform='iOS Simulator',OS=8.4,name='iPhone 5s'" SCHEME="$SCHEME_IOS_LIBRARY" BUILD_ACTIONS="$BUILD_TEST" EXTRA_ARGUMENTS="$ENABLE_CODE_COVERAGE" PROJECT="$PROJECT_LIBRARY"
- TEST_SDK=iphonesimulator TEST_DEST="platform='iOS Simulator',OS=9.0,name='iPhone 6'" SCHEME="$SCHEME_IOS_LIBRARY" BUILD_ACTIONS="$BUILD_TEST" EXTRA_ARGUMENTS="$ENABLE_CODE_COVERAGE" PROJECT="$PROJECT_LIBRARY"
- TEST_SDK=iphonesimulator TEST_DEST="platform='iOS Simulator',OS=9.1,name='iPhone 5'" SCHEME="$SCHEME_IOS_LIBRARY" BUILD_ACTIONS="$BUILD_TEST" EXTRA_ARGUMENTS="$ENABLE_CODE_COVERAGE" PROJECT="$PROJECT_LIBRARY"
- TEST_SDK=iphonesimulator TEST_DEST="platform='iOS Simulator',OS=9.2,name='iPhone 6s'" SCHEME="$SCHEME_IOS_LIBRARY" BUILD_ACTIONS="$BUILD_TEST" EXTRA_ARGUMENTS="$ENABLE_CODE_COVERAGE" PROJECT="$PROJECT_LIBRARY"
- TEST_SDK=macosx TEST_DEST="platform='OS X',arch=x86_64" SCHEME="$SCHEME_IOS_LIBRARY" BUILD_ACTIONS="$BUILD_TEST" EXTRA_ARGUMENTS="$ENABLE_CODE_COVERAGE" PROJECT="$PROJECT_LIBRARY"
- TEST_SDK=iphonesimulator TEST_DEST="platform='iOS Simulator',OS=8.1,name='iPhone 6'" SCHEME="$SCHEME_DEMO" BUILD_ACTIONS="$BUILD" EXTRA_ARGUMENTS="" PROJECT="$PROJECT_DEMO"
- TEST_SDK=iphonesimulator TEST_DEST="platform='iOS Simulator',OS=8.1,name='iPhone 6'" SCHEME="$SCHEME_IOS_FRAMEWORK" BUILD_ACTIONS="$BUILD" EXTRA_ARGUMENTS="" PROJECT="$PROJECT_FRAMEWORK"
- TEST_SDK=macosx TEST_DEST="platform='OS X',arch=x86_64" SCHEME="$SCHEME_OSX_FRAMEWORK" BUILD_ACTIONS="$BUILD" EXTRA_ARGUMENTS="" PROJECT="$PROJECT_FRAMEWORK"
- TEST_SDK=macosx TEST_DEST="platform='OS X',arch=x86_64" SCHEME="$SCHEME_TOOL" BUILD_ACTIONS="$BUILD" EXTRA_ARGUMENTS="" PROJECT="$PROJECT_TOOL"