Browse Source

travis: another try to fix matrices

pull/2/head
Alibek Omarov 6 years ago
parent
commit
f4c36f49db
  1. 70
      .travis.yml

70
.travis.yml

@ -1,5 +1,4 @@
language: c language: c
cache: ccache
compiler: gcc compiler: gcc
sudo: false sudo: false
addons: addons:
@ -29,35 +28,7 @@ git:
submodules: true submodules: true
jdk: jdk:
- oraclejdk8 - oraclejdk8
matrix:
include:
- os: linux
dist: xenial
- os: osx
- os: windows
env: PYTHONENCODING=UTF-8
before_script:
- sh scripts/travis_common_deps.sh
- sh scripts/travis_${TRAVIS_OS_NAME}_deps.sh
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export ANDROID_HOME=$PWD/android-sdk-linux; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools:$PWD/android-ndk; fi
script:
- sh scripts/build_${TRAVIS_OS_NAME}_engine.sh
# - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sh scripts/build_android_engine.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sh scripts/build_mingw_engine.sh; fi
after_script:
- cd ${TRAVIS_BUILD_DIR}
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ccache --show-stats; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sh scripts/yadisk_upload.sh Xash3DFWGS-i386.AppImage xash3d-mingw.7z; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sh scripts/yadisk_upload.sh xash3d-osx.tar.bz2; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then sh scripts/yadisk_upload.sh xash3d-vc.7z; fi
stages:
- init
- test # default name
- deploy
jobs: jobs:
allow_failures: allow_failures:
- os: osx - os: osx
@ -70,6 +41,47 @@ jobs:
cache: false cache: false
script: script:
- sh scripts/yadisk_clear.sh - sh scripts/yadisk_clear.sh
- stage: build
name: "Build for Linux, MinGW & 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
- sh scripts/build_mingw_engine.sh
after_script:
- cd ${TRAVIS_BUILD_DIR}
- ccache --show-stats
- sh scripts/yadisk_upload.sh xash3d-osx.tar.bz2
- # ...
name: "Build for OSX"
cache: ccache
os: linux
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:
- cd ${TRAVIS_BUILD_DIR}
- sh scripts/yadisk_upload.sh Xash3DFWGS-i386.AppImage xash3d-mingw.7z
- # ...
name: "Build for Windows MSVC"
cache: ccache
os: linux
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:
- cd ${TRAVIS_BUILD_DIR}
- sh scripts/yadisk_upload.sh xash3d-vc.7z
- stage: deploy - stage: deploy
name: "Deploy to github" name: "Deploy to github"
os: linux os: linux

Loading…
Cancel
Save