|
|
@ -5,10 +5,20 @@ compiler: |
|
|
|
os: |
|
|
|
os: |
|
|
|
- linux |
|
|
|
- linux |
|
|
|
- osx |
|
|
|
- osx |
|
|
|
sudo: true |
|
|
|
addons: |
|
|
|
|
|
|
|
apt: |
|
|
|
|
|
|
|
packages: |
|
|
|
|
|
|
|
- gcc-multilib |
|
|
|
|
|
|
|
- g++-multilib |
|
|
|
before_script: |
|
|
|
before_script: |
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install gcc-multilib g++-multilib; fi |
|
|
|
- curl http://libsdl.org/release/SDL2-devel-2.0.7-mingw.tar.gz | tar xzf - |
|
|
|
|
|
|
|
- mv SDL2-2.0.7/i686-w64-mingw32/include/SDL2 cl_dll/ |
|
|
|
script: |
|
|
|
script: |
|
|
|
- mkdir -p build && cd build |
|
|
|
- mkdir -p build && cd build |
|
|
|
- cmake ../ -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined" -DUSE_VOICEMGR=0 && make -j3 && rm -rf * |
|
|
|
- cmake ../ -DCMAKE_C_FLAGS="-O2 -pipe -DNDEBUG -march=nocona -fvisibility=hidden -fomit-frame-pointer" -DCMAKE_CXX_FLAGS="-fno-exceptions -fno-rtti" -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined -Wl,--strip-all" -DGOLDSOURCE_SUPPORT=1 -DUSE_VOICEMGR=0 && make -j3 |
|
|
|
- cmake ../ -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined" -DUSE_VOICEMGR=1 && make -j3 && rm -rf * |
|
|
|
- mkdir -p gamelibs/cl_dlls |
|
|
|
|
|
|
|
- mkdir -p gamelibs/dlls |
|
|
|
|
|
|
|
- cp cl_dll/libclient.* gamelibs/cl_dlls |
|
|
|
|
|
|
|
- cp dlls/libserver.* gamelibs/dlls |
|
|
|
|
|
|
|
- tar -J -cf gamelibs.txz gamelibs |
|
|
|
|
|
|
|
- curl --upload-file gamelibs.txz https://transfer.sh/gamelibs.txz |
|
|
|