-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy path.travis.yml
58 lines (50 loc) · 1.52 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
51
52
53
54
55
56
57
58
language: cpp
sudo: required
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-4.0
packages:
- cmake
- cmake-data
- ninja-build
- clang-4.0
- gcc-6
- g++-6
env:
matrix:
# GCC
- MATRIX_EVAL="CC=/usr/bin/gcc-6 && CXX=/usr/bin/g++-6" CMAKE_BUILD_TYPE="Debug"
- MATRIX_EVAL="CC=/usr/bin/gcc-6 && CXX=/usr/bin/g++-6" CMAKE_BUILD_TYPE="Release"
# Clang
- MATRIX_EVAL="CC=/usr/bin/clang-4.0 && CXX=/usr/bin/clang++-4.0" CMAKE_BUILD_TYPE="Debug"
- MATRIX_EVAL="CC=/usr/bin/clang-4.0 && CXX=/usr/bin/clang++-4.0" CMAKE_BUILD_TYPE="Release"
before_install:
- eval "${MATRIX_EVAL}"
# Clone private dependencies which are not part of the main repository
- cd ..
- git clone -q https://$INTR_GIT_TOKEN@github.com/begla/Intrinsic_Dependencies.git
- cd Intrinsic
install:
# SDL2
- curl -O http://libsdl.org/release/SDL2-2.0.5.tar.gz
- tar -xzvf SDL2-2.0.5.tar.gz
- (cd SDL2-2.0.5 && ./configure && make && sudo make install)
# Vulkan SDK
- curl https://vulkan.lunarg.com/sdk/download/1.0.54.0/linux/vulkansdk-linux-x86_64-1.0.54.0.run -L -o vulkan.run
- chmod +x vulkan.run
- ./vulkan.run
# Build dependencies
- cd scripts_linux
- chmod +x ConfigAndBuildDependencies
- ./ConfigAndBuildDependencies
- cd ..
script:
- export VK_SDK_PATH=$(pwd)/VulkanSDK/1.0.54.0/x86_64/
# Build
- mkdir build
- cd build
- cmake -G Ninja -DCMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE}" ..
- cmake --build .