mirror of
https://github.com/glest/glest-source.git
synced 2025-08-23 16:32:53 +02:00
tidy up .travis.yml some more
This commit is contained in:
@@ -66,7 +66,6 @@ script: |
|
|||||||
mkdir build;
|
mkdir build;
|
||||||
cd build;
|
cd build;
|
||||||
cmake .. -DCMAKE_INSTALL_PREFIX=/usr;
|
cmake .. -DCMAKE_INSTALL_PREFIX=/usr;
|
||||||
|
|
||||||
fi
|
fi
|
||||||
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
||||||
mkdir build;
|
mkdir build;
|
||||||
@@ -80,11 +79,12 @@ script: |
|
|||||||
mkdir build;
|
mkdir build;
|
||||||
cd build;
|
cd build;
|
||||||
cmake .. -DFORCE_EMBEDDED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/usr;
|
cmake .. -DFORCE_EMBEDDED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/usr;
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
make -j$(nproc) && make install DESTDIR=../Glest;
|
make -j$(nproc) && make install DESTDIR=../Glest;
|
||||||
cd ..;
|
cd ..;
|
||||||
rm -rf build;
|
rm -rf build;
|
||||||
|
# Get the data for the appimage build.
|
||||||
git clone https://github.com/glest/glest-data.git;
|
git clone https://github.com/glest/glest-data.git;
|
||||||
mkdir build;
|
mkdir build;
|
||||||
cd build;
|
cd build;
|
||||||
@@ -95,6 +95,7 @@ script: |
|
|||||||
# Remove useless metainfo.
|
# Remove useless metainfo.
|
||||||
rm Glest/usr/share/metainfo/io.glest.Editor.appdata.xml;
|
rm Glest/usr/share/metainfo/io.glest.Editor.appdata.xml;
|
||||||
find Glest/;
|
find Glest/;
|
||||||
|
# Build the appimage.
|
||||||
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/pulseaudio/:/usr/lib/i386-linux-gnu/pulseaudio/:$LD_LIBRARY_PATH;
|
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/pulseaudio/:/usr/lib/i386-linux-gnu/pulseaudio/:$LD_LIBRARY_PATH;
|
||||||
wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage";
|
wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage";
|
||||||
chmod a+x linuxdeployqt-continuous-x86_64.AppImage;
|
chmod a+x linuxdeployqt-continuous-x86_64.AppImage;
|
||||||
@@ -128,6 +129,7 @@ after_success:
|
|||||||
- ./send.sh success $WEBHOOK_URL
|
- ./send.sh success $WEBHOOK_URL
|
||||||
|
|
||||||
after_failure:
|
after_failure:
|
||||||
|
# Notify discord.
|
||||||
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
|
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
|
||||||
- chmod +x send.sh
|
- chmod +x send.sh
|
||||||
- ./send.sh failure $WEBHOOK_URL
|
- ./send.sh failure $WEBHOOK_URL
|
||||||
|
Reference in New Issue
Block a user