Improve .travis.yml compatibility for non-OpenRA deploys.
This commit is contained in:
29
.travis.yml
29
.travis.yml
@@ -3,6 +3,8 @@
|
|||||||
|
|
||||||
language: csharp
|
language: csharp
|
||||||
mono: 6.4.0
|
mono: 6.4.0
|
||||||
|
os: linux
|
||||||
|
dist: xenial
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
@@ -12,10 +14,6 @@ jobs:
|
|||||||
if: tag IS present
|
if: tag IS present
|
||||||
osx_image: xcode10
|
osx_image: xcode10
|
||||||
|
|
||||||
cache:
|
|
||||||
directories:
|
|
||||||
- thirdparty/download
|
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
@@ -48,13 +46,14 @@ branches:
|
|||||||
only:
|
only:
|
||||||
- /^release-.*$/
|
- /^release-.*$/
|
||||||
- /^playtest-.*$/
|
- /^playtest-.*$/
|
||||||
- /^pkgtest-.*$/
|
- /^devtest-.*$/
|
||||||
- /^prep-.*$/
|
- /^prep-.*$/
|
||||||
- bleed
|
- bleed
|
||||||
|
|
||||||
# Notify developers when build passed/failed.
|
# Notify developers when build passed/failed.
|
||||||
notifications:
|
notifications:
|
||||||
irc:
|
irc:
|
||||||
|
if: repo = OpenRA/OpenRA
|
||||||
template:
|
template:
|
||||||
- "%{repository}#%{build_number} %{commit} %{author}: %{message} %{build_url}"
|
- "%{repository}#%{build_number} %{commit} %{author}: %{message} %{build_url}"
|
||||||
channels:
|
channels:
|
||||||
@@ -63,27 +62,31 @@ notifications:
|
|||||||
skip_join: true
|
skip_join: true
|
||||||
|
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
|
||||||
wget https://mirrors.edge.kernel.org/ubuntu/pool/universe/n/nsis/nsis-common_3.04-1_all.deb;
|
wget https://mirrors.edge.kernel.org/ubuntu/pool/universe/n/nsis/nsis-common_3.04-1_all.deb;
|
||||||
wget https://mirrors.edge.kernel.org/ubuntu/pool/universe/n/nsis/nsis_3.04-1_amd64.deb;
|
wget https://mirrors.edge.kernel.org/ubuntu/pool/universe/n/nsis/nsis_3.04-1_amd64.deb;
|
||||||
sudo dpkg -i nsis-common_3.04-1_all.deb;
|
sudo dpkg -i nsis-common_3.04-1_all.deb;
|
||||||
sudo dpkg -i nsis_3.04-1_amd64.deb;
|
sudo dpkg -i nsis_3.04-1_amd64.deb;
|
||||||
cd packaging && ./update-wiki.sh ${TRAVIS_TAG} && cd ..;
|
echo ${TRAVIS_REPO_SLUG};
|
||||||
fi;
|
if [[ "${TRAVIS_REPO_SLUG}" == "OpenRA/OpenRA" ]]; then
|
||||||
- export PATH=$PATH:$HOME/usr/bin
|
cd packaging && ./update-wiki.sh ${TRAVIS_TAG} && cd ..;
|
||||||
|
fi;
|
||||||
|
fi
|
||||||
|
- export PATH=${PATH}:${HOME}/usr/bin
|
||||||
- DOTVERSION=`echo ${TRAVIS_TAG} | sed "s/-/\\./g"`
|
- DOTVERSION=`echo ${TRAVIS_TAG} | sed "s/-/\\./g"`
|
||||||
- cd packaging
|
- cd packaging
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- ./package-all.sh ${TRAVIS_TAG} ${PWD}/build/
|
- ./package-all.sh ${TRAVIS_TAG} ${PWD}/build/
|
||||||
- ./upload-itch.sh ${TRAVIS_TAG} ${PWD}/build/
|
- if [[ "${TRAVIS_REPO_SLUG}" == "OpenRA/OpenRA" ]]; then
|
||||||
|
./upload-itch.sh ${TRAVIS_TAG} ${PWD}/build/;
|
||||||
|
fi
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
api_key:
|
token: ${GH_DEPLOY_API_KEY}
|
||||||
secure: "g/LU11f+mjqv+lj0sR1UliHwogXL4ofJUwoG5Dbqlvdf5UTLWytw/OWSCv8RGyuh10miyWeaoqHh1cn2C1IFhUEqN1sSeKKKOWOTvJ2FR5mzi9uH3d/MOBzG5icQ7Qh0fZ1YPz5RaJJhYu6bmfvA/1gD49GoaX2kxQL4J5cEBgg="
|
|
||||||
file_glob: true
|
file_glob: true
|
||||||
file: build/*
|
file: build/*
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
on:
|
on:
|
||||||
all_branches: true
|
all_branches: true
|
||||||
tags: true
|
tags: true
|
||||||
repo: OpenRA/OpenRA
|
|
||||||
|
|||||||
Reference in New Issue
Block a user