65 lines
1.8 KiB
YAML
65 lines
1.8 KiB
YAML
# Travis-CI Build for OpenRA
|
|
# see travis-ci.org for details
|
|
|
|
# Mono/.NET are not officially supported. The following is a workaround.
|
|
language: c
|
|
|
|
# Make sure build dependencies are installed.
|
|
install:
|
|
- sudo apt-get update -qq
|
|
- sudo apt-get install -qq mono-gmcs cli-common-dev libgl1-mesa-glx libopenal1 libfreetype6
|
|
cache: apt
|
|
|
|
# Run the build script
|
|
# call RALint to check for YAML errors
|
|
script:
|
|
- make dependencies
|
|
- make all
|
|
- make test
|
|
|
|
# Only watch the development branch and tagged release.
|
|
branches:
|
|
only:
|
|
- /^release-.*$/
|
|
- /^playtest-.*$/
|
|
- /^pkgtest-.*$/
|
|
- bleed
|
|
|
|
# Notify developers when build passed/failed.
|
|
notifications:
|
|
irc:
|
|
template:
|
|
- "%{repository}#%{build_number} %{commit} %{author}: %{message} %{build_url}"
|
|
channels:
|
|
- "irc.freenode.net#openra"
|
|
use_notice: true
|
|
skip_join: true
|
|
|
|
before_deploy:
|
|
- sudo apt-get install nsis markdown dpkg rpm libarchive-dev m4 fakeroot bsdtar
|
|
- wget ftp://ftp.archlinux.org/other/pacman/pacman-4.0.3.tar.gz -O /tmp/pacman-4.0.3.tar.gz
|
|
- pushd /tmp
|
|
- tar -xzvf pacman-4.0.3.tar.gz
|
|
- cd pacman-4.0.3 && ./configure --disable-doc --prefix=/usr && make && sudo make install
|
|
- popd
|
|
- DOTVERSION=`echo ${TRAVIS_TAG} | sed "s/-/\\./g"`
|
|
- cd packaging
|
|
- mkdir build
|
|
- ./package-all.sh ${TRAVIS_TAG} ${PWD}/build/
|
|
- ./update-wiki.sh
|
|
deploy:
|
|
provider: releases
|
|
api_key:
|
|
secure: "cMC68erxuf0jb4Pe0sOH4m1f7I2LWPUatD9BC0WeZ9PwTnWOzrm0hnjZIES4TTKVo8WIfZIiCfxpdAFeoh6bomG2MsKwSKMc8qHGhfNGqPnyzYh6zdPZaA+4Q3TDQI3DrziyDnQUFeH1h/7UZLDLxtDrOtcYcGdNg5VjvV9fJ7g="
|
|
file:
|
|
- build/OpenRA-${TRAVIS_TAG}.exe
|
|
- build/OpenRA-${TRAVIS_TAG}.zip
|
|
- build/openra_${DOTVERSION}_all.deb
|
|
- build/openra-${DOTVERSION}-1-any.pkg.tar.gz
|
|
- build/openra-${DOTVERSION}-1.noarch.rpm
|
|
skip_cleanup: true
|
|
on:
|
|
all_branches: true
|
|
tags: true
|
|
repo: OpenRA/OpenRA
|