Browse Source

travis: move mingw engine build to standalone VM

pull/2/head
Alibek Omarov 6 years ago
parent
commit
f9f96552b7
  1. 31
      .travis.yml
  2. 4
      scripts/travis_linux_deps.sh
  3. 3
      scripts/travis_mingw_deps.sh
  4. 3
      scripts/travis_windows_deps.sh

31
.travis.yml

@ -24,17 +24,13 @@ jobs:
script: script:
- sh scripts/yadisk_clear.sh - sh scripts/yadisk_clear.sh
- stage: build - stage: build
name: "Build for Linux, MinGW & Android" name: "Build for Linux & Android"
cache: ccache cache: ccache
os: linux os: linux
dist: xenial dist: xenial
addons: addons:
apt: apt:
packages: packages:
- mingw-w64-i686-dev
- binutils-mingw-w64-i686
- gcc-mingw-w64-i686
- g++-mingw-w64-i686
- p7zip-full - p7zip-full
- gcc-multilib - gcc-multilib
- g++-multilib - g++-multilib
@ -53,11 +49,30 @@ jobs:
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools:$PWD/android-ndk - export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools:$PWD/android-ndk
script: script:
- sh scripts/build_${TRAVIS_OS_NAME}_engine.sh - sh scripts/build_${TRAVIS_OS_NAME}_engine.sh
after_script:
- ccache --show-stats
- sh scripts/yadisk_upload.sh Xash3DFWGS-i386.AppImage
- # ...
name: "Build for Windows MinGW"
cache: ccache
os: linux
dist: xenial
addons:
apt:
packages:
- mingw-w64-i686-dev
- binutils-mingw-w64-i686
- gcc-mingw-w64-i686
- g++-mingw-w64-i686
- p7zip-full
before_script:
- sh scripts/travis_common_deps.sh
- sh scripts/travis_mingw_deps.sh
script:
- sh scripts/build_mingw_engine.sh - sh scripts/build_mingw_engine.sh
after_script: after_script:
- cd ${TRAVIS_BUILD_DIR}
- ccache --show-stats - ccache --show-stats
- sh scripts/yadisk_upload.sh Xash3DFWGS-i386.AppImage xash3d-mingw.7z - sh scripts/yadisk_upload.sh xash3d-mingw.7z
- # ... - # ...
name: "Build for OSX" name: "Build for OSX"
cache: ccache cache: ccache
@ -68,7 +83,6 @@ jobs:
script: script:
- sh scripts/build_${TRAVIS_OS_NAME}_engine.sh - sh scripts/build_${TRAVIS_OS_NAME}_engine.sh
after_script: after_script:
- cd ${TRAVIS_BUILD_DIR}
- sh scripts/yadisk_upload.sh xash3d-osx.tar.bz2 - sh scripts/yadisk_upload.sh xash3d-osx.tar.bz2
- # ... - # ...
name: "Build for Windows MSVC" name: "Build for Windows MSVC"
@ -80,7 +94,6 @@ jobs:
script: script:
- sh scripts/build_${TRAVIS_OS_NAME}_engine.sh - sh scripts/build_${TRAVIS_OS_NAME}_engine.sh
after_script: after_script:
- cd ${TRAVIS_BUILD_DIR}
- sh scripts/yadisk_upload.sh xash3d-vc.7z - sh scripts/yadisk_upload.sh xash3d-vc.7z
- stage: deploy - stage: deploy
name: "Deploy to github" name: "Deploy to github"

4
scripts/travis_linux_deps.sh

@ -2,10 +2,6 @@
curl -s http://libsdl.org/release/SDL2-$SDL_VERSION.tar.gz | tar xzf - curl -s http://libsdl.org/release/SDL2-$SDL_VERSION.tar.gz | tar xzf -
mv SDL2-$SDL_VERSION SDL2_src mv SDL2-$SDL_VERSION SDL2_src
# SDL2 for MinGW prebuilt
curl -s http://libsdl.org/release/SDL2-devel-$SDL_VERSION-mingw.tar.gz | tar xzf -
mv SDL2-$SDL_VERSION SDL2_mingw
# Android build deps # Android build deps
# curl -s http://dl.google.com/android/android-sdk_r22.0.4-linux.tgz | tar xzf - # curl -s http://dl.google.com/android/android-sdk_r22.0.4-linux.tgz | tar xzf -
# export ANDROID_HOME=$PWD/android-sdk-linux # export ANDROID_HOME=$PWD/android-sdk-linux

3
scripts/travis_mingw_deps.sh

@ -0,0 +1,3 @@
# SDL2 for MinGW prebuilt
curl -s http://libsdl.org/release/SDL2-devel-$SDL_VERSION-mingw.tar.gz | tar xzf -
mv SDL2-$SDL_VERSION SDL2_mingw

3
scripts/travis_windows_deps.sh

@ -1,6 +1,3 @@
# python 3.6
choco install python3 -y
# SDL2 for VC prebuilt # SDL2 for VC prebuilt
curl http://libsdl.org/release/SDL2-devel-$SDL_VERSION-VC.zip -o SDL2.zip curl http://libsdl.org/release/SDL2-devel-$SDL_VERSION-VC.zip -o SDL2.zip
unzip SDL2.zip unzip SDL2.zip

Loading…
Cancel
Save