Debian Codegraph @

mtxclient/.ci/script.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 set -ex
4
5 mkdirscip-shell system . . mkdir. -p .deps
6
7 if [scip-shell system . . `[`. $TRAVIS_OS_NAME == linux ]; then
8 export CXX=${CXX_VERSION}
9 export CC=${CC_VERSION}
10 export PATH="/usr/local/bin:$PATH"
11
12 cmakescip-shell system . . cmake. --version
13
14 sudoscip-shell system . . sudo. update-alternatives --install /usr/bin/gccscip-shell filesystem . . `/usr/bin/gcc`. gcc /usr/bin/${CC_VERSION} 10
15 sudoscip-shell system . . sudo. update-alternatives --install /usr/bin/g++scip-shell filesystem . . `/usr/bin/g++`. g++ /usr/bin/${CXX_VERSION} 10
16 sudoscip-shell system . . sudo. update-alternatives --install /usr/bin/gcovscip-shell filesystem . . `/usr/bin/gcov`. gcov /usr/bin/gcov-8scip-shell filesystem . . `/usr/bin/gcov-8`. 10
17
18 sudoscip-shell system . . sudo. update-alternatives --set gcc "/usr/bin/${CC_VERSION}"
19 sudoscip-shell system . . sudo. update-alternatives --set g++ "/usr/bin/${CXX_VERSION}"
20 sudoscip-shell system . . sudo. update-alternatives --set gcov "/usr/bin/gcov-8scip-shell filesystem . . `/usr/bin/gcov-8`."
21
22 # Build the library.
23 cmakescip-shell system . . cmake. -GNinja -H. -Bbuild -DCMAKE_BUILD_TYPE=Debug \
24 -DBUILD_LIB_TESTS=ON \
25 -DBUILD_SHARED_LIBS=ON \
26 -DHUNTER_ENABLED=ON \
27 -DHUNTER_ROOT=.deps \
28 -DCOVERAGE=${COVERAGE} || truescip-shell system . . true.
29 #-DHUNTER_CONFIGURATION_TYPES=Debug \ << needs gtest release for some reason
30 cmakescip-shell system . . cmake. --build build
31
32 # The tests will run anyway during coverage.
33 makescip-shell system . . make. test
34 fi
35
36 if [scip-shell system . . `[`. $TRAVIS_OS_NAME == osx ]; then
37 # Build the library.
38 cmakescip-shell system . . cmake. -H. -Bbuild -DCMAKE_BUILD_TYPE=Release \
39 -DBUILD_LIB_TESTS=OFF \
40 -DBUILD_LIB_EXAMPLES=OFF \
41 -DBUILD_SHARED_LIBS=ON \
42 -DHUNTER_ENABLED=ON \
43 -DHUNTER_CONFIGURATION_TYPES=Release \
44 -DHUNTER_ROOT=.deps \
45 -DUSE_BUNDLED_GTEST=OFF || truescip-shell system . . true.
46 cmakescip-shell system . . cmake. --build build
47
48 makescip-shell system . . make. lint
49 fi