forked from KhronosGroup/Vulkan-Hpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (34 loc) · 1012 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Build Configuration for Travis CI
# https://travis-ci.org
dist: precise
sudo: false
language: cpp
compiler:
- gcc
install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise
- george-edison55-precise-backports # cmake 3.2.3 / doxygen 1.8.3
packages:
- gcc-5
- g++-5
- cmake
- cmake-data
script:
- cmake --version
- cmake -H. -B/tmp/build
- make -C /tmp/build
- /tmp/build/VulkanHppGenerator
- echo "#include \"vulkan.hpp\"" > /tmp/test.cpp
- echo "void myCreateInstance()" >> /tmp/test.cpp
- 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
- echo "}" >> /tmp/test.cpp
- cat /tmp/test.cpp
- ${CXX} -std=c++11 -Ivulkan -IVulkan-Docs/src -c /tmp/test.cpp