-
Notifications
You must be signed in to change notification settings - Fork 458
/
travis.yml.erb
45 lines (45 loc) · 1.32 KB
/
travis.yml.erb
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
language: objective-c
cache:
directories:
- build
jobs:
include:
- stage: build
osx_image: xcode12
script:
- ./scripts/build-for-test.sh
- stage: carthage
osx_image: xcode12
script:
<%-# Xcode 12 workarround. see: https://github.com/Carthage/Carthage/issues/3019#issuecomment-665136323 -%>
- echo 'EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200 = arm64 arm64e armv7 armv7s armv6 armv8' >> xcode12workarround.xcconfig
- echo 'EXCLUDED_ARCHS = $(inherited) $(EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_$(EFFECTIVE_PLATFORM_SUFFIX)__NATIVE_ARCH_64_BIT_$(NATIVE_ARCH_64_BIT)__XCODE_$(XCODE_VERSION_MAJOR))' >> xcode12workarround.xcconfig
- XCODE_XCCONFIG_FILE=`pwd`/xcode12workarround.xcconfig carthage build --no-skip-current
- &test
stage: 'test'
osx_image: xcode12
script:
- echo 'Dummy script'
<%- xcodebuilds_ignore_long_time_testing.each do |k| -%>
- <<: *test
script:
- <%= k %>
<%- end -%>
- &long_time_test
stage: 'test (for long time)'
osx_image: xcode12
script:
- echo 'Dummy script'
<%- xcodebuilds_for_long_time_testing.each do |k| -%>
- <<: *long_time_test
script:
- <%= k %>
<%- end -%>
env:
global:
- LANG=en_US.UTF-8
- LC_ALL=en_US.UTF-8
branches:
only:
- master
skip_cleanup: true