-
Notifications
You must be signed in to change notification settings - Fork 153
/
.travis.yml
42 lines (36 loc) · 2.83 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: CleanroomLogger.xcodeproj
os: osx
osx_image: xcode10.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-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 "CleanroomLogger-iOS-build.log" && tail -n 2500 "CleanroomLogger-iOS-build.log"
- test -f "CleanroomLogger-iOS-test.log" && tail -n 2500 "CleanroomLogger-iOS-test.log"
- test -f "CleanroomLogger-iOS-test.log" && LINE_BEFORE=`cat "CleanroomLogger-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 "CleanroomLogger-iOS-test.log" | tail -n 1` && cat "$LOG_FILE"
- test -f "CleanroomLogger-macOS-build.log" && tail -n 2500 "CleanroomLogger-macOS-build.log"
- test -f "CleanroomLogger-macOS-test.log" && tail -n 2500 "CleanroomLogger-macOS-test.log"
- test -f "CleanroomLogger-macOS-test.log" && LINE_BEFORE=`cat "CleanroomLogger-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 "CleanroomLogger-macOS-test.log" | tail -n 1` && cat "$LOG_FILE"
- test -f "CleanroomLogger-tvOS-build.log" && tail -n 2500 "CleanroomLogger-tvOS-build.log"
- test -f "CleanroomLogger-tvOS-test.log" && tail -n 2500 "CleanroomLogger-tvOS-test.log"
- test -f "CleanroomLogger-tvOS-test.log" && LINE_BEFORE=`cat "CleanroomLogger-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 "CleanroomLogger-tvOS-test.log" | tail -n 1` && cat "$LOG_FILE"
- test -f "CleanroomLogger-watchOS-build.log" && tail -n 2500 "CleanroomLogger-watchOS-build.log"