Skip to content

Commit 68d597f

Browse files
AlexeySachkovAlexeySotkin
authored andcommitted
Initial commit with Travis CI config
1 parent 41a1d1f commit 68d597f

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.travis.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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+
- sourceline: 'deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-8 main'
28+
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
29+
- ubuntu-toolchain-r-test
30+
packages:
31+
- llvm-8-tools
32+
- llvm-8-dev
33+
- libclang-8-dev
34+
35+
install:
36+
- wget https://github.com/KhronosGroup/SPIRV-LLVM-Translator/releases/download/dev-build/SPIRV-LLVM-Translator-dev-build-linux-Release.zip -O /tmp/SPIRV-LLVM-Translator-dev-build-linux-${BUILD_TYPE}.zip
37+
- unzip /tmp/SPIRV-LLVM-Translator-dev-build-linux-${BUILD_TYPE}.zip -d spirv-llvm-translator
38+
39+
compiler:
40+
- gcc
41+
- clang
42+
43+
script:
44+
- mkdir build && cd build
45+
- 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 ..
46+
- 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-80)](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)