-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy path.travis.yml
57 lines (48 loc) · 1.33 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
language: cpp
sudo: required
addons:
apt:
sources:
- george-edison55-precise-backports
- ubuntu-toolchain-r-test
packages:
- cmake
- cmake-data
- ninja-build
- gcc-6
- g++-6
compiler:
- gcc
before_install:
# Setup GCC 6 as the default compiler
- sudo unlink /usr/bin/gcc && sudo ln -s /usr/bin/gcc-6 /usr/bin/gcc
- sudo unlink /usr/bin/g++ && sudo ln -s /usr/bin/g++-6 /usr/bin/g++
- gcc --version
# Clone private dependencies which are not part of the main repository
- cd ..
- git clone https://[email protected]/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.49.0/linux/vulkansdk-linux-x86_64-1.0.49.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.49.0/x86_64/
# Check all env. variables
- printenv
# Config via CMake
- cd scripts_linux
- chmod +x Config_Release_CompileOnly Build
- ./Config_Release_CompileOnly
- ./Build
- cd ..