-
Notifications
You must be signed in to change notification settings - Fork 5
/
.gitlab-ci.yml
111 lines (106 loc) · 5.16 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# include:
# - 'access-node/.gitlab-ci.yml'
# - 'nest-module/.gitlab-ci.yml'
stages:
- build
- test
- deploy
build:
stage: build
tags:
- shell-runner
variables:
GIT_SUBMODULE_STRATEGY: recursive
# before_script:
# - curl -L "https://github.com/docker/compose/releases/download/v2.17.2/docker-compose-linux-x86_64" -o ./docker-compose
# - chmod +x docker-compose
script:
- docker build . -f ./docker/simulators/Dockerfile_TVB -t insite-tvb
- docker build . -f ./docker/simulators/Dockerfile_Arbor -t insite-arbor
- docker build . -f ./docker/simulators/Dockerfile_NEST -t insite-nest
- docker build . -f ./docker/Dockerfile_AccessNode -t insite-access-node
- docker build . -f ./docker/examples/Dockerfile_TVBExample -t insite-tvb-example
- docker build . -f ./docker/examples/Dockerfile_NestExample -t insite-nest-example
- docker build . -f ./docker/examples/Dockerfile_ArborRingExample -t insite-arbor-example-ring
- docker-compose -f ./test/run-tests.yml up --build --exit-code-from pytest
deploy:
stage: deploy
tags:
- shell-runner
variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- echo $REGISTRY_TOKEN | docker login -u "registry_pusher" --password-stdin registry.git-ce.rwth-aachen.de
script:
- docker build . -f ./docker/simulators/Dockerfile_TVB -t insite-tvb
- docker build . -f ./docker/simulators/Dockerfile_Arbor -t insite-arbor
- docker build . -f ./docker/simulators/Dockerfile_NEST -t insite-nest
- docker build . -f ./docker/Dockerfile_AccessNode -t insite-access-node
- docker build . -f ./docker/examples/Dockerfile_TVBExample -t insite-tvb-example
- docker build . -f ./docker/examples/Dockerfile_NestExample -t insite-nest-example
- docker build . -f ./docker/examples/Dockerfile_ArborRingExample -t insite-arbor-example-ring
- docker tag insite-access-node registry.git-ce.rwth-aachen.de/vr-vis/vr-group/in-situ-pipeline/insite/insite-access-node
- docker tag insite-tvb registry.git-ce.rwth-aachen.de/vr-vis/vr-group/in-situ-pipeline/insite/insite-tvb
- docker tag insite-arbor registry.git-ce.rwth-aachen.de/vr-vis/vr-group/in-situ-pipeline/insite/insite-arbor
- docker tag insite-nest registry.git-ce.rwth-aachen.de/vr-vis/vr-group/in-situ-pipeline/insite/insite-nest
- docker tag insite-nest-example registry.git-ce.rwth-aachen.de/vr-vis/vr-group/in-situ-pipeline/insite/insite-nest-example
- docker tag insite-arbor-example registry.git-ce.rwth-aachen.de/vr-vis/vr-group/in-situ-pipeline/insite/insite-arbor-example
- docker tag insite-arbor-example registry.git-ce.rwth-aachen.de/vr-vis/vr-group/in-situ-pipeline/insite/insite-arbor-example-ring
- docker tag insite-tvb-example registry.git-ce.rwth-aachen.de/vr-vis/vr-group/in-situ-pipeline/insite/insite-tvb-example
- docker push registry.git-ce.rwth-aachen.de/vr-vis/vr-group/in-situ-pipeline/insite/insite-access-node
- docker push registry.git-ce.rwth-aachen.de/vr-vis/vr-group/in-situ-pipeline/insite/insite-tvb
- docker push registry.git-ce.rwth-aachen.de/vr-vis/vr-group/in-situ-pipeline/insite/insite-arbor
- docker push registry.git-ce.rwth-aachen.de/vr-vis/vr-group/in-situ-pipeline/insite/insite-nest
- docker push registry.git-ce.rwth-aachen.de/vr-vis/vr-group/in-situ-pipeline/insite/insite-tvb-example
- docker push registry.git-ce.rwth-aachen.de/vr-vis/vr-group/in-situ-pipeline/insite/insite-arbor-example
- docker push registry.git-ce.rwth-aachen.de/vr-vis/vr-group/in-situ-pipeline/insite/insite-arbor-example-ring
- docker push registry.git-ce.rwth-aachen.de/vr-vis/vr-group/in-situ-pipeline/insite/insite-nest-example
# build:
# stage: build
# image: registry.git-ce.rwth-aachen.de/vr-vis/vr-group/in-situ-pipeline/insite/base:latest
# tags:
# - docker-runner
# variables:
# GIT_SUBMODULE_STRATEGY: recursive
# artifacts:
# paths:
# - build_access_node
# - build_nest_module
# expire_in: 1 day
# when: always
# script:
# - mkdir build_nest_module
# - cd build_nest_module
# - cmake -G Ninja -Dwith-nest=/opt/nest/bin/nest-config ../nest-module/src
# - ninja install
#
# - cd .. && mkdir build_access_node && cd build_access_node
# - cmake -G Ninja ../access-node
# - ninja insite-access-node
#
# test:
# stage: test
# image: registry.git-ce.rwth-aachen.de/vr-vis/vr-group/in-situ-pipeline/insite/base:latest
# tags:
# - docker-runner
# variables:
# GIT_SUBMODULE_STRATEGY: recursive
#
# artifacts:
# paths:
# - build_access_node
# - build_nest_module
# - insite.log
# - access_node.log
# expire_in: 1 day
# when: always
# before_script:
# - pip3 install -r test/test-requirements.txt
# - cd build_nest_module
# - ninja install
# - cd ..
# - cp build_access_node/insite-access-node .
# script:
# - pytest --count=2 --repeat-scope=session -x --showlocals ./test -s
# # - pytest --count=2 --repeat-scope=session -x --showlocals --ignore-glob=**/_deps/* --ignore-glob=**/extern/* -s
#