forked from microsoft/DirectXShaderCompiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
66 lines (54 loc) · 1.28 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
# Linux Build Configuration for Travis
language: cpp
os:
- linux
# - osx
# Use Ubuntu 14.04 LTS (Trusty) as the Linux testing environment.
sudo: required
dist: trusty
env:
- DXC_BUILD_TYPE=Release
- DXC_BUILD_TYPE=Debug
compiler:
- clang
matrix:
include:
- os: linux
compiler: gcc
addons:
apt:
sources: ubuntu-toolchain-r-test
packages: ninja-build g++-5
env: DXC_BUILD_TYPE=Debug
- os: linux
compiler: gcc
addons:
apt:
sources: ubuntu-toolchain-r-test
packages: ninja-build g++-5
env: DXC_BUILD_TYPE=Release
cache:
apt: true
git:
depth: 1
branches:
only:
- linux
addons:
apt:
packages:
- ninja-build
before_script:
- git submodule update --init
- if [ ${CC} = gcc ]; then CC=gcc-5; CXX=g++-5; fi
script:
- mkdir build && cd build
- cmake .. -GNinja
$(cat ../utils/cmake-predefined-config-params)
-DSPIRV_BUILD_TESTS=ON
-DCMAKE_BUILD_TYPE=${DXC_BUILD_TYPE}
-DCMAKE_C_COMPILER=${CC} -DCMAKE_CXX_COMPILER=${CXX}
- ninja dxc && ninja clang-spirv-tests
- ./bin/dxc --help
- ./bin/dxc -T ps_6_0 ../tools/clang/test/CodeGenSPIRV/passthru-ps.hlsl2spv
- ./bin/clang-spirv-tests --spirv-test-root ../tools/clang/test/CodeGenSPIRV/