Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add coverity_scan. #149

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
language: cpp
sudo: true
env:
global:
- secure: "YTmhefHriemOMr0IKcuWIBRAW+mKskIID4JCq6W6cBYbxl6tazyNqjaHyawPxwSZEtRmoSsF5rI8xDaU4bYoJl0kc12svgHCHCbd0cFsE+b33VQ6sAcxfVvnFvHcr4ZQN5WvI5SF/9/yv/6BXUJeaCKWkiXHH4921XLmaohYDVMykQ9LU6TXI5Q/KAxor8shyRfGRSEA7sAGqWuoRh3QfJSllWM+61Gjr5AsX7lJnp+5zXRvqPs4453T0MkoaqugZh2ourOJRTgLQ+zVPpiBgWSkSTKx318RfCm5bYMRQNLssX043TxUtU9nNVOgTLiaTIeFgyaZ3A/bSQ9EsLN7SxvrleXYXLFpIch3h0/cqQYacfd8HlA3eFZNa18AWmAc7B8UonvuAfQ+EsIAx1nL7vK24urkR/MDB3pv5ytZF0u9p1CvRSZ1GiPPUD91FHB+i7oSV56m4rD5e2EYtWQyZXDuI9jPTHJaPkX//YSdByzV00Jk0ir2aHDgr5UoOMmE37vnWg5z1FRALW7fNao7cR9PINJdwOXqXUjhApf0ShCHNGjmtoej4yxZE6VsLc8TZOERI1qg32HDJdZX5e+ySjtO8fcIuLX8zJwvnKV4mpvOmH1h6YxfqRhImVhuBTEwuhFOn089m8v1j7ZvYpPGTfJGBKHIE7MQV4Ojbduf3vY="

before_install:
- echo ${CMAKE_EXTRA_ARGS}
- echo ${MATRIX_EVAL}
Expand All @@ -15,6 +19,9 @@ before_install:
- if [ "${TRAVIS_OS_NAME}" != "windows" ]; then
make --version;
fi
- if [ "${RUN_COVERALLS}" = "TRUE" ]; 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
script:
- cmake --version
- gcc --version
Expand Down Expand Up @@ -105,6 +112,14 @@ matrix:
- RUN_COVERALLS="TRUE"
- MATRIX_EVAL="sudo apt install python-setuptools && CC=gcc-6 && CXX=g++-6 && FC=gfortran && sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6 --slave /usr/bin/gfortran gfortran /usr/bin/gfortran-6 --slave /usr/bin/gcov gcov /usr/bin/gcov-6 && sudo update-alternatives --config gcc && gcc --version && gcov --version && gfortran --version && mkdir astyle && cd astyle && wget 'https://sourceforge.net/projects/astyle/files/astyle/astyle 2.04/astyle_2.04_linux.tar.gz' && tar -zxvf astyle_2.04_linux.tar.gz && cd astyle/build/gcc && make && sudo make install && cd ../../../../ && pip install --user cpp-coveralls" # && export PYTHONPATH=$PYTHONPATH:$TRAVIS_BUILD_DIR/build/lib"
addons:
coverity_scan:
project:
name: "GeodynamicWorldBuilder/WorldBuilder"
description: "An initial conditions generator for geodynamic models."
notification_email: [email protected]
build_command_prepend: "cmake ."
build_command: "make"
branch_pattern: coverity_scan
apt:
sources:
- ubuntu-toolchain-r-test
Expand Down Expand Up @@ -274,4 +289,4 @@ matrix:
packages:
- gfortran
- swig
- python3-setuptools
- python3-setuptools