From 308d0d31734c59650af5cd4f5542df4b409c672b Mon Sep 17 00:00:00 2001 From: Wu Xiaotian Date: Fri, 8 Mar 2019 10:26:35 +0800 Subject: [ci] switch to use build scripts on master branch --- .travis.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6c54fe17..3e6346e5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,8 +10,8 @@ branches: - gh-pages before_install: - - curl -Ls -o docker-build https://github.com/mate-desktop/mate-dev-scripts/raw/travis/travis/docker-build - - curl -Ls -o gen-index https://github.com/mate-desktop/mate-dev-scripts/raw/travis/travis/gen-index.sh + - curl -Ls -o docker-build https://github.com/mate-desktop/mate-dev-scripts/raw/master/travis/docker-build + - curl -Ls -o gen-index https://github.com/mate-desktop/mate-dev-scripts/raw/master/travis/gen-index.sh - chmod +x docker-build gen-index install: @@ -182,12 +182,16 @@ variables: build_scripts: - if [ ${DISTRO_NAME} == "fedora" ];then - - curl -Ls -o fedora.sh https://github.com/mate-desktop/mate-dev-scripts/raw/travis/travis/fedora.sh + - curl -Ls -o fedora.sh https://github.com/mate-desktop/mate-dev-scripts/raw/master/travis/fedora.sh - bash ./fedora.sh - fi - ./autogen.sh - scan-build $CHECKERS ./configure - - scan-build $CHECKERS --keep-cc -o html-report make + - if [ $CPU_COUNT -gt 1 ]; then + - scan-build $CHECKERS --keep-cc -o html-report make -j $CPU_COUNT + - else + - scan-build $CHECKERS --keep-cc -o html-report make + - fi before_scripts: - cd ${START_DIR} -- cgit v1.2.1