Skip to content

Commit c0ef463

Browse files
committed
Travis: use conditional builds for cron jobs
1 parent 776a672 commit c0ef463

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.travis.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ jobs:
247247

248248
# Run Coverity
249249
- stage: Test different OS/CXX/Flags
250+
if: type = cron
250251
os: linux
251252
sudo: required
252253
compiler: gcc
@@ -267,12 +268,6 @@ jobs:
267268
build_command: "make -C src -j2"
268269
branch_pattern: "develop"
269270
before_install:
270-
- |
271-
if [[ "${TRAVIS_EVENT_TYPE}" != "cron" ]]
272-
then
273-
echo "This is not a cron build and build is not needed."
274-
travis_terminate 0
275-
fi
276271
- mkdir bin ; ln -s /usr/bin/gcc-5 bin/gcc
277272
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 90
278273
- g++ --version

0 commit comments

Comments
 (0)