2017-09-07 12:01:58 +10:00
|
|
|
sudo: false
|
2017-11-07 13:57:32 +11:00
|
|
|
language: rust
|
2017-09-07 12:01:58 +10:00
|
|
|
|
2018-03-02 14:04:47 +11:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
rust: stable
|
|
|
|
compiler: gcc
|
|
|
|
- os: linux
|
|
|
|
rust: nightly
|
|
|
|
compiler: gcc
|
|
|
|
- os: osx
|
|
|
|
rust: stable
|
|
|
|
osx_image: xcode9
|
|
|
|
compiler: clang
|
2017-09-07 12:01:58 +10:00
|
|
|
|
2017-12-12 04:23:31 +11:00
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- staging.tmp
|
|
|
|
|
2018-03-02 14:04:47 +11:00
|
|
|
before_install:
|
|
|
|
# Do not run bors builds against the nightly compiler.
|
|
|
|
# We want to find out about nightly bugs, so they're done in master, but we don't block on them.
|
|
|
|
- if [[ $TRAVIS_RUST_VERSION == "nightly" && $TRAVIS_BRANCH == "staging" ]]; then exit; fi
|
|
|
|
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then brew update && brew install sdl2 && brew upgrade cmake && export CXX=clang++ && export MACOSX_DEPLOYMENT_TARGET=10.9; fi
|
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
# install a newer cmake since at this time Travis only has version 2.8.7
|
|
|
|
- george-edison55-precise-backports
|
|
|
|
- llvm-toolchain-precise-3.8
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
#- ppa:xorg-edgers/ppa # for libosmesa6-dev
|
|
|
|
packages:
|
|
|
|
- xdotool
|
|
|
|
- cmake
|
|
|
|
- cmake-data
|
|
|
|
- libxxf86vm-dev
|
|
|
|
- libxinerama-dev
|
|
|
|
- libxinerama1
|
|
|
|
- libxcursor-dev
|
|
|
|
- libxcursor1
|
|
|
|
- libglfw-dev
|
|
|
|
- libosmesa6-dev
|
|
|
|
- libxi-dev
|
|
|
|
- libxrandr-dev
|
|
|
|
- g++-5
|
|
|
|
- gcc
|
|
|
|
|
2017-09-07 12:01:58 +10:00
|
|
|
script:
|
2018-03-02 14:04:47 +11:00
|
|
|
- if [[ $TRAVIS_RUST_VERSION == "nightly" && $TRAVIS_BRANCH == "staging" ]]; then exit; fi
|
|
|
|
- export PATH=$PATH:$HOME/deps/bin
|
2017-09-07 12:01:58 +10:00
|
|
|
- make
|
2018-04-26 02:00:50 +10:00
|
|
|
- if [[ $TRAVIS_RUST_VERSION == "nightly" ]]; then make debug release; fi
|
2018-08-29 23:04:31 +10:00
|
|
|
- if [[ $TRAVIS_RUST_VERSION == "stable" && $TRAVIS_BRANCH == $TRAVIS_TAG ]]; then make package; fi
|
2018-08-28 09:58:41 +10:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
api_key:
|
|
|
|
secure: kS8vjHOnLEknb2qxf2dPxMW8S5KcpjSkSgoi23WXiX3DZ2v8DIJMxVLanJhD3mbr1oI1NGXQHrTeeA/HBEEJcOVzlQo38MgNo/Jyt1k4jLRyCEDL0LjO+M1zAQGoEDWlyyjeu+Alw3SFKqGoZeuYDZ/mxUpEapFMD++8w4IjON2fI6iNumcIMeAg3Ns6Y4wHYQPzfIQQf5svI9dh1lf7PhlFB/btONBPi6rXxU/UwCnHBoOPydl5OwjggaUAjCJSf8i/FDLWt5XpvA2UsML2AbcFNuwFhNGhf6ArwEsqgcMCGL6jACetvI/l3ZL96h5dsgzRLW0ruvnvpEm3y3aw9wCjEAcnQMZCBPlIfOpj5MH/guh526QWCVQ3rwRUJOhua9T2yvwda3ICYspyVShzlbwscA9yLwvsuO+6Hl+upuE2IPfLvS6QpnXVlIWHe/3HqOoQggDdsWvnZhhGNKASKsi9vNgTvec/1iX846/KGcV3nYeHIWFrvP0IgWtEqQrgcWj9w6X7LDdaTFmrkKwKnNn4ClLQYPnlWQS71iX0gwRhONGaSAEfFca6vwVTa8AGSQUEHphe5lT7LtAy6UhlbjZNuKvUR+pn+l0EoWlZzm+uxKMtGR+mG9h6My+GA3hCWWtX/Xc94TvuJ1cg+uRu48+rD21vv3cr2fEVDRq7pGg=
|
2018-08-28 23:41:59 +10:00
|
|
|
file_glob: true
|
|
|
|
file: gfx-portability-*.zip
|
2018-08-28 09:58:41 +10:00
|
|
|
skip_cleanup: true
|
2018-09-06 16:20:35 +10:00
|
|
|
overwrite: true
|
2018-08-28 09:58:41 +10:00
|
|
|
on:
|
|
|
|
tags: true
|
2018-08-28 15:10:22 +10:00
|
|
|
condition: $TRAVIS_RUST_VERSION == "stable" && $TRAVIS_BRANCH == $TRAVIS_TAG
|
2018-08-28 11:42:40 +10:00
|
|
|
skip_cleanup: true
|