File: .gitlab-ci.yml

package info (click to toggle)
yade 2019.01a-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 16,568 kB
  • sloc: cpp: 56,330; python: 30,148; ansic: 6,463; sh: 123; makefile: 56
file content (73 lines) | stat: -rw-r--r-- 1,221 bytes parent folder | download
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
image: registry.gitlab.com/remche/docker-yade
stages:
  - cmake
  - build
  - test
  - doc

cmake:
  stage: cmake
  only:
    - master
    - merge_request
  script:
    - mkdir build && cd build
    - cmake -DSUFFIX=-ci -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_PREFIX=../install -DDISABLE_SAVE_TEMPS=1 ..
  artifacts:
    paths:
      - build
      
make:
  stage: build
  only:
    - master
    - merge_request
  script:
    - cd build
    - make -j 12
    - make install
    - make clean
  artifacts:
    paths:
      - install
  dependencies: 
    - cmake      

test:
  stage: test
  only:
    - master
    - merge_request
  script:
    - install/bin/yade-ci --test
  dependencies:
    - make

check:
  stage: test
  only:
    - master
    - merge_request
  script:
    - install/bin/yade-ci --checks
  dependencies:
    - make

pages:
  stage: doc
  only:
    - master
    - merge_request
  script:
    - cd build
    - xvfb-run -s "-screen 0 1600x1200x24" make doc
    - mv ../install/share/doc/yade-ci/html ../public
    - mv ../install/share/doc/yade-ci/Yade.pdf ../public
    - mv ../install/share/doc/yade-ci/Yade.epub ../public
  dependencies:
    - cmake
    - make
  artifacts:
    paths:
      - public