mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-20 13:33:13 -07:00
Restructure and fix Travis
This commit is contained in:
parent
03f357f9eb
commit
cf5fe30219
3 changed files with 51 additions and 35 deletions
16
scripts/travis-appimage.sh
Normal file
16
scripts/travis-appimage.sh
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd build && make install DESTDIR=../appdir && cd .. || exit 1
|
||||
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage && chmod +x linuxdeploy-x86_64.AppImage || exit 1
|
||||
wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage && chmod +x linuxdeploy-plugin-qt-x86_64.AppImage || exit 1
|
||||
source /opt/qt512/bin/qt512-env.sh || exit 1
|
||||
|
||||
if [ -n "$SDL2_FROM_SRC" ]; then
|
||||
export LD_LIBRARY_PATH="$TRAVIS_BUILD_DIR/sdl2-prefix/lib:$LD_LIBRARY_PATH" || exit 1
|
||||
fi
|
||||
|
||||
export EXTRA_QT_PLUGINS=opengl
|
||||
|
||||
./linuxdeploy-x86_64.AppImage --appdir=appdir -e appdir/usr/bin/chiaki -d appdir/usr/share/applications/chiaki.desktop --plugin qt --output appimage || exit 1
|
||||
export DEPLOY_FILE="Chiaki-${CHIAKI_VERSION}-Linux-x86_64.AppImage" || exit 1
|
||||
mv Chiaki-*-x86_64.AppImage "$DEPLOY_FILE" || exit 1
|
14
scripts/travis-build.sh
Executable file
14
scripts/travis-build.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
mkdir build && cd build || exit 1
|
||||
cmake \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH \
|
||||
-DCHIAKI_ENABLE_TESTS=ON \
|
||||
-DCHIAKI_ENABLE_CLI=OFF \
|
||||
-DCHIAKI_GUI_ENABLE_QT_GAMEPAD=OFF \
|
||||
-DCHIAKI_GUI_ENABLE_SDL_GAMECONTROLLER=ON \
|
||||
$CMAKE_EXTRA_ARGS \
|
||||
.. || exit 1
|
||||
make -j4 || exit 1
|
||||
test/chiaki-unit || exit 1
|
Loading…
Add table
Add a link
Reference in a new issue