generated from yangfan/example_opencv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
40 lines (37 loc) · 1.18 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
# @file .gitlab-ci.yml
# @author Ignacio Vizzo [[email protected]]
#
# Copyright (c) 2019 Ignacio Vizzo, all rights reserved
#
# Use this file wisely: You can add more stuff on it if you want. This template
# will allow you to build your project every time you push changes to the git
# server. If you have any error the gitlab server will send you a notification
# to your email.
# You could also provide tests to your project and add a testing
# stage for the CI, this will allow you to run tests for every change you make
# in the code. This is the defacto standard in industry nowadays. Ask google for
# more information if you are curious.
# In this image you have all the necessary stuff to work with OpenCV4
image: gitlab.ipb.uni-bonn.de:4567/ipb-team/global/docker-images/ipb_opencv4
stages:
- build
build:
stage: build
before_script:
# Set up the terminal.
- export TERM=xterm
- export SHELL=/bin/bash
- mkdir -p build/
script:
- cd build/
- cmake -DCMAKE_BUILD_TYPE=Release ../
- make -j$(nproc --all) all
- ctest -VV
- cd ../
artifacts:
name: opencv_artifacts
expire_in: 1 week
paths:
- results/
tags:
- docker