Debian Codegraph @

.ci/script.sh

raw
1 #!/usr/bin/env bash
2 set -ex
3
4 echo "CXX="$CXX
5 echo "CC="$CC
6 if [[ "$TRAVIS_OS_NAME" == "linux" && "$CXX" = "g++" ]]; then
7 $SUDO apt-get update
8 $SUDO apt-get install -y python3
9 $SUDO apt-get install -y python3-pip
10 $SUDO apt-get install python3-dev
11 $SUDO pip3 install -U wheel
12 $SUDO pip3 install -U setuptools
13 python3 setup.py install --user
14 python3 examples/pybullet/unittests/unittests.py --verbose
15 python3 examples/pybullet/unittests/userDataTest.py --verbose
16 python3 examples/pybullet/unittests/saveRestoreStateTest.py --verbose
17 fi
18 cmake . -DBUILD_PYBULLET=ON -G"Unix Makefiles" #-DCMAKE_CXX_FLAGS=-Werror
19 make -j8
20 ctest -j8 --output-on-failure
21
22 # Build again with double precision
23 cmake . -G "Unix Makefiles" -DUSE_DOUBLE_PRECISION=ON #-DCMAKE_CXX_FLAGS=-Werror
24 make -j8
25 ctest -j8 --output-on-failure
26
27 # Build again with shared libraries
28 cmake . -G "Unix Makefiles" -DBUILD_SHARED_LIBS=ON
29 make -j8
30 ctest -j8 --output-on-failure
31 $SUDO make install