forked from ltentrup/quabs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
60 lines (55 loc) · 1.35 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
# use the official ubuntu image
image: ubuntu
variables:
GIT_SUBMODULE_STRATEGY: normal
debug-build:
stage: build
before_script:
- apt-get update -qq && apt-get install -y -qq build-essential clang cmake git vim-common zlib1g-dev
script:
- mkdir -p debug
- cd debug
- cmake -DCMAKE_BUILD_TYPE=Debug ..
- make
artifacts:
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
expire_in: 1 week
paths:
- debug/quabs
cache:
paths:
- debug/
release-build:
stage: build
before_script:
- apt-get update -qq && apt-get install -y -qq build-essential clang cmake git vim-common zlib1g-dev
script:
- mkdir -p release
- cd release
- cmake -DCMAKE_BUILD_TYPE=Release ..
- make
artifacts:
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
expire_in: 1 week
paths:
- release/quabs
cache:
paths:
- release/
# run tests using the binary built before
test-debug:
stage: test
before_script:
- apt-get update -qq && apt-get install -y -qq python3
script:
- ./test/run.py debug/quabs --execution --unittests --fuzztests
dependencies:
- debug-build
test-release:
stage: test
before_script:
- apt-get update -qq && apt-get install -y -qq python3
script:
- ./test/run.py release/quabs --execution --unittests --fuzztests
dependencies:
- release-build