From ddd48b30f04f3997838294b3549e248b69eeab28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20B=C3=A1tyai?= Date: Sat, 17 Aug 2019 08:47:29 +0200 Subject: [PATCH] Don't run Coverity as the last task on Travis (#3017) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Follow-up after #3008 Having Coverity as the last task is fine for pull requests, but on the master branch, where the task actually performs the scans, it can have a large delay on the builds. This change moves the Coverity task back to the middle ground, and puts the ESP8266 build as the last, which seems to always run fast. This saves a few extra minutes of build time on the master branch. JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai@inf.u-szeged.hu --- .travis.yml | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7314503bf..af24a8394 100644 --- a/.travis.yml +++ b/.travis.yml @@ -87,12 +87,26 @@ matrix: sources: ubuntu-toolchain-r-test packages: [gcc-5, gcc-5-multilib] - - name: "ESP8266 Build Test" - install: make -f ./targets/esp8266/Makefile.travis install-noapt - script: make -f ./targets/esp8266/Makefile.travis script + - name: "Coverity Scan & SonarQube" + env: + # Declaration of the encrypted COVERITY_SCAN_TOKEN, created via the + # "travis encrypt" command using the project repo's public key. + - secure: "V7BdXv3FCVkFGEfKfWto6I+Sytou1zTCGyn49xurkBfKNsG/3vbkXfsbK1m6lCZxmY7W/1odpfjixpAPZgy2L4FgPZK6/UyVvC8pIFjDOubcEniN48haleSvm/ZFPLDifxDL2+VVFtK1oRYPtDBzzSoUCcfwovgk+Wy+tSBnhnyRLqO/WaI6PqFof7ECYMTRlJVjioZARVP4YmkBruIPmGDdR/3EvwowlxfuiFoPheix61ug4x3tpTBW2qWgvFjDyCZXFz4pJrBQPTAIbyKMxHcBykJjl9eR+dWAOsvE1Uw48tFOJxjKDfUttVQUPsyKFllmcCVS0fDYB5pzZOmRUPxJmox1jt8J1FY85Ri1PGY0THBPM2H7to4Yf2418Y3539epbN8p+79dwaM7e2OiJ2owukbWI7PoNqIz5DV5zxpIKsOQfeWuNLJOgsBePEIU7lz133Si/2d5W/7If46B1d+hZRBJfSYksgDqDU6G/voZkPf0K5bKe2O2BxiIW1DYk4yQ1ecZAkqGjZ8jG3zYGMG3mSF4VyuU4UGFG1Pg8fw7Ap5zuHxSVY1H9dtu4T6JQG3aj/x1omlzfw48DjgkwxVhf7Xvl3yfR7pzydYheLX3MZYtcVo7rWnglZFZoUjWDK1StbmzsvPftvwWtoDTWlzo4xeSXhahSJvJyc4U8Wc=" addons: - apt: - packages: [wget] + coverity_scan: + project: + name: "jerryscript-project/jerryscript" + description: "Ultra-lightweight JavaScript engine for the Internet of Things." + notification_email: rsipka.uszeged@partner.samsung.com + build_command: "tools/build.py --clean" + branch_pattern: master + sonarcloud: + organization: "jerryscript-project" + # Coverity Scan has already built the project by the time 'script' stage is reached. + script: tools/check-sonarqube.sh + cache: + directories: + - '${HOME}/.sonar/cache' - name: "Mbed OS 5/K64F Build Test" addons: @@ -138,26 +152,12 @@ matrix: install: make -f ./targets/tizenrt-artik053/Makefile.travis install script: make -f ./targets/tizenrt-artik053/Makefile.travis script - - name: "Coverity Scan & SonarQube" - env: - # Declaration of the encrypted COVERITY_SCAN_TOKEN, created via the - # "travis encrypt" command using the project repo's public key. - - secure: "V7BdXv3FCVkFGEfKfWto6I+Sytou1zTCGyn49xurkBfKNsG/3vbkXfsbK1m6lCZxmY7W/1odpfjixpAPZgy2L4FgPZK6/UyVvC8pIFjDOubcEniN48haleSvm/ZFPLDifxDL2+VVFtK1oRYPtDBzzSoUCcfwovgk+Wy+tSBnhnyRLqO/WaI6PqFof7ECYMTRlJVjioZARVP4YmkBruIPmGDdR/3EvwowlxfuiFoPheix61ug4x3tpTBW2qWgvFjDyCZXFz4pJrBQPTAIbyKMxHcBykJjl9eR+dWAOsvE1Uw48tFOJxjKDfUttVQUPsyKFllmcCVS0fDYB5pzZOmRUPxJmox1jt8J1FY85Ri1PGY0THBPM2H7to4Yf2418Y3539epbN8p+79dwaM7e2OiJ2owukbWI7PoNqIz5DV5zxpIKsOQfeWuNLJOgsBePEIU7lz133Si/2d5W/7If46B1d+hZRBJfSYksgDqDU6G/voZkPf0K5bKe2O2BxiIW1DYk4yQ1ecZAkqGjZ8jG3zYGMG3mSF4VyuU4UGFG1Pg8fw7Ap5zuHxSVY1H9dtu4T6JQG3aj/x1omlzfw48DjgkwxVhf7Xvl3yfR7pzydYheLX3MZYtcVo7rWnglZFZoUjWDK1StbmzsvPftvwWtoDTWlzo4xeSXhahSJvJyc4U8Wc=" + - name: "ESP8266 Build Test" + install: make -f ./targets/esp8266/Makefile.travis install-noapt + script: make -f ./targets/esp8266/Makefile.travis script addons: - coverity_scan: - project: - name: "jerryscript-project/jerryscript" - description: "Ultra-lightweight JavaScript engine for the Internet of Things." - notification_email: rsipka.uszeged@partner.samsung.com - build_command: "tools/build.py --clean" - branch_pattern: master - sonarcloud: - organization: "jerryscript-project" - # Coverity Scan has already built the project by the time 'script' stage is reached. - script: tools/check-sonarqube.sh - cache: - directories: - - '${HOME}/.sonar/cache' + apt: + packages: [wget] fast_finish: true