forked from avramidis/sodecl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
67 lines (63 loc) · 1.59 KB
/
.gitlab-ci.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
67
stages:
- build
- test
build:ubuntu:
image: ubuntu:rolling
stage: build
tags:
- docker
script:
- apt-get update && apt-get install -y build-essential cmake git python3-dev python3-numpy
- apt-get install -y lsb-core ocl-icd-opencl-dev pocl-opencl-icd
- ldconfig
- cd /builds/$CI_PROJECT_PATH
- git submodule update --init
- mkdir build
- cd build
- cmake ..
- make
artifacts:
paths:
- build
test:ubuntu:
image: ubuntu:rolling
stage: test
tags:
- docker
script:
- apt-get update && apt-get install -y build-essential cmake git python3-dev python3-numpy
- apt-get install -y lsb-core ocl-icd-opencl-dev pocl-opencl-icd
- ldconfig
- cd /builds/$CI_PROJECT_PATH/build/tests
- ctest -V
build:fedora:
image: fedora:latest
stage: build
tags:
- docker
script:
- dnf install -y redhat-lsb-core dnf-plugins-core git cmake gcc g++ python3-devel.x86_64 python3-numpy
- dnf -y copr enable jdanecki/intel-opencl
- dnf install -y intel-opencl
- dnf install -y ocl-icd ocl-icd-devel
- cd /builds/$CI_PROJECT_PATH
- git submodule update --init
- mkdir build
- cd build
- cmake ..
- make
artifacts:
paths:
- build
test:fedora:
image: fedora:latest
stage: test
tags:
- docker
script:
- dnf install -y redhat-lsb-core dnf-plugins-core git cmake gcc g++ python3-devel.x86_64 python3-numpy
- dnf -y copr enable jdanecki/intel-opencl
- dnf install -y intel-opencl
- dnf install -y ocl-icd ocl-icd-devel
- cd /builds/$CI_PROJECT_PATH/build/tests
- ctest -V