.gitlab-ci.yml 4.5 KB
Newer Older
1
2
3
4
5
# CI script for lib4neuro
# _local: External dependencies are being downloaded directly into lib4neuro folder and compiled automatically
# _manual: External dependencies' paths are specified via system variables
# _system: External dependencies are located in system paths

6
variables:
7
8
9
    BUILD_LIB: 'yes'
    BUILD_EXAMPLES: 'yes'
    BUILD_TESTS: 'yes'
10
11
12
13
    WIN_ARMADILLO_ROOT: 'C:\Users\suser\Desktop\lib4neuro_dependencies\armadillo'
    WIN_BOOST_ROOT: 'C:\Users\suser\Desktop\lib4neuro_dependencies\boost'
    WIN_EXPRTK_ROOT: 'C:\Users\suser\Desktop\lib4neuro_dependencies\exprtk'
    WIN_TURTLE_ROOT: 'C:\Users\suser\Desktop\lib4neuro_dependencies\turtle'
14
    clean_after: 'yes'
15

16
17
18
stages:
    - build

19
20
21
# Windows 10
# Compiled by VisualStudio 2017
win_visual_studio_static_local:
22

23
24
25
26
    only:
        refs:
            - master
            - CItest
27
28
29
30
31
32
33
34

    tags:
        - Win

    image: windows:latest

    stage: build

35
    variables:
36
37
38
39
40
        WIN_ARMADILLO_ROOT: ''
        WIN_BOOST_ROOT: ''
        WIN_EXPRTK_ROOT: ''
        WIN_TURTLE_ROOT: ''
        DEPENDENCIES_LINK_TYPE: 'static'
41

42
    before_script:
43
        - 'call VsDevCmd.bat'
44
        - 'call "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2019.5.281\windows\bin\ifortvars.bat" intel64 vs2017'
45
        - 'rmdir /s /q build external_dependencies/*'
46
47

    script:
48
        - 'call build_scripts\windows\win_VS_build_x64_release.bat'
49
50
51

# Windows 10
# Compiled by VisualStudio 2017
52
win_visual_studio_2017_static_manual:
Martin Beseda's avatar
Martin Beseda committed
53
54
55
56
57
    tags:
        - Win

    image: windows:latest

58
59
    stage: build

60
61
62
    variables:
        DEPENDENCIES_LINK_TYPE: 'static'

Martin Beseda's avatar
Martin Beseda committed
63
    before_script:
64
        - 'call VsDevCmd.bat || exit'
65
66
        - 'call "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2019.5.281\windows\bin\ifortvars.bat" intel64 vs2017'
        - 'rmdir /s /q build external_dependencies/*'
Martin Beseda's avatar
Martin Beseda committed
67
68

    script:
69
        - 'call build_scripts\windows\win_VS_build_x64_release.bat'
70

71
72
73
74
75
76
77
78
# Windows 10
# Compiled by VisualStudio 2015
win_visual_studio_2015_static_local:
    only:
        refs:
            - master
            - CItest

kra568's avatar
kra568 committed
79
80
81
82
83
84
85
    tags:
        - Win

    image: windows:latest

    stage: build

86
87
88
89
90
    variables:
        WIN_ARMADILLO_ROOT: ''
        WIN_BOOST_ROOT: ''
        WIN_EXPRTK_ROOT: ''
        WIN_TURTLE_ROOT: ''
Martin Beseda's avatar
Martin Beseda committed
91
        DEPENDENCIES_LINK_TYPE: 'static'
92

kra568's avatar
kra568 committed
93
    before_script:
94
        - 'call VsDevCmd.bat'
95
        - 'call "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2019.5.281\windows\bin\ifortvars.bat" intel64 vs2015'
Martin Beseda's avatar
Martin Beseda committed
96
        - 'rmdir /s /q build external_dependencies/*'
kra568's avatar
kra568 committed
97
98

    script:
Martin Beseda's avatar
Martin Beseda committed
99
        - 'call build_scripts\windows\win_VS2015_build_x64_release.bat'
100

101
102
103
104
105
106
107
108
109
110
# Windows 10
# Compiled by VisualStudio 2015
win_visual_studio_2015_static_manual:
    tags:
        - Win

    image: windows:latest

    stage: build

111
112
113
    variables:
        DEPENDENCIES_LINK_TYPE: 'static'

114
    before_script:
115
        - 'call VsDevCmd.bat || exit'
116
117
        - 'call "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2019.5.281\windows\bin\ifortvars.bat" intel64 vs2015'
        - 'rmdir /s /q build external_dependencies/*'
118
119

    script:
Martin Beseda's avatar
Martin Beseda committed
120
        - 'call build_scripts\windows\win_VS2015_build_x64_release.bat'
121
122
123

# Latest Ubuntu
ubuntu_shared_system:
Martin Beseda's avatar
Martin Beseda committed
124
125
    image: martinbeseda/lib4neuro-ubuntu-system-deps:latest

126
127
    stage: build

128
129
130
131
132
    variables:
        WIN_ARMADILLO_ROOT: ''
        WIN_BOOST_ROOT: ''
        WIN_EXPRTK_ROOT: ''
        WIN_TURTLE_ROOT: ''
Martin Beseda's avatar
Martin Beseda committed
133
        DEPENDENCIES_LINK_TYPE: 'shared'
134

Martin Beseda's avatar
Martin Beseda committed
135
    before_script:
Martin Beseda's avatar
Martin Beseda committed
136
        - 'rm -rf build external_dependencies/*'
Martin Beseda's avatar
Martin Beseda committed
137
138

    script:
Martin Beseda's avatar
Martin Beseda committed
139
        - 'build_scripts/linux/linux_gcc_build_x64_release_system.sh'
Martin Beseda's avatar
Martin Beseda committed
140

141
142
143
144
145
146
147
# Latest Ubuntu
ubuntu_static_local:
    only:
        refs:
            - master
            - CItest

Martin Beseda's avatar
Martin Beseda committed
148
    image: martinbeseda/ubuntu-ci:latest
149

150
151
    stage: build

152
153
154
155
156
    variables:
        WIN_ARMADILLO_ROOT: ''
        WIN_BOOST_ROOT: ''
        WIN_EXPRTK_ROOT: ''
        WIN_TURTLE_ROOT: ''
Martin Beseda's avatar
Martin Beseda committed
157
        DEPENDENCIES_LINK_TYPE: 'static'
158

159
    before_script:
Martin Beseda's avatar
Martin Beseda committed
160
        - 'rm -rf build external_dependencies/*'
161
162

    script:
Martin Beseda's avatar
Martin Beseda committed
163
        - 'build_scripts/linux/linux_gcc_build_x64_release_local.sh'
164

165
166
167
168
169
170
171
# Latest CentOS
centos_static_local:
    only:
        refs:
            - master
            - CItest

172
173
    image: martinbeseda/centos-ci:latest

174
175
    stage: build

176
177
178
179
180
    variables:
        WIN_ARMADILLO_ROOT: ''
        WIN_BOOST_ROOT: ''
        WIN_EXPRTK_ROOT: ''
        WIN_TURTLE_ROOT: ''
Martin Beseda's avatar
Martin Beseda committed
181
        DEPENDENCIES_LINK_TYPE: 'static'
182

183
    before_script:
Martin Beseda's avatar
Martin Beseda committed
184
        - 'rm -rf build external_dependencies/*'
Martin Beseda's avatar
Martin Beseda committed
185
186

    script:
Martin Beseda's avatar
Martin Beseda committed
187
        - 'build_scripts/linux/linux_gcc_build_x64_release_local.sh'