.gitlab-ci.yml 737 Bytes
Newer Older
ESTERIE Pierre's avatar
ESTERIE Pierre committed
1
2
3
4
default:   
 tags: ['docker']   
 image: registry.gitlab.inria.fr/solverstack/docker/distrib

ESTERIE Pierre's avatar
ESTERIE Pierre committed
5
6
stages:
  - build
ESTERIE Pierre's avatar
ESTERIE Pierre committed
7
  - doc
ESTERIE Pierre's avatar
ESTERIE Pierre committed
8
9
  - pages

ESTERIE Pierre's avatar
ESTERIE Pierre committed
10
cmake:
ESTERIE Pierre's avatar
ESTERIE Pierre committed
11
12
13
14
15
16
  stage: build
  artifacts:
    name: cpp_tools_build
    expire_in: 1 day
    paths:
      - build/
ESTERIE Pierre's avatar
ESTERIE Pierre committed
17
  script:
ESTERIE Pierre's avatar
ESTERIE Pierre committed
18
    - mkdir build && cd build && cmake ..
ESTERIE Pierre's avatar
ESTERIE Pierre committed
19
20
21
        -Dcpp_tools_BUILD_DOC=ON
        -DCMAKE_C_COMPILER=gcc
        -DCMAKE_CXX_COMPILER=g++
ESTERIE Pierre's avatar
ESTERIE Pierre committed
22

ESTERIE Pierre's avatar
ESTERIE Pierre committed
23
doc:
ESTERIE Pierre's avatar
ESTERIE Pierre committed
24
  stage: doc 
25
  dependencies:
ESTERIE Pierre's avatar
ESTERIE Pierre committed
26
    - build
ESTERIE Pierre's avatar
ESTERIE Pierre committed
27
28
29
30
31
32
  artifacts:
    name: cpp_tools_doc
    expire_in: 1 day
    paths:
      - build/doc/html
  script:
ESTERIE Pierre's avatar
ESTERIE Pierre committed
33
    - cd build && make doc
ESTERIE Pierre's avatar
ESTERIE Pierre committed
34
35
36
37
38
39
40
41
42
43
44
45
46

pages:
  stage: pages
  dependencies:
    - doc
  artifacts:
    paths:
      - public
  script:
    - mkdir public
    - mv build/Doc/html/* public/
  only:
    - master