2017-02-21 11:02:41 +00:00
|
|
|
# Build Configuration for Travis CI
|
|
|
|
# https://travis-ci.org
|
|
|
|
|
2019-06-24 08:10:19 +00:00
|
|
|
dist: trusty
|
2017-02-21 11:02:41 +00:00
|
|
|
sudo: false
|
|
|
|
language: cpp
|
2019-06-24 08:10:19 +00:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- gcc-5
|
|
|
|
- g++-5
|
|
|
|
env: GCC_VERSION=5
|
|
|
|
compiler: gcc-5
|
|
|
|
|
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- gcc-8
|
|
|
|
- g++-8
|
|
|
|
env: GCC_VERSION=8
|
|
|
|
compiler: gcc-8
|
|
|
|
|
2017-02-21 11:02:41 +00:00
|
|
|
install:
|
2019-06-24 08:10:19 +00:00
|
|
|
- if [[ "${GCC_VERSION}" != "" ]]; then export CXX="g++-${GCC_VERSION}"; export CC="gcc-${GCC_VERSION}"; fi
|
2017-02-21 11:02:41 +00:00
|
|
|
|
|
|
|
script:
|
|
|
|
- cmake --version
|
|
|
|
- cmake -H. -B/tmp/build
|
|
|
|
- make -C /tmp/build
|
|
|
|
- /tmp/build/VulkanHppGenerator
|
|
|
|
- echo "#include \"vulkan.hpp\"" > /tmp/test.cpp
|
2019-06-24 08:10:19 +00:00
|
|
|
- echo "int myCreateInstance()" >> /tmp/test.cpp
|
2017-02-21 11:02:41 +00:00
|
|
|
- echo "{" >> /tmp/test.cpp
|
|
|
|
- echo " vk::Instance inst;" >> /tmp/test.cpp
|
|
|
|
- echo " auto const inst_info = vk::InstanceCreateInfo();" >> /tmp/test.cpp
|
|
|
|
- echo " vk::Result result = vk::createInstance(&inst_info, nullptr, &inst);" >> /tmp/test.cpp
|
2019-06-24 08:10:19 +00:00
|
|
|
- echo " return static_cast<int> (result);" >> /tmp/test.cpp
|
2017-02-21 11:02:41 +00:00
|
|
|
- echo "}" >> /tmp/test.cpp
|
|
|
|
- cat /tmp/test.cpp
|
2019-06-24 08:10:19 +00:00
|
|
|
- ${CXX} -std=c++11 -Wall -Ivulkan -IVulkan-Headers/include -c /tmp/test.cpp
|