6 if [[ "$TRAVIS_OS_NAME" == "linux" && "$CXX" = "g++" ]]; then
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
18 cmake . -DBUILD_PYBULLET=ON -G"Unix Makefiles" #-DCMAKE_CXX_FLAGS=-Werror
20 ctest -j8 --output-on-failure
22 # Build again with double precision
23 cmake . -G "Unix Makefiles" -DUSE_DOUBLE_PRECISION=ON #-DCMAKE_CXX_FLAGS=-Werror
25 ctest -j8 --output-on-failure
27 # Build again with shared libraries
28 cmake . -G "Unix Makefiles" -DBUILD_SHARED_LIBS=ON
30 ctest -j8 --output-on-failure