2018-11-18 16:33:32 +01:00
|
|
|
language: c
|
|
|
|
compiler: gcc
|
|
|
|
sudo: false
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- SDL_VERSION=2.0.8
|
2019-09-29 17:43:53 +02:00
|
|
|
- DEPLOY_BRANCH=anewengine
|
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-09-29 17:38:19 +02:00
|
|
|
- stage: init
|
|
|
|
name: "Initialize webdav cache"
|
|
|
|
os: linux
|
|
|
|
cache: false
|
|
|
|
script:
|
|
|
|
- sh scripts/yadisk_clear.sh
|
2019-03-29 21:21:40 +01:00
|
|
|
- stage: build
|
2019-11-07 04:55:40 +01:00
|
|
|
name: "Build for Windows MSVC"
|
|
|
|
cache: ccache
|
|
|
|
os: windows
|
|
|
|
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:
|
2021-03-26 15:58:35 +01:00
|
|
|
- sh scripts/continious_upload.sh xash3d-win32-vc.7z xash3d-vc2008-sln.7z
|
2019-11-07 04:55:40 +01:00
|
|
|
- # ...
|
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-07-25 19:10:05 +02:00
|
|
|
- zlib1g:i386
|
2019-10-16 01:18:12 +02:00
|
|
|
- unzip
|
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-27 13:49:01 +02:00
|
|
|
- sh scripts/build_${TRAVIS_OS_NAME}_engine.sh full
|
|
|
|
- sh scripts/build_${TRAVIS_OS_NAME}_engine.sh dedicated
|
2019-03-29 23:28:22 +01:00
|
|
|
after_script:
|
|
|
|
- ccache --show-stats
|
2019-07-27 13:49:01 +02:00
|
|
|
- sh scripts/continious_upload.sh xash3d-fwgs-${ARCH}.AppImage xashds-linux-${ARCH}
|
2019-07-29 07:10:04 +02:00
|
|
|
- # ...
|
|
|
|
name: "Build for Android"
|
|
|
|
cache: ccache
|
|
|
|
os: linux
|
|
|
|
dist: xenial
|
2019-07-29 07:20:05 +02:00
|
|
|
language: java # we want xenial, so just java, not android
|
|
|
|
jdk: openjdk8
|
2019-11-07 05:13:28 +01:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- clang-9
|
|
|
|
- lld-9
|
|
|
|
- p7zip-full
|
|
|
|
sources:
|
|
|
|
- sourceline: 'deb https://apt.llvm.org/xenial/ llvm-toolchain-xenial-9 main'
|
|
|
|
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
|
2019-07-29 07:10:04 +02:00
|
|
|
before_script:
|
2019-07-29 07:27:11 +02:00
|
|
|
- export ANDROID_HOME=$TRAVIS_BUILD_DIR/sdk
|
2019-07-29 07:10:04 +02:00
|
|
|
- sh scripts/travis_common_deps.sh
|
2019-11-07 04:55:40 +01:00
|
|
|
- sh scripts/travis_android_deps.sh r10e
|
2019-07-29 07:27:11 +02:00
|
|
|
- export ANDROID_SDK_HOME=$ANDROID_HOME
|
2019-07-29 07:10:04 +02:00
|
|
|
- export ANDROID_NDK_HOME=$ANDROID_SDK_HOME/ndk-bundle
|
|
|
|
script:
|
|
|
|
- cd android
|
2019-11-29 12:44:24 +01:00
|
|
|
- export ARCHS="armeabi armeabi-v7a x86"
|
2019-11-07 04:55:40 +01:00
|
|
|
- export TOOLCHAIN="host"
|
2019-10-06 08:22:49 +02:00
|
|
|
- sh compile.sh release
|
2019-07-29 07:10:04 +02:00
|
|
|
after_script:
|
|
|
|
- ccache --show-stats
|
2019-09-26 21:58:17 +02:00
|
|
|
- sh ../scripts/continious_upload.sh xashdroid.apk
|
2019-10-09 01:15:16 +02:00
|
|
|
- # ...
|
|
|
|
name: "Build for Android 64"
|
|
|
|
cache: ccache
|
|
|
|
os: linux
|
|
|
|
dist: xenial
|
|
|
|
language: java # we want xenial, so just java, not android
|
|
|
|
jdk: openjdk8
|
2019-11-07 05:13:28 +01:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- clang-9
|
|
|
|
- lld-9
|
|
|
|
- p7zip-full
|
|
|
|
sources:
|
|
|
|
- sourceline: 'deb https://apt.llvm.org/xenial/ llvm-toolchain-xenial-9 main'
|
|
|
|
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
|
2019-10-09 01:15:16 +02:00
|
|
|
before_script:
|
|
|
|
- export ANDROID_HOME=$TRAVIS_BUILD_DIR/sdk
|
|
|
|
- sh scripts/travis_common_deps.sh
|
2019-11-07 04:55:40 +01:00
|
|
|
- sh scripts/travis_android_deps.sh r10e
|
2019-10-09 01:15:16 +02:00
|
|
|
- export ANDROID_SDK_HOME=$ANDROID_HOME
|
|
|
|
- export ANDROID_NDK_HOME=$ANDROID_SDK_HOME/ndk-bundle
|
|
|
|
script:
|
|
|
|
- cd android
|
2019-10-09 04:21:09 +02:00
|
|
|
- export ARCHS="aarch64 x86_64"
|
2019-11-07 05:13:28 +01:00
|
|
|
- export API=21
|
2019-11-07 04:55:40 +01:00
|
|
|
- export TOOLCHAIN="host"
|
2019-10-09 01:15:16 +02:00
|
|
|
- sh compile.sh release
|
|
|
|
after_script:
|
|
|
|
- ccache --show-stats
|
|
|
|
- mv xashdroid.apk xashdroid-64-test.apk
|
|
|
|
- sh ../scripts/continious_upload.sh xashdroid-64-test.apk
|
|
|
|
- # ...
|
2019-11-07 04:55:40 +01:00
|
|
|
name: "Build for Linux amd64"
|
2019-10-11 08:16:08 +02:00
|
|
|
cache: ccache
|
|
|
|
os: linux
|
|
|
|
dist: xenial
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
2019-11-07 04:55:40 +01:00
|
|
|
- libx11-dev
|
|
|
|
- libxext-dev
|
|
|
|
- x11-utils
|
|
|
|
- libgl1-mesa-dev
|
|
|
|
- libasound-dev
|
|
|
|
- libstdc++6
|
|
|
|
- libfuse2
|
|
|
|
- unzip
|
2019-10-11 08:16:08 +02:00
|
|
|
before_script:
|
2019-11-07 04:55:40 +01:00
|
|
|
- export ARCH=x86_64
|
2019-10-11 08:16:08 +02:00
|
|
|
- sh scripts/travis_common_deps.sh
|
2019-11-07 04:55:40 +01:00
|
|
|
- sh scripts/travis_${TRAVIS_OS_NAME}_deps.sh
|
2019-10-11 08:16:08 +02:00
|
|
|
script:
|
2019-11-07 04:55:40 +01:00
|
|
|
- sh scripts/build_${TRAVIS_OS_NAME}_engine.sh full
|
|
|
|
- sh scripts/build_${TRAVIS_OS_NAME}_engine.sh dedicated
|
2019-10-11 08:16:08 +02:00
|
|
|
after_script:
|
|
|
|
- ccache --show-stats
|
2019-11-07 04:55:40 +01:00
|
|
|
- sh scripts/continious_upload.sh xash3d-fwgs-${ARCH}.AppImage xashds-linux-${ARCH}
|
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-08-10 13:47:35 +02:00
|
|
|
# - # ...
|
|
|
|
# name: "Build for OSX"
|
|
|
|
# cache: ccache
|
|
|
|
# os: osx
|
|
|
|
# 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:
|
|
|
|
# - sh scripts/continious_upload.sh xash3d-osx.tar.bz2
|
2019-11-07 00:46:04 +01:00
|
|
|
- # ...
|
2019-11-07 02:52:13 +01:00
|
|
|
name: "Build for MotoMAGX"
|
2019-11-07 00:46:04 +01:00
|
|
|
sudo: true
|
|
|
|
cache: ccache
|
|
|
|
os: linux
|
|
|
|
dist: xenial
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libc6:i386
|
|
|
|
- libstdc++6:i386
|
|
|
|
- gcc-multilib
|
|
|
|
- g++-multilib
|
|
|
|
- p7zip-full
|
|
|
|
sources:
|
|
|
|
- sourceline: 'deb https://apt.llvm.org/xenial/ llvm-toolchain-xenial-9 main'
|
|
|
|
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
|
|
|
|
before_script:
|
|
|
|
- sh scripts/travis_common_deps.sh
|
|
|
|
- sh scripts/travis_motomagx_deps.sh
|
|
|
|
script:
|
|
|
|
- sh scripts/build_motomagx_engine.sh
|
|
|
|
after_script:
|
2019-11-07 06:41:10 +01:00
|
|
|
- cd $TRAVIS_BUILD_DIR
|
2019-11-07 00:46:04 +01:00
|
|
|
- ccache --show-stats
|
2019-11-07 06:41:10 +01:00
|
|
|
- sh scripts/continious_upload.sh xash3d-magx.7z
|
2019-09-29 17:38:19 +02:00
|
|
|
- stage: deploy
|
|
|
|
name: "Deploy to github repo"
|
|
|
|
os: linux
|
|
|
|
cache: false
|
|
|
|
script:
|
2021-03-26 15:58:35 +01:00
|
|
|
- sh scripts/travis-deploy.sh xash3d-fwgs-i686.AppImage xash3d-fwgs-x86_64.AppImage xash3d-win32-vc.7z xash3d-vc2008-sln.7z xashdroid.apk xashdroid-64-test.apk xashds-linux-i686 xashds-linux-x86_64 xash3d-magx.7z
|