forked from preda/gpuowl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (51 loc) · 1.33 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
language: cpp
matrix:
include:
- name: "Ubuntu 18.04 (gcc)"
os: linux
dist: bionic
compiler: gcc
virt: vm
before_script:
- sed -i 's/<filesystem>/<experimental\/filesystem>/' *.h *.cpp
- sed -i 's/std::filesystem/std::experimental::filesystem/' *.h *.cpp
- sed -i 's/assert(false);/abort();/' Pm1Plan.cpp
- name: "Ubuntu 18.04 (clang)"
os: linux
dist: bionic
compiler: clang
virt: vm
before_script:
- sed -i 's/<filesystem>/<experimental\/filesystem>/' *.h *.cpp
- sed -i 's/std::filesystem/std::experimental::filesystem/' *.h *.cpp
- name: "Ubuntu 20.04 (gcc)"
os: linux
dist: focal
compiler: gcc
virt: vm
- name: "Ubuntu 20.04 (clang)"
os: linux
dist: focal
compiler: clang
virt: vm
- name: "Windows"
os: windows
install: choco install python3 --version=3.8.8
env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
script:
- mingw32-make gpuowl-win.exe
- ./gpuowl-win.exe -h
allow_failures:
- compiler: gcc
os: linux
dist: bionic
- compiler: clang
- os: windows
install:
- sudo apt-get -yqq update
- sudo apt-get -yqq install cppcheck ocl-icd-* opencl-headers
script:
- make -j "$(nproc)"
- ./gpuowl -h
- cppcheck --enable=all .
- bash -c 'shopt -s globstar; shellcheck -s bash **/*.sh || true'