Move Ubuntu configure script to .gitlab-ci.yml

Sorry, Omni. I'll probably move everything back to shell scripts in the future.
This commit is contained in:
oldmud0 2019-02-09 04:42:26 +00:00
parent 830dba62a1
commit 3b718808b7

View File

@ -13,17 +13,45 @@ build linux x86_64:
- docker - docker
- linux - linux
script: script:
# Install dependencies
- apt-get update - apt-get update
- apt-get install --no-install-recommends -y qt5-default qtmultimedia5-dev clang make git sudo curl ca-certificates pkg-config upx unzip - >
apt-get install --no-install-recommends -y qt5-default qtmultimedia5-dev
clang make git sudo curl ca-certificates pkg-config upx unzip
# Print versions
- qmake --version - qmake --version
- clang --version - clang --version
- cd scripts # Extract BASS
- ./configure_ubuntu.sh - mkdir bass
- cd bass
- curl http://www.un4seen.com/files/bass24-linux.zip -o bass.zip
- unzip bass.zip
- cp x64/libbass.so ../lib
- cd .. - cd ..
# Extract Discord RPC
- mkdir discord-rpc
- cd discord-rpc
- curl -L https://github.com/discordapp/discord-rpc/releases/download/v3.4.0/discord-rpc-linux.zip -o discord_rpc_linux.zip
- unzip discord_rpc_linux.zip
- cp discord-rpc/linux-dynamic/lib/libdiscord-rpc.so ../lib
- cd ..
# Extract QtApng
- mkdir qtapng
- cd qtapng
- curl -L https://github.com/Skycoder42/QtApng/releases/download/1.1.0-5/build_clang_64_5.12.0.tar.xz -o apng.tar.xz
- tar -xvf apng.tar.xz
- cp clang_64/plugins/imageformats/libqapng.so ../lib
- cd ..
# Build
- qmake -spec linux-clang - qmake -spec linux-clang
- make -j4 - make -j4
# Post-processing
- upx --lzma -9 --force bin/Attorney_Online - upx --lzma -9 --force bin/Attorney_Online
artifacts: artifacts:
paths: paths:
@ -61,7 +89,7 @@ build windows i686:
cp -a ../base/themes/default base/themes/ cp -a ../base/themes/default base/themes/
cp -a ../base/config.ini base/config.sample.ini cp -a ../base/config.ini base/config.sample.ini
cp -a ../base/serverlist.txt base/serverlist.sample.txt cp -a ../base/serverlist.txt base/serverlist.sample.txt
# Miscellaneous files # Miscellaneous files
.deploy_misc: &deploy_misc | .deploy_misc: &deploy_misc |
cp -a ../README.md README.md.txt cp -a ../README.md README.md.txt
@ -84,7 +112,7 @@ deploy linux:
- cp -a ../lib/*.so . - cp -a ../lib/*.so .
- cp -a ../bin/Attorney_Online . - cp -a ../bin/Attorney_Online .
- echo "#!/bin/sh" >> ./run.sh - echo "#!/bin/sh" >> ./run.sh
- echo "LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH ./Attorney_Online" >> ./run.sh - echo "LD_LIBRARY_PATH=.:\$LD_LIBRARY_PATH ./Attorney_Online" >> ./run.sh
- chmod +x ./run.sh - chmod +x ./run.sh
# Zipping # Zipping