-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
113 lines (101 loc) · 3.14 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
sudo: true
language: cpp
addons:
apt:
packages:
- valgrind
- cmake
- ninja-build
- doxygen
- libgl1-mesa-glx
- libgl1-mesa-dev
- libvulkan1
- libvulkan-dev
homebrew:
packages:
- git-lfs
- doxygen
- ninja
- capnp
env:
global:
- CTEST_EXT_COLOR_OUTPUT=TRUE
- CTEST_BUILD_FLAGS=-j4
- CAPNPROTO_VERSION="0.8.0"
matrix:
include:
- os: linux
name: Ubuntu Bionic gcc
dist: bionic
env:
- MATRIX_EVAL="CC=gcc && CXX=g++"
- VULKAN_SDK_VER="1.2.135"
- PATH="$PATH:$HOME/capnproto/bin"
- LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/capnproto/lib"
- os: linux
name: Ubuntu Bionic clang
dist: bionic
env:
- MATRIX_EVAL="CC=clang && CXX=clang++"
- VULKAN_SDK_VER="1.2.135"
- PATH="$PATH:$HOME/capnproto/bin"
- LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/capnproto/lib"
- os: osx
name: OSX xcode11.2 gcc
osx_image: xcode11.2
env:
- MATRIX_EVAL="CC=gcc && CXX=g++"
- VULKAN_SDK_VER="1.2.135.0"
- VULKAN_INSTALL_DIR="$HOME/build/vulkansdk-macos-${VULKAN_SDK_VER}"
- VULKAN_SDK="$VULKAN_INSTALL_DIR/macOS"
- os: osx
name: OSX xcode11.2 clang
osx_image: xcode11.2
env:
- MATRIX_EVAL="CC=clang && CXX=clang++"
- VULKAN_SDK_VER="1.2.135.0"
- VULKAN_INSTALL_DIR="$HOME/build/vulkansdk-macos-${VULKAN_SDK_VER}"
- VULKAN_SDK="$VULKAN_INSTALL_DIR/macOS"
before_install:
- eval "${MATRIX_EVAL}"
install:
- |
case "${TRAVIS_OS_NAME:-linux}" in
linux)
wget -qO - http://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add - &&
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-${VULKAN_SDK_VER}-bionic.list http://packages.lunarg.com/vulkan/${VULKAN_SDK_VER}/lunarg-vulkan-${VULKAN_SDK_VER}-bionic.list &&
sudo apt update &&
sudo apt install vulkan-sdk &&
curl -O https://capnproto.org/capnproto-c++-${CAPNPROTO_VERSION}.tar.gz &&
tar zxf capnproto-c++-${CAPNPROTO_VERSION}.tar.gz &&
cd capnproto-c++-${CAPNPROTO_VERSION} &&
./configure --prefix=$HOME/capnproto &&
make -j3 &&
make install &&
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/capnproto/lib &&
cd ../
;;
osx)
# Current directory is .../build/{KhronosGroup,msc-}/KTX-Software. cd to 'build'.
pushd ../.. &&
wget -O vulkansdk-macos-${VULKAN_SDK_VER}.tar.gz https://sdk.lunarg.com/sdk/download/${VULKAN_SDK_VER}/mac/vulkansdk-macos-${VULKAN_SDK_VER}.tar.gz?Human=true &&
tar -xzf vulkansdk-macos-${VULKAN_SDK_VER}.tar.gz &&
wget -O Packages.dmg http://s.sudre.free.fr/Software/files/Packages.dmg &&
hdiutil attach Packages.dmg &&
sudo installer -pkg /Volumes/Packages*/packages/packages.pkg -target / &&
hdiutil detach /Volumes/Packages* &&
popd
;;
esac
before_script:
- chmod +x build_osx.sh
- chmod +x build_linux.sh
script:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then ./build_osx.sh; else ./build_linux.sh; fi
branches:
only:
- master
- dev
notifications:
email:
on_success: never