xenia-canary/.travis.yml

75 lines
2.3 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:
- LINT=true
- BUILD=true CONFIG=Debug
- BUILD=true CONFIG=Release
matrix:
allow_failures:
# LLVMGold.so is not installed correctly
- env: BUILD=true CONFIG=Release
sudo: required
addons:
apt:
sources:
# - ubuntu-toolchain-r-test
- llvm-toolchain-trusty
packages:
- clang-3.8
- clang-format-3.8
- libc++-dev
- python3
- libc++abi-dev
- libgtk-3-dev
- liblz4-dev
git:
# We handle submodules ourselves in xenia-build setup.
submodules: false
before_script:
- export CXX=clang++-3.8
- export CC=clang-3.8
# Dump useful info.
- $CXX --version
# Add Vulkan dependencies
- wget http://mirrors.kernel.org/ubuntu/pool/universe/v/vulkan/libvulkan1_1.0.42.0+dfsg1-1ubuntu1~16.04.1_amd64.deb
- wget http://mirrors.kernel.org/ubuntu/pool/universe/v/vulkan/libvulkan-dev_1.0.42.0+dfsg1-1ubuntu1~16.04.1_amd64.deb
- sudo dpkg -i libvulkan1_1.0.42.0+dfsg1-1ubuntu1~16.04.1_amd64.deb libvulkan-dev_1.0.42.0+dfsg1-1ubuntu1~16.04.1_amd64.deb
- python3 --version
# Prepare environment (pull dependencies, build tools).
- travis_retry ./xenia-build setup
script:
# Run linter.
- if [[ $LINT == true ]]; then ./xenia-build lint --all; fi
# Build and run our simple hello world test.
- if [[ $BUILD == true ]]; then ./xenia-build build --config=$CONFIG --target=xenia-base-tests; fi
- if [[ $BUILD == true ]]; then ./build/bin/Linux/$CONFIG/xenia-base-tests; fi
# Build and run ppc tests
- if [[ $BUILD == true ]]; then ./xenia-build build --config=$CONFIG --target=xenia-cpu-ppc-tests; fi
# - if [[ $BUILD == true ]]; then ./build/bin/Linux/$CONFIG/xenia-cpu-ppc-tests --log_file=stdout; fi
# 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