.gitlab-ci.yml 556 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
#  - echo pass | sudo -S dnf update -y
12
  - echo pass | sudo -S dnf install -y cmake
13
  - echo pass | sudo -S dnf install -y libpmemobj++-devel
14
15
  - echo pass | sudo -S mkdir -p /mnt/pmem/test
  - echo pass | sudo -S chmod 777 /mnt/pmem/test
16
17
18
19
20
21
22
23

build:
  stage: build
  script:
    - mkdir build
    - cd build
    - cmake ../src
    - make -j
24
25
  dependencies:
    - prepare
26
27
28
29
30

test:
  stage: test
  script:
    - ctest
31
32
  dependencies:
    - build
33