Skip to content

Commit f8cc2a1

Browse files
committed
Travis: use conditional builds for cron jobs
1 parent 0664ccf commit f8cc2a1

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
@@ -269,6 +269,7 @@ jobs:
269269

270270
# Run Coverity
271271
- stage: Test different OS/CXX/Flags
272+
if: type = cron
272273
os: linux
273274
sudo: required
274275
compiler: gcc
@@ -289,12 +290,6 @@ jobs:
289290
build_command: "make -C src -j2"
290291
branch_pattern: "develop"
291292
before_install:
292-
- |
293-
if [[ "${TRAVIS_EVENT_TYPE}" != "cron" ]]
294-
then
295-
echo "This is not a cron build and build is not needed."
296-
travis_terminate 0
297-
fi
298293
- mkdir bin ; ln -s /usr/bin/gcc-5 bin/gcc
299294
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 90
300295
- g++ --version

0 commit comments

Comments
 (0)