summaryrefslogtreecommitdiff
path: root/.travis
diff options
context:
space:
mode:
Diffstat (limited to '.travis')
-rwxr-xr-x.travis/cmake-linux22
1 files changed, 11 insertions, 11 deletions
diff --git a/.travis/cmake-linux b/.travis/cmake-linux
index ed06dc26..73b335fe 100755
--- a/.travis/cmake-linux
+++ b/.travis/cmake-linux
@@ -5,7 +5,7 @@ ACTION="$1"
5set -eu 5set -eu
6 6
7CACHEDIR="$HOME/cache" 7CACHEDIR="$HOME/cache"
8NPROC=`nproc` 8NPROC=$(nproc)
9ASTYLE="$CACHEDIR/astyle/build/gcc/bin/astyle" 9ASTYLE="$CACHEDIR/astyle/build/gcc/bin/astyle"
10ASTYLE_VERSION=3.1 10ASTYLE_VERSION=3.1
11TRAVIS_TOOL="https://raw.githubusercontent.com/TokTok/ci-tools/master/bin/travis-haskell" 11TRAVIS_TOOL="https://raw.githubusercontent.com/TokTok/ci-tools/master/bin/travis-haskell"
@@ -21,7 +21,7 @@ travis_install() {
21 # Work around https://github.com/eddyxu/cpp-coveralls/issues/108 by manually 21 # Work around https://github.com/eddyxu/cpp-coveralls/issues/108 by manually
22 # installing the pyOpenSSL module and injecting it into urllib3 as per 22 # installing the pyOpenSSL module and injecting it into urllib3 as per
23 # https://urllib3.readthedocs.io/en/latest/user-guide.html#ssl-py2 23 # https://urllib3.readthedocs.io/en/latest/user-guide.html#ssl-py2
24 sed -i -e '/^import sys$/a import urllib3.contrib.pyopenssl\nurllib3.contrib.pyopenssl.inject_into_urllib3()' `which coveralls` 24 sed -i -e '/^import sys$/a import urllib3.contrib.pyopenssl\nurllib3.contrib.pyopenssl.inject_into_urllib3()' "$(which coveralls)"
25 } 25 }
26 26
27 # Install astyle (version in ubuntu-precise too old). 27 # Install astyle (version in ubuntu-precise too old).
@@ -34,15 +34,15 @@ travis_install() {
34} 34}
35 35
36run_static_analysis() { 36run_static_analysis() {
37 pylint -E other/analysis/check_recursion 37 pylint3 -E other/analysis/check_recursion
38 38
39 export CPPFLAGS="-isystem $CACHEDIR/include" 39 export CPPFLAGS="-isystem $CACHEDIR/include"
40 export LDFLAGS="-L$CACHEDIR/lib" 40 export LDFLAGS="-L$CACHEDIR/lib"
41 cat toxav/*.c toxcore/*.c toxencryptsave/*.c \ 41 cat toxav/*.c toxcore/*.c toxencryptsave/*.c |
42 | clang `pkg-config --cflags libsodium opus vpx` \ 42 clang "$(pkg-config --cflags libsodium opus vpx)" \
43 -Itoxav -Itoxcore -Itoxencryptsave -S -emit-llvm -xc - -o- \ 43 -Itoxav -Itoxcore -Itoxencryptsave -S -emit-llvm -xc - -o- |
44 | opt -analyze -print-callgraph 2>&1 \ 44 opt -analyze -print-callgraph 2>&1 |
45 | other/analysis/check_recursion 45 other/analysis/check_recursion
46 other/analysis/run-clang 46 other/analysis/run-clang
47 other/analysis/run-clang-analyze 47 other/analysis/run-clang-analyze
48} 48}
@@ -85,10 +85,10 @@ travis_script() {
85 85
86 cmake --build _build --parallel "$NPROC" --target install -- -k 0 86 cmake --build _build --parallel "$NPROC" --target install -- -k 0
87 87
88 cd _build # pushd 88 cd _build # pushd
89 ctest -j50 --output-on-failure || \ 89 ctest -j50 --output-on-failure ||
90 ctest -j50 --output-on-failure --rerun-failed 90 ctest -j50 --output-on-failure --rerun-failed
91 cd - # popd 91 cd - # popd
92} 92}
93 93
94if [ "-z" "$ACTION" ]; then 94if [ "-z" "$ACTION" ]; then