.gitlab-ci.yml 757 Bytes
Newer Older
1
image: "pmem/libpmemobj-cpp:fedora-30"
2
3

stages:
4
  - prepare
5
6
7
  - build
  - test

8
9
10
prepare:
  stage: prepare
  script:
11
12
13
14
15
16
#    - echo pass | sudo -S dnf update -y
    - echo pass | sudo -S dnf install -y cmake
    - echo pass | sudo -S dnf install -y libpmemobj++-devel
    - echo pass | sudo -S mkdir -p /mnt/pmem/test
    - echo pass | sudo -S chmod 777 /mnt/pmem/test
  artifacts:
17
    paths:
18
      - deps/
19

20
21
22
23

build:
  stage: build
  script:
24
25
    - ls -al
    - pwd
26
27
    - mkdir build
    - cd build
28
    - cmake -DCMAKE_CXX_FLAGS="-g -O0 -Wall -fprofile-arcs -ftest-coverage" ../src
29
    - make -j
30
31
  dependencies:
    - prepare
32
33
34
  artifacts:
    paths:
      - binaries/
35
36
37
38

test:
  stage: test
  script:
39
40
    - ls -al
    - pwd
41
    - ctest
42
43
  dependencies:
    - build
44