-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
40 lines (40 loc) · 1.59 KB
/
.gitlab-ci.yml
File metadata and controls
40 lines (40 loc) · 1.59 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
# You can override the included template(s) by including variable overrides
# SAST customization: https://docs.gitlab.com/user/application_security/sast/#available-cicd-variables
# Secret Detection customization: https://docs.gitlab.com/user/application_security/secret_detection/pipeline/configure/
# Dependency Scanning customization: https://docs.gitlab.com/user/application_security/dependency_scanning/#customizing-analyzer-behavior
# Container Scanning customization: https://docs.gitlab.com/user/application_security/container_scanning/#customizing-analyzer-behavior
# Note that environment variables can be set in several places
# See https://docs.gitlab.com/ci/variables/#cicd-variable-precedence
".makecheck":
stage: build
script:
- su testuser -c "./autogen.sh"
- su testuser -c "./configure"
- su testuser -c "make -j8 --shuffle"
- su testuser -c "make check"
artifacts:
when: on_failure
paths:
- test-suite.log
- testsuite/*.log
- testsuite/*.sum
debian:
extends: ".makecheck"
image: debian:latest
before_script:
- apt-get update -qq && apt-get install -y -qq autopoint autoconf automake libtool-bin
gettext make pkg-config libncursesw5-dev dejagnu libnuma-dev libsystemd-dev
- useradd -m testuser
- chown -R testuser:testuser .
alpine:
extends: ".makecheck"
image: alpine:latest
before_script:
- apk add --no-cache build-base autoconf automake libtool gettext gettext-dev linux-headers
ncurses-dev numactl-dev dejagnu shadow
- useradd -m testuser
- chown -R testuser:testuser .
sast:
stage: test
include:
- template: Security/SAST.gitlab-ci.yml