This repository has been archived by the owner on Oct 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.gitlab-ci.yml
137 lines (124 loc) · 3.74 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
stages:
- setup
- build_x64_base
- build_x64_universal
- build_x86_base
- build_x86_universal
- upload
- release
before_script:
- "mkdir -p $TMPDIR"
- "ln -s $HOME/packer_cache packer_cache"
- "export VERSION=$(cat .ci_status/version)"
variables:
TMPDIR: "$CI_PROJECT_DIR/../tmp"
setup_environment:
before_script: []
stage: setup
script:
- mkdir -p .ci_status && echo $(date +'%Y%m%d') > .ci_status/version
- vagrant plugin repair
- vagrant plugin install vagrant-serverspec
artifacts:
paths:
- .ci_status/
build_w10_LTSC_x64_job:
stage: build_x64_base
script:
- "./build.sh LTSC x64 base $VERSION"
- "./tests/test.sh LTSC x64 base $VERSION"
- "mv boxes/*.box $HOME/boxes/"
- "mv ./output/windows10-LTSC-eval-x64-base $HOME/boxes/"
tags:
- box_build
build_w10_LTSC_x64_universal_job:
stage: build_x64_universal
script:
- "mkdir -p ./output && mv $HOME/boxes/windows10-LTSC-eval-x64-base ./output/"
- "./build.sh LTSC x64 universal $VERSION"
- "bash tests/test.sh LTSC x64 universal $VERSION"
- "mv boxes/*.box $HOME/boxes/"
tags:
- box_build
build_w10_LTSC_x86_base_job:
stage: build_x86_base
script:
- "./build.sh LTSC x86 base $VERSION"
- "./tests/test.sh LTSC x86 base $VERSION"
- "mv boxes/*.box $HOME/boxes/"
- "mv ./output/windows10-LTSC-eval-x86-base $HOME/boxes/"
tags:
- box_build
build_w10_LTSC_x86_universal_job:
stage: build_x86_universal
script:
- "mkdir -p ./output && mv $HOME/boxes/windows10-LTSC-eval-x86-base ./output/"
- "./build.sh LTSC x86 universal $VERSION"
- "./tests/test.sh LTSC x86 universal $VERSION"
- "mv boxes/*.box $HOME/boxes/"
tags:
- box_build
build_w10_1909_x64_job:
stage: build_x64_base
script:
- "./build.sh 1909 x64 base $VERSION"
- "./tests/test.sh 1909 x64 base $VERSION"
- "mv boxes/*.box $HOME/boxes/"
- "mv ./output/windows10-1909-eval-x64-base $HOME/boxes/"
tags:
- box_build
build_w10_1909_x64_universal_job:
stage: build_x64_universal
script:
- "mkdir -p ./output && mv $HOME/boxes/windows10-1909-eval-x64-base ./output/"
- "./build.sh 1909 x64 universal $VERSION"
- "./tests/test.sh 1909 x64 universal $VERSION"
- "mv boxes/*.box $HOME/boxes/"
tags:
- box_build
build_w10_1909_x86_base_job:
stage: build_x86_base
script:
- "./build.sh 1909 x86 base $VERSION"
- "./tests/test.sh 1909 x86 base $VERSION"
- "mv boxes/*.box $HOME/boxes/"
- "mv ./output/windows10-1909-eval-x86-base $HOME/boxes/"
tags:
- box_build
build_w10_1909_x86_universal_job:
stage: build_x86_universal
script:
- "mkdir -p ./output && mv $HOME/boxes/windows10-1909-eval-x86-base ./output/"
- "./build.sh 1909 x86 universal $VERSION"
- "./tests/test.sh 1909 x86 universal $VERSION"
- "mv boxes/*.box $HOME/boxes/"
tags:
- box_build
upload_images_job:
stage: upload
script:
- "./upload.sh LTSC x64 base $VERSION"
- "./upload.sh LTSC x86 base $VERSION"
- "./upload.sh 1909 x64 base $VERSION"
- "./upload.sh 1909 x86 base $VERSION"
- "./upload.sh LTSC x64 universal $VERSION"
- "./upload.sh LTSC x86 universal $VERSION"
- "./upload.sh 1909 x64 universal $VERSION"
- "./upload.sh 1909 x86 universal $VERSION"
tags:
- box_build
when: manual
release_images_job:
stage: release
script:
- "./release.sh LTSC x64 base $VERSION"
- "./release.sh LTSC x86 base $VERSION"
- "./release.sh 1909 x64 base $VERSION"
- "./release.sh 1909 x86 base $VERSION"
- "./release.sh LTSC x64 universal $VERSION"
- "./release.sh LTSC x86 universal $VERSION"
- "./release.sh 1909 x64 universal $VERSION"
- "./release.sh 1909 x86 universal $VERSION"
tags:
- box_build
when: manual