VulkanMemoryAllocator/.travis.yml
2021-02-22 14:42:08 +01:00

56 lines
1.5 KiB
YAML

language: cpp
sudo: required
os: linux
dist: trusty
branches:
only:
- master
compiler:
- clang
- gcc
matrix:
include:
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-5.0
packages:
- g++-7
- clang-5.0
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
- MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0"
before_script:
- sudo apt-get install
- eval "${MATRIX_EVAL}"
install:
- wget https://github.com/premake/premake-core/releases/download/v5.0.0-alpha15/premake-5.0.0-alpha15-linux.tar.gz -O premake-5.0.0-alpha15-linux.tar.gz
- tar -xzvf premake-5.0.0-alpha15-linux.tar.gz
- sudo apt-get -qq update
- sudo apt-get install -y libassimp-dev libglm-dev graphviz libxcb-dri3-0 libxcb-present0 libpciaccess0 cmake libpng-dev libxcb-dri3-dev libx11-dev libx11-xcb-dev libmirclient-dev libwayland-dev libxrandr-dev
- export VK_VERSION=1.2.131.1
- wget -O vulkansdk-linux-x86_64-$VK_VERSION.tar.gz https://sdk.lunarg.com/sdk/download/$VK_VERSION/linux/vulkansdk-linux-x86_64-$VK_VERSION.tar.gz?Human=true
- tar zxf vulkansdk-linux-x86_64-$VK_VERSION.tar.gz
- export VULKAN_SDK=$TRAVIS_BUILD_DIR/$VK_VERSION/x86_64
script:
- cd premake
- ../premake5 gmake
- cd ../build
- make config=debug_linux-x64
- cd ..
notifications:
email:
recipients:
- adam.sawicki@amd.com
on_success: change
on_failure: always