forked from siconos/siconos-tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
68 lines (59 loc) · 2.13 KB
/
.gitlab-ci.yml
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
# Templates for ci jobs
#
# The included file contains the definition of the two families of jobs used in this script, and that may be used as templates
# for 'extends' keyword in the jobs below :
# - .siconos-install : build a docker image with siconos ready to use and save it into the gitlab project registry.
# - .examples-build : configure and run all examples on a pre-built image including siconos.
include: ci_gitlab/gitlab-ci-tutorials-templates.yml
# ---- Siconos install jobs ----
# Prepare 'Siconos ready' images
# and push them to siconos-tutorials repository.
#
# A standard install of siconos.
# Based on siconos registry ubuntu18.04.
siconos-install:siconos-ubuntu-18.04:
variables:
IMAGE_NAME: siconos-ubuntu-18.04
extends: .siconos-install
# An install of siconos with mechanisms,
# oce/pythonocc based.
siconos-install:siconos-ubuntu-18.04-with-mechanisms:
variables:
IMAGE_NAME: siconos-ubuntu-18.04-with-mechanisms
extends: .siconos-install
# An install of siconos with mechanisms,
# oce/pythonocc on archlinux
siconos-install:siconos-archlinux-with-mechanisms:
variables:
IMAGE_NAME: siconos-archlinux-with-mechanisms
extends: .siconos-install
allow_failure: true
when: manual
# ---- Examples jobs ----
# Build and tests examples from tutorials
# Pull docker image 'siconos ready'
# then build, run and tests examples.
# examples, on ubuntu-18.04 with standard (default)
# Siconos installation.
examples:ubuntu-18.04:
variables:
IMAGE_NAME: $CI_REGISTRY_IMAGE/siconos-ubuntu-18.04
cdash_submit: 1
extends: .examples-build
# examples, on ubuntu-18.04 with standard (default)
# Siconos installation.
examples:ubuntu-18.04-with-mechanisms:
variables:
IMAGE_NAME: $CI_REGISTRY_IMAGE/siconos-ubuntu-18.04-with-mechanisms
extends: .examples-build
allow_failure: true
when: manual
# examples, on ubuntu-18.04 with standard (default)
# Siconos installation.
examples:archlinux-with-mechanisms:
variables:
IMAGE_NAME: $CI_REGISTRY_IMAGE/siconos-archlinux-with-mechanisms
PYTHONPATH: $CI_PROJECT_DIR/install/site-packages
extends: .examples-build
allow_failure: true
when: manual