aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2018-05-18 23:25:54 +0200
committerStefan Schmidt <s.schmidt@samsung.com>2018-05-18 23:25:54 +0200
commit8cb811e3d70460de074c150a0d1d3f208eb5ed3e (patch)
treef6c8cab7e60ef3da7badaed27ccc96431b527826
parentfoo (diff)
downloadefl-devs/stefan/travis-reliable-ci.tar.gz
we should try to use the coverity project we already have to submit buildsdevs/stefan/travis-reliable-ci
-rwxr-xr-x.ci/ci-linux-build.sh10
-rw-r--r--.travis.yml18
2 files changed, 13 insertions, 15 deletions
diff --git a/.ci/ci-linux-build.sh b/.ci/ci-linux-build.sh
index 60150b715b..4ef8e51f24 100755
--- a/.ci/ci-linux-build.sh
+++ b/.ci/ci-linux-build.sh
@@ -64,6 +64,16 @@ if [ "$CI_BUILD_TYPE" = "release-ready" ]; then
make -j $PARALLEL_JOBS distcheck
fi
+if [ "$CI_BUILD_TYPE" = "coverity" ]; then
+ wget https://scan.coverity.com/download/linux64 --post-data "token=pmkPRn6qpo35d4ZrHRYJtA&project=Enlightenment+Foundation+Libraries" -O coverity_tool.tgz
+ tar xf coverity_tool.tgz
+ FILENAME=efl-$(date -I)-$(git rev-parse --short HEAD)
+ rm -rf cov-int
+ ./autogen.sh $MISC_COPTS --enable-hyphen --enable-wayland --enable-drm --enable-elput
+ cov-analysis-linux64-2017.07/bin/cov-build --dir cov-int make -j${PARALLEL_JOBS}
+ tar czvf $FILENAME.tgz cov-int
+ curl --form token=pmkPRn6qpo35d4ZrHRYJtA --form email=stefan@datenfreihafen.org --form file=@$FILENAME.tgz --form version=$FILENAME --form description=$FILENAME https://scan.coverity.com/builds?project=Enlightenment+Foundation+Libraries
+fi
# Known non-working options:
# --enable-g-main-loop fails to build
# --enable-ecore-buffer fails build in examples
diff --git a/.travis.yml b/.travis.yml
index 07822c8722..693278bd0c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -14,6 +14,7 @@ env:
- DISTRO=Fedora28 CI_BUILD_TYPE=misc
- DISTRO=Fedora28 CI_BUILD_TYPE=misc-disabled
- DISTRO=Fedora28 CI_BUILD_TYPE=release-ready
+ - DISTRO=Fedora28 CI_BUILD_TYPE=coverity
- DISTRO=Debian91
- DISTRO=Archlinux
@@ -34,6 +35,8 @@ matrix:
- os: osx
env: DISTRO=Fedora28 CI_BUILD_TYPE=release-ready
- os: osx
+ env: DISTRO=Fedora28 CI_BUILD_TYPE=coverity
+ - os: osx
env: DISTRO=Debian91
- os: osx
env: DISTRO=Archlinux
@@ -45,7 +48,6 @@ matrix:
env: DISTRO=Fedora28 CI_BUILD_TYPE=release-ready
before_install:
- - if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$DISTRO" == "" ]]; then echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca- ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then .ci/ci-osx-deps.sh ; fi
before_script:
@@ -55,7 +57,6 @@ before_script:
fi
script:
- - if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$DISTRO" == "" ]]; then .ci/ci-linux-deps-ubuntu1404.sh ; fi
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$DISTRO" != "" ]]; then
docker run -v `pwd`:/src -w /src stefanschmidt1/ci-support-files:$DISTRO /src/.ci/ci-linux-build.sh $CI_BUILD_TYPE
@@ -71,18 +72,6 @@ after_success:
docker push stefanschmidt1/ci-support-files:$DISTRO-$TRAVIS_BUILD_NUMBER
fi
-addons:
- apt:
- update: true
- coverity_scan:
- project:
- name: "Enlightenment/efl"
- description: "Build submitted via Travis CI"
- notification_email: stefan@datenfreihafen.org
- build_command_prepend: "./autogen.sh --disable-systemd && ./configure && make clean"
- build_command: "make -j 10"
- branch_pattern:
-
notifications:
irc:
channels:
@@ -94,4 +83,3 @@ notifications:
- "Commit: %{commit_subject} (%{commit}) from %{author}"
- "Change view : %{compare_url}"
- "Build details : %{build_url}"
-