-
Notifications
You must be signed in to change notification settings - Fork 25
/
.gitlab-ci.yml
114 lines (107 loc) · 2.76 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
stages:
- build
- deploy
build:windows:
stage: build
only:
- develop
- master
tags:
- windows
before_script:
- set PATH=%PATH%;C:\GitLab-Runner\builds\f56554cd\0\NREL\wex\build_vs2013\libcurl_ssl_win32\include\
script:
- git clone https://github.com/NREL/lk.git
# may want to pull a specific SHA here
- mkdir build
- cd build
- cmake -G "Visual Studio 12 2013 Win64" -DLK_DIR="../lk/" -DCURL_DIR="../build_vs2013/libcurl_ssl_win32/include/" -DCMAKE_BUILD_TYPE=Release ../
- cmake --build . --config Release --target ALL_BUILD
artifacts:
expire_in: 1 hrs
paths:
- build/Release/DView.exe
build:mac:
stage: build
only:
- develop
- master
tags:
- mac
script:
- git clone https://github.com/NREL/lk.git
# may want to pull a specific SHA here
- mkdir build
- cd build
- cmake -DLK_DIR="../lk/" -DCMAKE_BUILD_TYPE=Release ../
- make
artifacts:
expire_in: 1 hrs
paths:
- build/DView.app
build:ubuntu:
stage: build
only:
- develop
- master
tags:
- ubuntu
script:
- git clone https://github.com/NREL/lk.git
# may want to pull a specific SHA here
- mkdir build
- cd build
- cmake -DLK_DIR="../lk/" -DCMAKE_BUILD_TYPE=Release ../
- make
artifacts:
expire_in: 1 hrs
paths:
- build/DView
deploy:windows:
stage: deploy
only:
- develop
- master
tags:
- windows
dependencies:
- build:windows
script:
- cd build/Release
- mkdir DView-install
- mv DView.exe DView-install
- 7z a -tzip DView-windows.zip DView-install
- dir
- aws s3 cp ./ s3://openstudio-builds/_CI/DView --recursive --exclude "*" --include "DView-windows.zip"
deploy:mac:
stage: deploy
only:
- develop
- master
tags:
- mac
dependencies:
- build:mac
script:
- cd build
- mkdir DView-install
- mv DView.app DView-install
- tar -zcvf DView-osx.tar.gz DView-install
- ls
- aws s3 cp ./ s3://openstudio-builds/_CI/DView --recursive --exclude "*" --include "DView-osx.tar.gz"
deploy:ubuntu:
stage: deploy
only:
- develop
- master
tags:
- ubuntu
dependencies:
- build:ubuntu
script:
- cd build
- mkdir DView-install
- mv DView DView-install
- tar -zcvf DView-linux.tar.gz DView-install
- ls
- aws s3 cp ./ s3://openstudio-builds/_CI/DView --recursive --exclude "*" --include "DView-linux.tar.gz"