2015-08-01 08:07:17 +00:00
|
|
|
# Make Travis use docker (for faster builds, in theory).
|
2015-08-01 06:48:24 +00:00
|
|
|
|
|
|
|
language: cpp
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
|
2017-12-21 01:12:34 +00:00
|
|
|
sudo: required
|
2019-09-21 21:04:23 +00:00
|
|
|
dist: bionic
|
2017-12-20 03:55:15 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
2019-09-21 21:04:23 +00:00
|
|
|
- llvm-toolchain-bionic-7
|
2017-12-20 03:55:15 +00:00
|
|
|
packages:
|
2019-07-18 08:59:13 +00:00
|
|
|
- clang-7
|
|
|
|
- llvm-7-dev
|
2018-11-22 14:59:34 +00:00
|
|
|
- g++-8
|
2017-12-20 03:55:15 +00:00
|
|
|
- python3
|
|
|
|
- libc++-dev
|
|
|
|
- libc++abi-dev
|
|
|
|
- libgtk-3-dev
|
|
|
|
- libpthread-stubs0-dev
|
2020-02-09 23:38:47 +00:00
|
|
|
- libsdl2-dev
|
2017-12-21 01:12:34 +00:00
|
|
|
#- libvulkan1
|
|
|
|
#- libvulkan-dev
|
2017-12-20 03:55:15 +00:00
|
|
|
- libx11-dev
|
|
|
|
- liblz4-dev
|
|
|
|
|
2017-02-18 05:42:09 +00:00
|
|
|
matrix:
|
2017-12-15 05:14:46 +00:00
|
|
|
include:
|
2019-07-18 08:59:13 +00:00
|
|
|
- env: C_COMPILER=clang-7 CXX_COMPILER=clang++-7 LINT=true
|
2017-12-21 17:14:49 +00:00
|
|
|
sudo: false
|
2019-07-18 08:59:13 +00:00
|
|
|
- env: C_COMPILER=clang-7 CXX_COMPILER=clang++-7 BUILD=true CONFIG=Debug
|
|
|
|
- env: C_COMPILER=clang-7 CXX_COMPILER=clang++-7 BUILD=true CONFIG=Release
|
2016-06-13 23:27:14 +00:00
|
|
|
|
2015-08-01 07:09:48 +00:00
|
|
|
git:
|
|
|
|
# We handle submodules ourselves in xenia-build setup.
|
|
|
|
submodules: false
|
|
|
|
|
2015-08-01 06:48:24 +00:00
|
|
|
before_script:
|
2019-07-18 08:59:13 +00:00
|
|
|
- export LIBVULKAN_VERSION=1.1.70
|
2017-12-15 05:14:46 +00:00
|
|
|
- export CXX=$CXX_COMPILER
|
|
|
|
- export CC=$C_COMPILER
|
2015-08-01 08:30:47 +00:00
|
|
|
# Dump useful info.
|
|
|
|
- $CXX --version
|
2017-12-15 05:14:46 +00:00
|
|
|
- python3 --version
|
2019-07-18 08:59:13 +00:00
|
|
|
# Add Vulkan dependencies.
|
|
|
|
- travis_retry wget http://mirrors.kernel.org/ubuntu/pool/universe/v/vulkan/libvulkan1_$LIBVULKAN_VERSION+dfsg1-1_amd64.deb
|
|
|
|
- travis_retry wget http://mirrors.kernel.org/ubuntu/pool/universe/v/vulkan/libvulkan-dev_$LIBVULKAN_VERSION+dfsg1-1_amd64.deb
|
|
|
|
- if [[ $BUILD == true ]]; then sudo dpkg -i libvulkan1_$LIBVULKAN_VERSION+dfsg1-1_amd64.deb libvulkan-dev_$LIBVULKAN_VERSION+dfsg1-1_amd64.deb; fi
|
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.
|
2017-02-18 05:42:09 +00:00
|
|
|
- if [[ $LINT == true ]]; then ./xenia-build lint --all; fi
|
2019-07-18 08:59:13 +00:00
|
|
|
|
|
|
|
# Build and run base tests.
|
2017-02-18 05:50:55 +00:00
|
|
|
- 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
|
2019-07-18 08:59:13 +00:00
|
|
|
# Build and run ppc tests.
|
2017-02-18 05:50:55 +00:00
|
|
|
- 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
|
2017-02-06 02:21:35 +00:00
|
|
|
|
2015-08-01 07:09:48 +00:00
|
|
|
# Build all of xenia.
|
2017-12-20 22:27:01 +00:00
|
|
|
- if [[ $BUILD == true ]]; then ./xenia-build build --config=$CONFIG; fi
|
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
|