xenia-canary/.travis.yml

63 lines
1.5 KiB
YAML

# 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
language: cpp
compiler:
- clang
# - gcc
os:
- linux
# - osx
env:
global:
- LLVM_VERSION=3.8.0
- LLVM_ARCHIVE_PATH=$HOME/clang+llvm.tar.xz
dist: trusty
sudo: required
addons:
apt:
sources:
# - ubuntu-toolchain-r-test
- llvm-toolchain-precise
packages:
- clang-3.8
- clang-format-3.8
- libc++-dev
git:
# We handle submodules ourselves in xenia-build setup.
submodules: false
before_install:
# Nothing!
before_script:
- export CXX=clang++-3.8
- export CC=clang-3.8
# Dump useful info.
- $CXX --version
# Prepare environment (pull dependencies, build tools).
- travis_retry ./xenia-build setup
script:
# Run linter.
- ./xenia-build lint --all
# Run style checker.
#- ./xenia-build style
# Build and run our simple hello world test.
- ./xenia-build build --config=debug --target=xenia-base-tests
- ./build/bin/Linux/Debug/xenia-base-tests
# TODO(DrChat): Enable builds in the future.
# Build all of xenia.
#- ./xenia-build build --config=debug
# All tests (without haswell support).
#- ./xenia-build test --config=debug --no-build -- --enable_haswell_instructions=false
# All tests (with haswell support).
#- ./xenia-build test --config=debug --no-build -- --enable_haswell_instructions=true