Skip to content

Commit b7bee15

Browse files
committed
Run the example as a test
1 parent ed1fd0b commit b7bee15

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.gitlab-ci.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,29 @@
11
gcc:
2-
image: fedora:27
2+
image: fedora:28
33
stage: build
44
script:
55
- dnf install -y meson gcc-c++
66
- meson build
77
- ninja -C build
88
- ./build/example
9-
- ninja -C build install
9+
- ninja -C build test install
1010

1111
clang:
12-
image: fedora:27
12+
image: fedora:28
1313
stage: build
1414
script:
1515
- dnf install -y meson clang
1616
- CC=clang CXX=clang++ meson build
17-
- ninja -C build
17+
- ninja -C build test
1818
- ./build/example
1919

2020
mingw:
21-
image: fedora:27
21+
image: fedora:28
2222
stage: build
2323
script:
2424
- dnf install -y gcc-c++ meson mingw64-gcc-c++ wine-core
2525
- meson build --cross-file mingw.ini
26-
- ninja -C build
27-
- TMP=$PWD && cd /usr/x86_64-w64-mingw32/sys-root/mingw/bin && wine $TMP/build/example.exe
26+
- WINEPATH=/usr/x86_64-w64-mingw32/sys-root/mingw/bin ninja -C build test
2827

2928
variables:
3029
GIT_SUBMODULE_STRATEGY: recursive

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ project('ThreadPool', ['cpp'], default_options : ['cpp_std=c++17'])
22

33
threads_dep = dependency('threads')
44

5-
executable('example', sources : ['example.cpp'], dependencies : [threads_dep])
5+
test('Example', executable('example', sources : ['example.cpp'], dependencies : [threads_dep]))
66

77
install_headers('ThreadPool.hpp')

0 commit comments

Comments
 (0)