-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
42 lines (36 loc) · 2.9 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
language: objective-c
xcode_project: CleanroomDateTime.xcodeproj
os: osx
osx_image: xcode9.3
branches:
only:
- master
git:
depth: 1
submodules: false
before_install:
- sudo systemsetup -settimezone America/New_York # temporary hack: NYC timezone is required for some MBDataEnvironment date-related unit tests
- travis_wait 30 git submodule update --init
install:
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
- rm -rf ~/Library/Developer/CoreSimulator # these two lines are a hack around a recurring Travis problem: multiple versions of the
- sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService # same simulator: https://github.com/travis-ci/travis-ci/issues/7580#issuecomment-292974395
script:
- travis_wait 30 ./BuildControl/bin/travisBuildHelper.sh build iOS
- travis_wait 30 ./BuildControl/bin/travisBuildHelper.sh test iOS
- travis_wait 30 ./BuildControl/bin/travisBuildHelper.sh build macOS
- travis_wait 30 ./BuildControl/bin/travisBuildHelper.sh test macOS
- travis_wait 30 ./BuildControl/bin/travisBuildHelper.sh build tvOS
- travis_wait 30 ./BuildControl/bin/travisBuildHelper.sh test tvOS
- travis_wait 30 ./BuildControl/bin/travisBuildHelper.sh build watchOS
after_failure:
- test -f "CleanroomDateTime-iOS-build.log" && tail -n 2500 "CleanroomDateTime-iOS-build.log"
- test -f "CleanroomDateTime-iOS-test.log" && tail -n 2500 "CleanroomDateTime-iOS-test.log"
- test -f "CleanroomDateTime-iOS-test.log" && LINE_BEFORE=`cat "CleanroomDateTime-iOS-test.log" | grep -n "IDETestOperationsObserverDebug. Writing diagnostic log for test session to." | awk -F':' '{print $1}'` && LINE=`expr $LINE_BEFORE + 1` && LOG_FILE=`head -n $LINE "CleanroomDateTime-iOS-test.log" | tail -n 1` && cat "$LOG_FILE"
- test -f "CleanroomDateTime-macOS-build.log" && tail -n 2500 "CleanroomDateTime-macOS-build.log"
- test -f "CleanroomDateTime-macOS-test.log" && tail -n 2500 "CleanroomDateTime-macOS-test.log"
- test -f "CleanroomDateTime-macOS-test.log" && LINE_BEFORE=`cat "CleanroomDateTime-macOS-test.log" | grep -n "IDETestOperationsObserverDebug. Writing diagnostic log for test session to." | awk -F':' '{print $1}'` && LINE=`expr $LINE_BEFORE + 1` && LOG_FILE=`head -n $LINE "CleanroomDateTime-macOS-test.log" | tail -n 1` && cat "$LOG_FILE"
- test -f "CleanroomDateTime-tvOS-build.log" && tail -n 2500 "CleanroomDateTime-tvOS-build.log"
- test -f "CleanroomDateTime-tvOS-test.log" && tail -n 2500 "CleanroomDateTime-tvOS-test.log"
- test -f "CleanroomDateTime-tvOS-test.log" && LINE_BEFORE=`cat "CleanroomDateTime-tvOS-test.log" | grep -n "IDETestOperationsObserverDebug. Writing diagnostic log for test session to." | awk -F':' '{print $1}'` && LINE=`expr $LINE_BEFORE + 1` && LOG_FILE=`head -n $LINE "CleanroomDateTime-tvOS-test.log" | tail -n 1` && cat "$LOG_FILE"
- test -f "CleanroomDateTime-watchOS-build.log" && tail -n 2500 "CleanroomDateTime-watchOS-build.log"