# 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: - wget http://download.mono-project.com/repo/xamarin.gpg -O /tmp/mono.gpg - sudo apt-key add /tmp/mono.gpg - sudo sh -c "echo 'deb http://download.mono-project.com/repo/debian wheezy/snapshots/3.8.0 main' >> /etc/apt/sources.list.d/mono-xamarin.list" - sudo apt-get update -qq - sudo apt-get install -qq mono-gmcs cli-common-dev libgdiplus=2.10-3 cache: apt # Run the build script # call RALint to check for YAML errors script: - make cli-dependencies - make all - make test # Automatically update the trait documentation and Lua API after_success: - test $TRAVIS_PULL_REQUEST == "false" && make docs && cd packaging && ./update-wiki.sh $TRAVIS_BRANCH # 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 - DOTVERSION=`echo ${TRAVIS_TAG} | sed "s/-/\\./g"` - cd packaging - mkdir build - ./package-all.sh ${TRAVIS_TAG} ${PWD}/build/ 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 skip_cleanup: true on: all_branches: true tags: true repo: OpenRA/OpenRA