-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
43 lines (37 loc) · 1.3 KB
/
.gitlab-ci.yml
File metadata and controls
43 lines (37 loc) · 1.3 KB
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
# To contribute improvements to CI/CD templates, please follow the Development guide at:
# https://docs.gitlab.com/development/cicd/templates/
# This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/C++.gitlab-ci.yml
# use the official gcc image, based on debian
# can use versions as well, like gcc:5.2
# see https://hub.docker.com/_/gcc/
# To contribute improvements to CI/CD templates, please follow the Development guide at:
# https://docs.gitlab.com/development/cicd/templates/
# This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/C++.gitlab-ci.yml
# use the official gcc image, based on debian
# can use versions as well, like gcc:5.2
# see https://hub.docker.com/_/gcc/
image: gcc
build:
stage: build
before_script:
- apt update && apt -y install make autoconf libssl-dev
script:
- ./configure CFLAGS="-g -O0 -fsanitize=address" LDFLAGS="-fsanitize=address"
- make
- timeout 300 ./src/iperf3 -s &
- ./test_commands.sh localhost
artifacts:
paths:
- src/iperf3
- src/.libs/*
# run tests using the binary built before
test:
stage: test
script:
- ls
deploy:
stage: deploy
script: echo "Define your deployment script!"
environment: production