forked from NREL/EnergyPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
157 lines (148 loc) · 3.39 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
stages:
- build
- test
- package
build:mac:
stage: build
tags:
- mac
variables:
CC: /usr/bin/clang
CXX: /usr/bin/clang++
CXXFLAGS: -stdlib=libc++
CMAKE_OSX_ARCHITECTURES: x86_64
MACOSX_DEPLOYMENT_TARGET: "10.7"
SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
script:
- mkdir build
- cd build
- cmake -DBUILD_FORTRAN=ON -DBUILD_PACKAGE=ON -DBUILD_TESTING=ON -DENABLE_GTEST_DEBUG_MODE=OFF -DCPACK_BINARY_PACKAGEMAKER=ON -DCPACK_BINARY_STGZ=OFF -DCPACK_BINARY_TGZ=OFF ..
- cmake ..
- make -j8
artifacts:
expire_in: 6 hrs
paths:
- build/
build:ubuntu:
stage: build
tags:
- clang
- ubuntu
variables:
CC: /usr/bin/clang-5.0
CXX: /usr/bin/clang++-5.0
script:
- mkdir build
- cd build
- cmake -DBUILD_FORTRAN=ON -DBUILD_PACKAGE=ON -DBUILD_TESTING=ON -DENABLE_GTEST_DEBUG_MODE=OFF -DCPACK_BINARY_TGZ=OFF -DCPACK_BINARY_TZ=OFF ..
- cmake ..
- make -j8
artifacts:
expire_in: 6 hrs
paths:
- build/
build:windows:
stage: build
tags:
- vs2017
- windows
before_script:
- set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
script:
- mkdir build
- cd build
- '"C:\Program Files\CMake\bin\cmake.exe" -G "Visual Studio 15 2017 Win64" -DBUILD_FORTRAN=ON -DBUILD_PACKAGE=ON -DBUILD_TESTING=ON -DENABLE_GTEST_DEBUG_MODE=OFF ..'
- '"C:\Program Files\CMake\bin\cmake.exe" ..'
- '"C:\Program Files\CMake\bin\cmake.exe" --build . --config Release --target ALL_BUILD'
artifacts:
expire_in: 6 hrs
paths:
- build/
test:mac:
stage: test
tags:
- mac
dependencies:
- build:mac
script:
- cd build
- ctest -j8
test:ubuntu:
stage: test
tags:
- clang
- ubuntu
variables:
CC: /usr/bin/clang-5.0
CXX: /usr/bin/clang++-5.0
dependencies:
- build:ubuntu
script:
- cd build
- ctest -j8
test:windows:
stage: test
tags:
- vs2017
- windows
before_script:
- set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
dependencies:
- build:windows
script:
- cd build
- '"C:\Program Files\CMake\bin\ctest.exe" -C Release -j8'
package:mac:
stage: package
tags:
- mac
dependencies:
- build:mac
variables:
CC: /usr/bin/clang
CXX: /usr/bin/clang++
CXXFLAGS: -std=c++11 -stdlib=libc++
CMAKE_OSX_ARCHITECTURES: x86_64
MACOSX_DEPLOYMENT_TARGET: "10.7"
SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
script:
- cd build
- make package -j8
artifacts:
expire_in: 1 week
paths:
- build/EnergyPlus-*.dmg
# # Ubuntu 16.04 EnergyPlus packages are currently failing
# package:ubuntu:
# stage: package
# tags:
# - clang
# - ubuntu
# dependencies:
# - build:ubuntu
# variables:
# CC: /usr/bin/clang-5.0
# CXX: /usr/bin/clang++-5.0
# script:
# - cd build
# - make package -j8
# artifacts:
# expire_in: 1 week
# paths:
# - build/EnergyPlus-*.sh
package:windows:
stage: package
tags:
- vs2017
- windows
before_script:
- set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
dependencies:
- build:windows
script:
- cd build
- '"C:\Program Files\CMake\bin\cmake.exe" --build . --config Release --target PACKAGE'
artifacts:
expire_in: 1 week
paths:
- build/EnergyPlus-*.exe