.gitlab-ci.yml 1016 Bytes
Newer Older
Florian Oetke's avatar
Florian Oetke committed
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
image: lowkey42/build-env:latest

stages:
  - build

build_gcc:
  stage: build
  script: 
    - export CC=gcc
    - export CXX=g++
    - mkdir build
    - cd build
    - cmake -DCMAKE_BUILD_TYPE=Release 
    - cmake --build .
  artifacts:
    paths:
      - build/src/demo/demo
      - build/src/mirrage/*/*.a

build_clang:
  stage: build
  script: 
    - export CC=clang
    - export CXX=clang++
    - mkdir build
    - cd build
    - can-build --use-c++=clang++ cmake -DMIRRAGE_FORCE_LIBCPP=ON -G "Unix Makefiles"
    - scan-build --use-c++=clang++ -enable-checker deadcode.DeadStores -enable-checker security.insecureAPI.UncheckedReturn --status-bugs -v cmake --build .
    paths:
      - build/src/demo/demo
      - build/src/mirrage/*/*.a

build_scanbuild:
  stage: build
  script: 
    - export CC=clang
    - export CXX=clang++
    - mkdir build
    - cd build
    - cmake -DCMAKE_BUILD_TYPE=Release 
    - cmake --build .
  artifacts:
    paths:
      - build/src/demo/demo
      - build/src/mirrage/*/*.a