forked from KhronosGroup/Vulkan-Hpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (45 loc) · 1.37 KB
/
.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Build Configuration for Travis CI
# https://travis-ci.org
dist: trusty
sudo: false
language: cpp
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
install:
- if [[ "${GCC_VERSION}" != "" ]]; then export CXX="g++-${GCC_VERSION}"; export CC="gcc-${GCC_VERSION}"; fi
script:
- cmake --version
- cmake -H. -B/tmp/build
- make -C /tmp/build
- /tmp/build/VulkanHppGenerator
- echo "#include \"vulkan.hpp\"" > /tmp/test.cpp
- echo "int 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 " return static_cast<int> (result);" >> /tmp/test.cpp
- echo "}" >> /tmp/test.cpp
- cat /tmp/test.cpp
- ${CXX} -std=c++11 -Wall -Ivulkan -IVulkan-Headers/include -c /tmp/test.cpp
- ${CXX} -std=c++14 -Wall -Ivulkan -IVulkan-Headers/include -c /tmp/test.cpp