.gitlab-ci.yml 1.59 KB
Newer Older
1
stages:
2
3
4
- build
- test
- valgrindtest
5
- scanbuild
6

Jurre van Bergen's avatar
Jurre van Bergen committed
7
build_gcc:
8
  image: offtherecord/libotr-gcc
9
  stage: build
10
11
12
13
14
  script:
    - autoreconf --install
    - ./configure
    - make
    - make install
15

Jurre van Bergen's avatar
Jurre van Bergen committed
16
build_clang:
17
  image: offtherecord/libotr-clang
18
  stage: build
19
20
21
22
23
24
25
  script:
    - export CC=/usr/bin/clang
    - autoreconf --install
    - ./configure
    - make
    - make install

Jurre van Bergen's avatar
Jurre van Bergen committed
26
test_list_gcc:
27
  image: offtherecord/libotr-gcc
28
  stage: test
29
30
31
32
33
34
35
36
  script:
    - autoreconf --install
    - ./configure
    - make
    - make install
    - cd tests
    - make
    - ./run.sh ./test_list
37

Jurre van Bergen's avatar
Jurre van Bergen committed
38
test_list_clang:
39
  image: offtherecord/libotr-clang
40
  stage: test
41
  script:
42
    - export CC=/usr/bin/clang
43
44
45
46
    - autoreconf --install
    - ./configure
    - make
    - make install
Jurre van Bergen's avatar
Jurre van Bergen committed
47
    - cd tests
Jurre van Bergen's avatar
Jurre van Bergen committed
48
49
    - make
    - ./run.sh ./test_list
50

Jurre van Bergen's avatar
Jurre van Bergen committed
51
test_valgrind_gcc:
52
  image: offtherecord/libotr-gcc
53
  stage: valgrindtest
54
55
56
57
58
59
60
61
62
  script:
    - autoreconf --install
    - ./configure
    - make
    - make install
    - cd tests
    - make
    - valgrind --tool=memcheck --leak-check=full --show-leak-kinds=all ./run.sh ./test_list

Jurre van Bergen's avatar
Jurre van Bergen committed
63
test_valgrind_clang:
64
  image: offtherecord/libotr-clang
65
  stage: valgrindtest
66
67
68
69
70
71
72
73
74
  script:
    - export CC=/usr/bin/clang
    - autoreconf --install
    - ./configure
    - make
    - make install
    - cd tests
    - make
    - valgrind --tool=memcheck --leak-check=full --show-leak-kinds=all ./run.sh ./test_list
75
76
77
78
79

scan_build:
  image: offtherecord/libotr-clang
  stage: scanbuild
  script:
80
    - autoreconf --install
81
82
83
84
85
    - scan-build ./configure
    - scan-build make -j2 -o /tmp/scan-build/
  artifacts:
    paths:
      - /tmp/scan-build/