Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 75a58e6

Browse files
committed
[[ Tests ]] Fold log on travis
1 parent 0e23a84 commit 75a58e6

File tree

2 files changed

+65
-5
lines changed

2 files changed

+65
-5
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ install:
7070
# Bootstrap the LCB compiler, build the default target set and run a
7171
# the default test suite.
7272
script: |
73+
echo "travis_fold:start:travisscript"
7374
case "${TRAVIS_OS_NAME}" in
7475
linux)
7576
BUILD_PLATFORM=linux
@@ -96,6 +97,7 @@ script: |
9697
make all-${BUILD_PLATFORM} &&
9798
${CHECK_COMMAND} make check-${BUILD_PLATFORM} V=1
9899
fi
100+
echo "travis_fold:end:travisscript"
99101
100102
addons:
101103
# Configuration for Coverity Scan integration

Makefile

Lines changed: 63 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,24 +67,61 @@ clean-linux:
6767
find . -name \*.lcb | xargs touch
6868

6969
check-common-%:
70+
ifneq ($(TRAVIS),undefined)
71+
@echo "travis_fold:start:testengine"
72+
@echo "TEST Engine"
73+
endif
7074
$(MAKE) -C tests bin_dir=../$*-bin
75+
ifneq ($(TRAVIS),undefined)
76+
@echo "travis_fold:end:testengine"
77+
@echo "travis_fold:start:testide"
78+
@echo "TEST IDE"
79+
endif
7180
$(MAKE) -C ide/tests bin_dir=../../$*-bin
81+
ifneq ($(TRAVIS),undefined)
82+
@echo "travis_fold:end:testide"
83+
@echo "travis_fold:start:testextensions"
84+
@echo "TEST Extensions"
85+
endif
7286
$(MAKE) -C extensions bin_dir=../$*-bin
73-
87+
ifneq ($(TRAVIS),undefined)
88+
@echo "travis_fold:end:testextensions"
89+
endif
7490
################################################################
7591
# Linux rules
7692
################################################################
7793

7894
LINUX_ARCHS = x86_64 x86
7995

8096
config-linux-%:
97+
ifneq ($(TRAVIS),undefined)
98+
@echo "travis_fold:start:config"
99+
@echo "CONFIGURE"
100+
endif
81101
./config.sh --platform linux-$*
82-
102+
ifneq ($(TRAVIS),undefined)
103+
@echo "travis_fold:end:config"
104+
endif
105+
83106
compile-linux-%:
107+
ifneq ($(TRAVIS),undefined)
108+
@echo "travis_fold:start:compile"
109+
@echo "COMPILE"
110+
endif
84111
$(MAKE) -C build-linux-$*/livecode default
85-
112+
ifneq ($(TRAVIS),undefined)
113+
@echo "travis_fold:end:compile"
114+
endif
115+
86116
check-linux-%:
117+
ifneq ($(TRAVIS),undefined)
118+
@echo "travis_fold:start:testcpp"
119+
@echo "TEST C++"
120+
endif
87121
$(MAKE) -C build-linux-$*/livecode check
122+
ifneq ($(TRAVIS),undefined)
123+
@echo "travis_fold:end:testcpp"
124+
endif
88125
$(MAKE) check-common-linux-$*
89126

90127
all-linux-%:
@@ -119,15 +156,36 @@ $(addsuffix -android,all config compile check): %: %-armv6
119156
################################################################
120157

121158
config-mac:
159+
ifneq ($(TRAVIS),undefined)
160+
@echo "travis_fold:start:config"
161+
@echo "CONFIGURE"
162+
endif
122163
./config.sh --platform mac
123-
164+
ifneq ($(TRAVIS),undefined)
165+
@echo "travis_fold:end:config"
166+
endif
167+
124168
compile-mac:
169+
ifneq ($(TRAVIS),undefined)
170+
@echo "travis_fold:start:compile"
171+
@echo "COMPILE"
172+
endif
125173
$(XCODEBUILD) -project "build-mac$(BUILD_SUBDIR)/$(BUILD_PROJECT).xcodeproj" -configuration $(BUILDTYPE) -target default \
126174
$(XCODEBUILD_FILTER)
127-
175+
ifneq ($(TRAVIS),undefined)
176+
@echo "travis_fold:end:compile"
177+
endif
178+
128179
check-mac:
180+
ifneq ($(TRAVIS),undefined)
181+
@echo "travis_fold:start:testcpp"
182+
@echo "TEST C++"
183+
endif
129184
$(XCODEBUILD) -project "build-mac$(BUILD_SUBDIR)/$(BUILD_PROJECT).xcodeproj" -configuration $(BUILDTYPE) -target check \
130185
$(XCODEBUILD_FILTER)
186+
ifneq ($(TRAVIS),undefined)
187+
@echo "travis_fold:end:testcpp"
188+
endif
131189
$(MAKE) check-common-mac
132190

133191

0 commit comments

Comments
 (0)