-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
124 lines (120 loc) · 3.93 KB
/
config.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
112
113
114
115
116
117
118
119
120
121
122
123
124
version: 2
jobs:
build-qt4:
working_directory: /usr/src/CTK
docker:
- image: slicer/buildenv-qt4-centos5:latest
steps:
- checkout
- run:
name: Configure and build
command: |
mkdir /usr/src/CTK-build
cd /usr/src/CTK-build
cmake \
-DCTK_QT_VERSION:STRING=4 \
-DCTK_ENABLE_Widgets:BOOL=ON \
../CTK
make -j4
- save_cache:
key: ctk-src-{{ .Revision }}
paths: /usr/src/CTK
- save_cache:
key: ctk-build-qt4-{{ .Revision }}
paths: /usr/src/CTK-build
- save_cache:
key: ctk-qt4-libraries-{{ .Revision }}
paths: /usr/src/qt-install
# test-qt4:
# docker:
# - image: thewtex/opengl:debian
# steps:
# - restore_cache:
# keys:
# - ctk-src-{{ .Revision }}
# - restore_cache:
# keys:
# - ctk-build-qt4-{{ .Revision }}
# - restore_cache:
# keys:
# - ctk-qt4-libraries-{{ .Revision }}
# - run:
# name: Workaround the difference between cmake install path in 'slicer/buildenv-*' and 'thewtex/opengl:debian' images
# command: |
# mkdir -p /usr/src/cmake-3.11.0/bin
# ln -s $(which cmake) /usr/src/cmake-3.11.0/bin/cmake
# ln -s $(which cpack) /usr/src/cmake-3.11.0/bin/cpack
# ln -s $(which ctest) /usr/src/cmake-3.11.0/bin/ctest
# - run:
# command: |
# export APP="sudo chown -R user.user /usr/src/CTK-build && cd /usr/src/CTK-build/CTK-build && ctest -VV"
# /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
# [ "$(cat /tmp/graphical-app.return_code)" = 0 ]
# environment:
# QT_X11_NO_MITSHM: "1"
# XDG_RUNTIME_DIR: "/tmp/runtime-user"
build-qt5:
working_directory: /usr/src/CTK
docker:
- image: slicer/buildenv-qt5-centos7:latest
steps:
- checkout
- run:
name: Configure and build
command: |
mkdir /usr/src/CTK-build
cd /usr/src/CTK-build
cmake \
-DCTK_QT_VERSION:STRING=5 \
-DCTK_ENABLE_Widgets:BOOL=ON \
../CTK
make -j4
- save_cache:
key: ctk-src-{{ .Revision }}
paths: /usr/src/CTK
- save_cache:
key: ctk-build-qt5-{{ .Revision }}
paths: /usr/src/CTK-build
- save_cache:
key: ctk-qt5-libraries-{{ .Revision }}
paths: /opt/qt
# test-qt5:
# docker:
# - image: thewtex/opengl:debian
# steps:
# - restore_cache:
# keys:
# - ctk-src-{{ .Revision }}
# - restore_cache:
# keys:
# - ctk-build-qt5-{{ .Revision }}
# - restore_cache:
# keys:
# - ctk-qt5-libraries-{{ .Revision }}
# - run:
# name: Workaround the difference between cmake install path in 'slicer/buildenv-*' and 'thewtex/opengl:debian' images
# command: |
# mkdir -p /usr/src/cmake-3.11.0-Linux-x86_64/bin
# ln -s $(which cmake) /usr/src/cmake-3.11.0-Linux-x86_64/bin/cmake
# ln -s $(which cpack) /usr/src/cmake-3.11.0-Linux-x86_64/bin/cpack
# ln -s $(which ctest) /usr/src/cmake-3.11.0-Linux-x86_64/bin/ctest
# - run:
# command: |
# export APP="sudo chown -R user.user /usr/src/CTK-build && cd /usr/src/CTK-build/CTK-build && ctest -VV"
# /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
# [ "$(cat /tmp/graphical-app.return_code)" = 0 ]
# environment:
# QT_X11_NO_MITSHM: "1"
# XDG_RUNTIME_DIR: "/tmp/runtime-user"
workflows:
version: 2
build-test:
jobs:
- build-qt4
# - test-qt4:
# requires:
# - build-qt4
- build-qt5
# - test-qt5:
# requires:
# - build-qt5