mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Update travis config (#346)
* travis: Build with different, and a newer, gcc version * travis: Also enable -Wall for mini-test * travis: Avoid 'unused variable' in mini-test
This commit is contained in:
parent
ed11cd8eb8
commit
837a5d6a23
35
.travis.yml
35
.travis.yml
@ -1,24 +1,36 @@
|
|||||||
# Build Configuration for Travis CI
|
# Build Configuration for Travis CI
|
||||||
# https://travis-ci.org
|
# https://travis-ci.org
|
||||||
|
|
||||||
dist: precise
|
dist: trusty
|
||||||
sudo: false
|
sudo: false
|
||||||
language: cpp
|
language: cpp
|
||||||
compiler:
|
|
||||||
- gcc
|
matrix:
|
||||||
install:
|
include:
|
||||||
- if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
|
- os: linux
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
sources:
|
sources:
|
||||||
- ubuntu-toolchain-r-test
|
- ubuntu-toolchain-r-test
|
||||||
- llvm-toolchain-precise
|
|
||||||
- george-edison55-precise-backports # cmake 3.2.3 / doxygen 1.8.3
|
|
||||||
packages:
|
packages:
|
||||||
- gcc-5
|
- gcc-5
|
||||||
- g++-5
|
- g++-5
|
||||||
- cmake
|
env: GCC_VERSION=5
|
||||||
- cmake-data
|
compiler: gcc-5
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
packages:
|
||||||
|
- gcc-8
|
||||||
|
- g++-8
|
||||||
|
env: GCC_VERSION=8
|
||||||
|
compiler: gcc-8
|
||||||
|
|
||||||
|
install:
|
||||||
|
- if [[ "${GCC_VERSION}" != "" ]]; then export CXX="g++-${GCC_VERSION}"; export CC="gcc-${GCC_VERSION}"; fi
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- cmake --version
|
- cmake --version
|
||||||
@ -26,11 +38,12 @@ script:
|
|||||||
- make -C /tmp/build
|
- make -C /tmp/build
|
||||||
- /tmp/build/VulkanHppGenerator
|
- /tmp/build/VulkanHppGenerator
|
||||||
- echo "#include \"vulkan.hpp\"" > /tmp/test.cpp
|
- echo "#include \"vulkan.hpp\"" > /tmp/test.cpp
|
||||||
- echo "void myCreateInstance()" >> /tmp/test.cpp
|
- echo "int myCreateInstance()" >> /tmp/test.cpp
|
||||||
- echo "{" >> /tmp/test.cpp
|
- echo "{" >> /tmp/test.cpp
|
||||||
- echo " vk::Instance inst;" >> /tmp/test.cpp
|
- echo " vk::Instance inst;" >> /tmp/test.cpp
|
||||||
- echo " auto const inst_info = vk::InstanceCreateInfo();" >> /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
|
- echo " vk::Result result = vk::createInstance(&inst_info, nullptr, &inst);" >> /tmp/test.cpp
|
||||||
|
- echo " return static_cast<int> (result);" >> /tmp/test.cpp
|
||||||
- echo "}" >> /tmp/test.cpp
|
- echo "}" >> /tmp/test.cpp
|
||||||
- cat /tmp/test.cpp
|
- cat /tmp/test.cpp
|
||||||
- ${CXX} -std=c++11 -Ivulkan -IVulkan-Headers/include -c /tmp/test.cpp
|
- ${CXX} -std=c++11 -Wall -Ivulkan -IVulkan-Headers/include -c /tmp/test.cpp
|
||||||
|
Loading…
Reference in New Issue
Block a user