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

stages:
  - build
  - test

7
before_script:
8
#    - echo pass | sudo -S dnf update -y
9
  - echo pass | sudo -S dnf install -y cmake libpmemobj++-devel
10
11
12
13

build:
  stage: build
  script:
14
15
    - ls -l /usr/lib64/libpmem*
    - ls -l /usr/include/libpmem*
16
    - pwd
17
18
    - mkdir build
    - cd build
19
    - cmake -DCMAKE_CXX_FLAGS="-g -O0 -Wall -fprofile-arcs -ftest-coverage" ../src
20
    - make -j
21
22
  artifacts:
    paths:
23
      - build/
24
25
26
27

test:
  stage: test
  script:
28
29
    - echo pass | sudo -S mkdir -m 777 -p /mnt/pmem/test
    - cd build
30
    - ctest
31
32
  dependencies:
    - build
33