37 lines
795 B
YAML
37 lines
795 B
YAML
# Make Travis use docker (for faster builds, in theory)
|
|
sudo: false
|
|
|
|
language: cpp
|
|
compiler:
|
|
- clang
|
|
# - gcc
|
|
|
|
os:
|
|
- linux
|
|
# - osx
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- clang-3.7
|
|
- clang-format-3.7
|
|
|
|
git:
|
|
# We handle submodules ourselves in xenia-build setup.
|
|
submodules: false
|
|
|
|
before_script:
|
|
# Prepare environment (pull dependencies, build tools).
|
|
- travis_retry ./xenia-build setup
|
|
|
|
# Run test suites.
|
|
script:
|
|
# Run linter.
|
|
- ./xenia-build lint --all
|
|
# 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
|