-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (35 loc) · 1.11 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
language: cpp
compiler:
- gcc
- clang
os:
- linux
env:
global:
- PATH=/opt/python/3.7.1/bin:$PATH
# Basic coding standard checks:
# - Uses spaces, not tabs.
# - No trailing whitespace.
before_install:
- "if git grep -n $'\t' *.cpp *.c *.hpp *.h; then echo 'Please replace tabs with spaces in source files.'; false; fi"
- "if git grep -n '[[:blank:]]$' *.cpp *.c *.hpp *.h; then echo 'Please remove trailing whitespace from source files.'; false; fi"
install:
- python -VV
- python3 -VV
- pip -V
- pip3 -V
- pip3 install --user mako
before_script:
- "mkdir temp"
- "pushd scripts"
- "python3 gen_hybrid_loader_mako.py -registry https://raw.githubusercontent.com/KhronosGroup/OpenCL-Docs/master/xml/cl.xml -o ../temp"
- "popd"
- "if ! diff src/loader.cpp temp/loader.cpp; then echo 'Please ensure all files are generated correctly.'; false; fi"
script:
- export TOP=$(pwd)
- git clone https://github.com/KhronosGroup/OpenCL-Headers.git external/OpenCL-Headers
- mkdir -p build
- cd build
- cmake -DOpenCL_INCLUDE_DIRS=${TOP}/external/OpenCL-Headers ..
- make -j 4
- ctest