forked from jacksonh/CleanroomASL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (29 loc) · 2.19 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
language: objective-c
xcode_project: CleanroomASL.xcodeproj
osx_image: xcode8
git:
depth: 1
submodules: false
before_install:
- git submodule update --init
install:
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
script:
- ./BuildControl/bin/travisBuildHelper.sh build iOS
- ./BuildControl/bin/travisBuildHelper.sh test iOS
- ./BuildControl/bin/travisBuildHelper.sh build macOS
- ./BuildControl/bin/travisBuildHelper.sh test macOS
- ./BuildControl/bin/travisBuildHelper.sh build tvOS
- ./BuildControl/bin/travisBuildHelper.sh test tvOS
- ./BuildControl/bin/travisBuildHelper.sh build watchOS
after_failure:
- test -f "CleanroomASL-iOS-build.log" && tail -n 2500 "CleanroomASL-iOS-build.log"
- test -f "CleanroomASL-iOS-test.log" && tail -n 2500 "CleanroomASL-iOS-test.log"
- test -f "CleanroomASL-iOS-test.log" && LINE_BEFORE=`cat "CleanroomASL-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 "CleanroomASL-iOS-test.log" | tail -n 1` && cat "$LOG_FILE"
- test -f "CleanroomASL-macOS-build.log" && tail -n 2500 "CleanroomASL-macOS-build.log"
- test -f "CleanroomASL-macOS-test.log" && tail -n 2500 "CleanroomASL-macOS-test.log"
- test -f "CleanroomASL-macOS-test.log" && LINE_BEFORE=`cat "CleanroomASL-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 "CleanroomASL-macOS-test.log" | tail -n 1` && cat "$LOG_FILE"
- test -f "CleanroomASL-tvOS-build.log" && tail -n 2500 "CleanroomASL-tvOS-build.log"
- test -f "CleanroomASL-tvOS-test.log" && tail -n 2500 "CleanroomASL-tvOS-test.log"
- test -f "CleanroomASL-tvOS-test.log" && LINE_BEFORE=`cat "CleanroomASL-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 "CleanroomASL-tvOS-test.log" | tail -n 1` && cat "$LOG_FILE"
- test -f "CleanroomASL-watchOS-build.log" && tail -n 2500 "CleanroomASL-watchOS-build.log"