2015-08-01 08:07:17 +00:00
|
|
|
# Make Travis use docker (for faster builds, in theory).
|
|
|
|
# TODO(benvanik): re-enable when clang-3.8 is whitelisted.
|
|
|
|
# https://github.com/travis-ci/apt-package-whitelist/issues/474
|
|
|
|
#sudo: false
|
2015-08-01 06:48:24 +00:00
|
|
|
|
|
|
|
language: cpp
|
|
|
|
compiler:
|
|
|
|
- clang
|
|
|
|
# - gcc
|
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
# - osx
|
|
|
|
|
2015-08-01 08:30:47 +00:00
|
|
|
# TODO(benvanik): re-enable when clang-3.8 is whitelisted.
|
|
|
|
# https://github.com/travis-ci/apt-package-whitelist/issues/474
|
|
|
|
#addons:
|
|
|
|
# apt:
|
|
|
|
# sources:
|
|
|
|
# - llvm-toolchain-precise
|
|
|
|
# packages:
|
|
|
|
# - clang-3.8
|
|
|
|
# - clang-format-3.8
|
2015-08-01 07:41:46 +00:00
|
|
|
|
2015-08-01 07:09:48 +00:00
|
|
|
git:
|
|
|
|
# We handle submodules ourselves in xenia-build setup.
|
|
|
|
submodules: false
|
|
|
|
|
2015-08-01 08:30:47 +00:00
|
|
|
before_install:
|
|
|
|
- sudo add-apt-repository "deb http://llvm.org/apt/precise/ llvm-toolchain-precise main" -y
|
|
|
|
- wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
|
|
|
|
- sudo apt-get update -qq
|
|
|
|
|
|
|
|
install:
|
2015-08-01 09:11:16 +00:00
|
|
|
- sudo apt-get install -f clang-3.8 clang-format-3.8
|
2015-08-01 08:30:47 +00:00
|
|
|
|
2015-08-01 06:48:24 +00:00
|
|
|
before_script:
|
2015-08-01 08:30:47 +00:00
|
|
|
# Dump useful info.
|
|
|
|
- $CXX --version
|
2015-08-01 07:09:48 +00:00
|
|
|
# Prepare environment (pull dependencies, build tools).
|
2015-08-01 06:48:24 +00:00
|
|
|
- travis_retry ./xenia-build setup
|
|
|
|
|
|
|
|
script:
|
2015-08-01 07:09:48 +00:00
|
|
|
# Run linter.
|
2015-08-01 06:48:24 +00:00
|
|
|
- ./xenia-build lint --all
|
2015-08-01 07:09:48 +00:00
|
|
|
# Build all of xenia.
|
|
|
|
- ./xenia-build build --config=debug
|
|
|
|
# All tests (without haswell support).
|
2015-08-01 06:48:24 +00:00
|
|
|
- ./xenia-build test --config=debug --no-build -- --enable_haswell_instructions=false
|
2015-08-01 07:09:48 +00:00
|
|
|
# All tests (with haswell support).
|
2015-08-01 06:48:24 +00:00
|
|
|
- ./xenia-build test --config=debug --no-build -- --enable_haswell_instructions=true
|