2018-11-18 16:33:32 +01:00
|
|
|
language: c
|
|
|
|
compiler: gcc
|
|
|
|
sudo: false
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- SDL_VERSION=2.0.8
|
2019-03-29 20:51:25 +01:00
|
|
|
- DEPLOY_BRANCH=newengine
|
2018-11-18 16:33:32 +01:00
|
|
|
git:
|
|
|
|
depth: 50
|
|
|
|
submodules: true
|
|
|
|
jdk:
|
|
|
|
- oraclejdk8
|
2019-06-30 23:40:40 +02:00
|
|
|
|
2019-03-29 20:51:25 +01:00
|
|
|
jobs:
|
|
|
|
include:
|
2019-03-29 21:21:40 +01:00
|
|
|
- stage: build
|
2019-07-20 04:07:22 +02:00
|
|
|
name: "Build for Linux i686"
|
2019-03-29 21:21:40 +01:00
|
|
|
cache: ccache
|
|
|
|
os: linux
|
|
|
|
dist: xenial
|
2019-03-29 21:49:33 +01:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- gcc-multilib
|
|
|
|
- g++-multilib
|
|
|
|
- libx11-dev:i386
|
|
|
|
- libxext-dev:i386
|
|
|
|
- x11-utils
|
|
|
|
- libgl1-mesa-dev
|
|
|
|
- libasound-dev
|
|
|
|
- libstdc++6:i386
|
|
|
|
- libfuse2:i386
|
2019-03-29 21:21:40 +01:00
|
|
|
before_script:
|
2019-07-25 03:50:57 +02:00
|
|
|
- export ARCH=i686
|
2019-03-29 21:21:40 +01:00
|
|
|
- sh scripts/travis_common_deps.sh
|
|
|
|
- sh scripts/travis_${TRAVIS_OS_NAME}_deps.sh
|
|
|
|
script:
|
2019-07-25 03:50:57 +02:00
|
|
|
- sh scripts/build_${TRAVIS_OS_NAME}_engine.sh
|
2019-03-29 23:28:22 +01:00
|
|
|
after_script:
|
|
|
|
- ccache --show-stats
|
2019-07-20 04:07:22 +02:00
|
|
|
- sh scripts/continious_upload.sh Xash3DFWGS-${ARCH}.AppImage
|
2019-07-21 11:23:53 +02:00
|
|
|
- # ...
|
|
|
|
name: "Build for Linux amd64"
|
2019-07-20 04:07:22 +02:00
|
|
|
cache: ccache
|
|
|
|
os: linux
|
|
|
|
dist: xenial
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libx11-dev
|
|
|
|
- libxext-dev
|
|
|
|
- x11-utils
|
|
|
|
- libgl1-mesa-dev
|
|
|
|
- libasound-dev
|
|
|
|
- libstdc++6
|
|
|
|
- libfuse2
|
|
|
|
before_script:
|
2019-07-25 03:50:57 +02:00
|
|
|
- export ARCH=amd64
|
2019-07-20 04:07:22 +02:00
|
|
|
- sh scripts/travis_common_deps.sh
|
|
|
|
- sh scripts/travis_${TRAVIS_OS_NAME}_deps.sh
|
|
|
|
script:
|
2019-07-25 03:50:57 +02:00
|
|
|
- sh scripts/build_${TRAVIS_OS_NAME}_engine.sh
|
2019-07-20 04:07:22 +02:00
|
|
|
after_script:
|
|
|
|
- ccache --show-stats
|
|
|
|
- sh scripts/continious_upload.sh Xash3DFWGS-${ARCH}.AppImage
|
|
|
|
# - # ...
|
|
|
|
# name: "Build for Android"
|
|
|
|
# cache: ccache
|
|
|
|
# os: linux
|
|
|
|
# dist: xenial
|
|
|
|
# before_script:
|
|
|
|
# - sh scripts/travis_common_deps.sh
|
|
|
|
# - sh scripts/travis_${TRAVIS_OS_NAME}_deps.sh
|
|
|
|
# - export ANDROID_HOME=$PWD/android-sdk-linux
|
|
|
|
# - export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools:$PWD/android-ndk
|
|
|
|
# script:
|
|
|
|
# - sh scripts/build_${TRAVIS_OS_NAME}_engine.sh
|
|
|
|
# after_script:
|
|
|
|
# - ccache --show-stats
|
|
|
|
# - sh scripts/continious_upload.sh xash3d-fwgs.apk
|
2019-05-23 21:01:06 +02:00
|
|
|
# - # ...
|
|
|
|
# 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
|
|
|
|
# after_script:
|
|
|
|
# - ccache --show-stats
|
2019-06-30 23:40:40 +02:00
|
|
|
# - sh scripts/continious_upload.sh xash3d-mingw.7z
|
2019-03-29 21:21:40 +01:00
|
|
|
- # ...
|
|
|
|
name: "Build for OSX"
|
|
|
|
cache: ccache
|
2019-03-29 21:22:47 +01:00
|
|
|
os: osx
|
2019-03-29 21:21:40 +01:00
|
|
|
before_script:
|
|
|
|
- sh scripts/travis_common_deps.sh
|
|
|
|
- sh scripts/travis_${TRAVIS_OS_NAME}_deps.sh
|
|
|
|
script:
|
|
|
|
- sh scripts/build_${TRAVIS_OS_NAME}_engine.sh
|
|
|
|
after_script:
|
2019-06-30 23:51:25 +02:00
|
|
|
- sh scripts/continious_upload.sh xash3d-osx.tar.bz2
|
2019-03-29 21:21:40 +01:00
|
|
|
- # ...
|
|
|
|
name: "Build for Windows MSVC"
|
|
|
|
cache: ccache
|
2019-03-29 21:22:47 +01:00
|
|
|
os: windows
|
2019-03-29 21:21:40 +01:00
|
|
|
before_script:
|
|
|
|
- sh scripts/travis_common_deps.sh
|
|
|
|
- sh scripts/travis_${TRAVIS_OS_NAME}_deps.sh
|
|
|
|
script:
|
|
|
|
- sh scripts/build_${TRAVIS_OS_NAME}_engine.sh
|
|
|
|
after_script:
|
2019-06-30 23:40:40 +02:00
|
|
|
- sh scripts/continious_upload.sh xash3d-vc.7z xash3d-vc2008-sln.7z
|
2019-07-09 15:04:34 +02:00
|
|
|
|
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
# Do not build tags that we create when we upload to GitHub Releases
|
|
|
|
- /^(?i:continuous)/
|