Skip to content

Commit 6982f86

Browse files
committed
Improve coverity Travis build
- Don't start a VM at all when not needed - Don't require the less-reliable non-containerised infrastructure (sudo: required)
1 parent 894a20f commit 6982f86

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.travis.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,9 @@ jobs:
240240

241241
# Run Coverity
242242
- stage: Test different OS/CXX/Flags
243+
if: type = cron
243244
os: linux
244-
sudo: required
245+
sudo: false
245246
compiler: gcc
246247
cache: ccache
247248
addons:
@@ -261,12 +262,6 @@ jobs:
261262
build_command: "make -C src -j2; make -C jbmc/src -j2"
262263
branch_pattern: "develop"
263264
before_install:
264-
- |
265-
if [[ "${TRAVIS_EVENT_TYPE}" != "cron" ]]
266-
then
267-
echo "This is not a cron build and build is not needed."
268-
travis_terminate 0
269-
fi
270265
- mkdir bin ; ln -s /usr/bin/gcc-5 bin/gcc
271266
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 90
272267
- g++ --version

0 commit comments

Comments
 (0)