Skip to content

Commit d936479

Browse files
AlexeySachkovAlexeySotkin
authored andcommitted
Initial commit with Travis CI config
1 parent 9be0d76 commit d936479

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

.travis.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
language: cpp
2+
3+
os:
4+
- linux
5+
6+
# Use Ubuntu 16.04 LTS (Xenial) as the Linux testing environment.
7+
dist: xenial
8+
sudo: false
9+
10+
git:
11+
depth: 1
12+
13+
branches:
14+
only:
15+
- master
16+
- ocl-open-70
17+
- ocl-open-80
18+
19+
env:
20+
matrix:
21+
- BUILD_TYPE=Release
22+
- BUILD_TYPE=Debug
23+
24+
addons:
25+
apt:
26+
sources:
27+
- llvm-toolchain-xenial-7
28+
packages:
29+
- llvm-7-tools
30+
- llvm-7-dev
31+
- libclang-7-dev
32+
33+
install:
34+
- wget https://github.com/KhronosGroup/SPIRV-LLVM-Translator/releases/download/7.0.1-1/SPIRV-LLVM-Translator-7.0.1-1-linux-Release.zip -O /tmp/SPIRV-LLVM-Translator-70-build-linux-${BUILD_TYPE}.zip
35+
- unzip /tmp/SPIRV-LLVM-Translator-70-build-linux-${BUILD_TYPE}.zip -d spirv-llvm-translator
36+
37+
compiler:
38+
- gcc
39+
- clang
40+
41+
script:
42+
- mkdir build && cd build
43+
- cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DLLVM_NO_DEAD_STRIP=ON -DLLVMSPIRV_INCLUDED_IN_LLVM=OFF -DSPIRV_TRANSLATOR_DIR=./spirv-llvm-translator -DCMAKE_INSTALL_PREFIX=./install ..
44+
- make install

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![Build Status](https://travis-ci.com/intel/opencl-clang.svg?branch=ocl-open-70)](https://travis-ci.com/intel/opencl-clang)
2+
13
Common clang is a thin wrapper library around clang. Common clang has
24
OpenCL-oriented API and is capable to compile OpenCL C kernels to SPIR-V
35
modules.

0 commit comments

Comments
 (0)