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
|
|
|
|
|
2016-06-13 23:27:14 +00:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- LLVM_VERSION=3.8.0
|
|
|
|
- LLVM_ARCHIVE_PATH=$HOME/clang+llvm.tar.xz
|
|
|
|
|
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
2015-09-22 15:19:57 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
2016-06-13 23:27:14 +00:00
|
|
|
# - llvm-toolchain-precise
|
2015-09-22 15:19:57 +00:00
|
|
|
packages:
|
2016-06-13 23:27:14 +00:00
|
|
|
# - 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
|
|
|
|
|
2016-06-13 23:27:14 +00:00
|
|
|
before_install:
|
|
|
|
- wget http://llvm.org/releases/$LLVM_VERSION/clang+llvm-$LLVM_VERSION-x86_64-linux-gnu-ubuntu-14.04.tar.xz -O $LLVM_ARCHIVE_PATH
|
|
|
|
- mkdir $HOME/clang+llvm
|
|
|
|
- tar xf $LLVM_ARCHIVE_PATH -C $HOME/clang+llvm --strip-components 1
|
|
|
|
- export PATH=$HOME/clang+llvm/bin:$PATH
|
|
|
|
|
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-09-07 01:07:52 +00:00
|
|
|
# Run style checker.
|
|
|
|
#- ./xenia-build style
|
2016-06-13 23:48:56 +00:00
|
|
|
# TODO(DrChat): Enable builds in the future.
|
2016-01-01 20:54:36 +00:00
|
|
|
# Build and run our simple hello world test.
|
2016-06-13 23:48:56 +00:00
|
|
|
# - ./xenia-build build --config=debug --target=xenia-base-tests
|
|
|
|
# - ./build/bin/Linux/Debug/xenia-base-tests
|
2015-08-01 07:09:48 +00:00
|
|
|
# Build all of xenia.
|
2015-09-07 01:07:52 +00:00
|
|
|
#- ./xenia-build build --config=debug
|
2015-08-01 07:09:48 +00:00
|
|
|
# All tests (without haswell support).
|
2015-09-07 01:07:52 +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-09-07 01:07:52 +00:00
|
|
|
#- ./xenia-build test --config=debug --no-build -- --enable_haswell_instructions=true
|