docker.sh 611 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash -ex
  2. # Exit on error, rather than continuing with the rest of the script.
  3. set -e
  4. ccache -s
  5. mkdir build || true && cd build
  6. cmake .. \
  7. -DCMAKE_BUILD_TYPE=Release \
  8. -DCMAKE_CXX_COMPILER=/usr/lib/ccache/clang++ \
  9. -DCMAKE_C_COMPILER=/usr/lib/ccache/clang \
  10. -DCMAKE_INSTALL_PREFIX="/usr" \
  11. -DDISPLAY_VERSION=$1 \
  12. -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON \
  13. -DENABLE_QT_TRANSLATION=ON \
  14. -DUSE_DISCORD_PRESENCE=ON \
  15. -DYUZU_ENABLE_COMPATIBILITY_REPORTING=${ENABLE_COMPATIBILITY_REPORTING:-"OFF"} \
  16. -GNinja
  17. ninja
  18. ccache -s
  19. ctest -VV -C Release