summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-03-08 10:26:35 +0800
committerraveit65 <[email protected]>2019-03-10 15:19:57 +0100
commit308d0d31734c59650af5cd4f5542df4b409c672b (patch)
treef8f31f07fa2f2c541f56c66a5053986e5d3dbed0
parent4553a339bacf72e818781b6f8d961bdb8f60b5e6 (diff)
downloadmate-panel-308d0d31734c59650af5cd4f5542df4b409c672b.tar.bz2
mate-panel-308d0d31734c59650af5cd4f5542df4b409c672b.tar.xz
[ci] switch to use build scripts on master branch
-rw-r--r--.travis.yml12
1 files 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}